> ## Documentation Index
> Fetch the complete documentation index at: https://docs.equated.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a transaction

> Sets the vendor/customer (`orgMerchantId`) on any transaction. Field edits (`date`, `amount`, `name`) apply only to manually created transactions (origin `manual`) and are rejected once journal entries exist — unconfirm first. Provider-synced rows are otherwise read-only. Amounts are signed with the feed convention: positive = money out of the account.



## OpenAPI

````yaml /openapi.json patch /api/transactions/{id}
openapi: 3.1.0
info:
  title: Equated API
  version: 1.0.0
  description: >-
    Agent-facing accounting API. Authenticate with a bearer token issued from
    Settings → API Tokens, or via the in-app session cookie when called from the
    web client.
servers:
  - url: https://app.equated.co
    description: API server
security: []
paths:
  /api/transactions/{id}:
    patch:
      tags:
        - Transactions
      summary: Update a transaction
      description: >-
        Sets the vendor/customer (`orgMerchantId`) on any transaction. Field
        edits (`date`, `amount`, `name`) apply only to manually created
        transactions (origin `manual`) and are rejected once journal entries
        exist — unconfirm first. Provider-synced rows are otherwise read-only.
        Amounts are signed with the feed convention: positive = money out of the
        account.
      parameters:
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                orgMerchantId:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                projectId:
                  type: integer
                  nullable: true
                  minimum: 0
                  exclusiveMinimum: true
                date:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                amount:
                  type: number
                  minimum: -10000000000000
                  exclusiveMinimum: true
                  maximum: 10000000000000
                  exclusiveMaximum: true
                name:
                  type: string
                  minLength: 1
                  maxLength: 500
      responses:
        '200':
          description: Updated transaction
          content:
            application/json:
              schema:
                nullable: true
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token issued from the Equated app under Settings → API Tokens.

````