Skip to main content
PATCH
/
transactions
/
{id}
Update Transaction
curl --request PATCH \
  --url https://api.antei.com/transactions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "transaction_type": "inflow",
  "amount": 123,
  "currency": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "description": "<string>"
}'
{
  "id": "<string>",
  "transaction_type": "inflow",
  "amount": 123,
  "currency": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "description": "<string>"
}
Use this endpoint to append custom metadata or correct auxiliary fields for an existing transaction. Path Parameter:
  • id – ID of the transaction to update
Editable Fields in Body:
  • metadata
  • internal_notes
  • tags
Response: Returns the updated Transaction object. If the transaction is locked for tax purposes, an error will be thrown.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the transaction to update

Body

application/json

Fields to update

id
string
required

Unique identifier for the transaction

transaction_type
enum<string>
required

Direction of the transaction

Available options:
inflow,
outflow
amount
number
required

Transaction amount

currency
string
required

Currency code (e.g., USD, EUR)

timestamp
string<date-time>
required

Time of transaction

description
string

Optional description of the transaction

Response

200 - application/json

Updated transaction

id
string
required

Unique identifier for the transaction

transaction_type
enum<string>
required

Direction of the transaction

Available options:
inflow,
outflow
amount
number
required

Transaction amount

currency
string
required

Currency code (e.g., USD, EUR)

timestamp
string<date-time>
required

Time of transaction

description
string

Optional description of the transaction