SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Transactions

POST

Update a Transaction

Updates mutable fields on an existing ledger event. Only events in needs_review or pending status can be updated. To record a foreign-currency transaction, pass originalCurrency (and optionally chargedAmount) — see below.

Parameters

organizationIdUUID!required

Organization ID

eventIdUUID!required

Ledger event ID

transactionDateString

Updated transaction date (YYYY-MM-DD)

memoString

Updated memo / description

amountString

Updated amount (positive decimal string). In the original currency when originalCurrency is set.

eventTypeString

Updated type: expense, income, or transfer

merchantNameString

Updated vendor / merchant name

originalCurrencyString

Original transaction currency (e.g. USD). Alone, the CAD value is derived from the Bank of Canada reference rate for the transaction date.

chargedAmountString

The actual functional-currency (CAD) amount charged. Combined with originalCurrency, derives the effective rate including any bank markup (fx_source=manual).

Request
mutation {
  updateLedgerEvent(
    organizationId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    eventId: "b7c8d9e0-f1a2-3456-b789-cdef01234567"
    memo: "Office supplies — printer paper and toner"
    amount: "127.43"
  ) {
    success
    event {
      id
      memo
      functionalAmount
      status
    }
  }
}
Response
{
  "data": {
    "updateLedgerEvent": {
      "success": true,
      "event": {
        "id": "b7c8d9e0-f1a2-3456-b789-cdef01234567",
        "memo": "Office supplies — printer paper and toner",
        "functionalAmount": "127.43",
        "status": "needs_review"
      }
    }
  }
}