# Update a Transaction

> Solarium docs, Transactions. All requests are `POST https://api.trysolarium.com/graphql/` with `Authorization: Bearer <api key>` and a JSON body `{"query": ..., "variables": ...}`. Every query and mutation takes an `organizationId` (find it with `myOrganizations`). Index of all pages: https://trysolarium.com/llms.txt

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.

### Arguments

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `organizationId` | `UUID!` | Yes | Organization ID |
| `eventId` | `UUID!` | Yes | Ledger event ID |
| `transactionDate` | `String` | No | Updated transaction date (YYYY-MM-DD) |
| `memo` | `String` | No | Updated memo / description |
| `amount` | `String` | No | Updated amount (positive decimal string). In the original currency when originalCurrency is set. |
| `eventType` | `String` | No | Updated type: expense, income, or transfer |
| `merchantName` | `String` | No | Updated vendor / merchant name |
| `originalCurrency` | `String` | No | Original transaction currency (e.g. USD). Alone, the CAD value is derived from the Bank of Canada reference rate for the transaction date. |
| `chargedAmount` | `String` | No | The actual functional-currency (CAD) amount charged. Combined with originalCurrency, derives the effective rate including any bank markup (fx_source=manual). |

### Request

```graphql
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

```json
{
  "data": {
    "updateLedgerEvent": {
      "success": true,
      "event": {
        "id": "b7c8d9e0-f1a2-3456-b789-cdef01234567",
        "memo": "Office supplies — printer paper and toner",
        "functionalAmount": "127.43",
        "status": "needs_review"
      }
    }
  }
}
```
