Skip to main content
PATCH
/
v1
/
transactions
/
{transactionId}
Update transaction
curl --request PATCH \
  --url https://api.ledger.so/v1/transactions/{transactionId} \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "notes": "<string>",
  "tags": [
    "<string>"
  ],
  "category": "<string>"
}
'
{
  "id": "<string>",
  "cardId": "<string>",
  "amount": 123,
  "currency": "<string>",
  "status": "pending",
  "createdAt": 123,
  "agentId": "<string>",
  "userId": "<string>",
  "authorizedAmount": 123,
  "localAmount": 123,
  "localCurrency": "<string>",
  "merchant": {
    "name": "<string>",
    "id": "<string>",
    "category": "<string>",
    "categoryCode": "<string>",
    "city": "<string>",
    "country": "<string>",
    "enrichedName": "<string>",
    "enrichedIcon": "<string>",
    "enrichedCategory": "<string>"
  },
  "declinedReason": "<string>",
  "attestationStatus": "attested",
  "notes": "<string>",
  "tags": [
    "<string>"
  ],
  "category": "<string>",
  "receipt": {
    "hasReceipt": true,
    "mimeType": "<string>",
    "uploadedAt": 123
  },
  "authorizedAt": 123,
  "postedAt": 123,
  "updatedAt": 123
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

transactionId
string
required

The transaction ID

Body

application/json
notes
string | null

Notes about the transaction. Set to null to remove.

tags
string[] | null

Tags for categorization. Set to null to remove.

category
string | null

Category for the transaction. Set to null to remove.

Response

Transaction updated

id
string
required
cardId
string
required
amount
integer
required

Amount in cents

currency
string
required
status
enum<string>
required
Available options:
pending,
completed,
declined,
reversed
createdAt
integer
required
agentId
string
userId
string
authorizedAmount
integer
localAmount
integer

Amount in local currency

localCurrency
string
merchant
object
declinedReason
string
attestationStatus
enum<string>
Available options:
attested,
unattested,
stale
notes
string

User-provided notes about the transaction

tags
string[]

User-assigned tags for categorization

category
string

User-assigned category

receipt
object
authorizedAt
integer
postedAt
integer
updatedAt
integer