---
updatedAt: 2026-10-12T15:05:31.000Z
agentTools:
  projectIndex: https://wafeq.readme.io/llms.txt
---

# Update bank ledger transaction

Endpoint for updating an existing bank ledger transaction.

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "CurrencyEnum": {
        "description": "An ISO 4217 currency code.\n\n[View the enum reference](currencyenum)",
        "enum": [
          "AED",
          "SAR",
          "USD",
          "EUR",
          "CAD",
          "AFN",
          "ALL",
          "AMD",
          "ARS",
          "AUD",
          "AZN",
          "BAM",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BND",
          "BOB",
          "BRL",
          "BWP",
          "BYN",
          "BZD",
          "CDF",
          "CHF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "GBP",
          "GEL",
          "GHS",
          "GNF",
          "GTQ",
          "HKD",
          "HNL",
          "HRK",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KHR",
          "KMF",
          "KRW",
          "KWD",
          "KZT",
          "LBP",
          "LKR",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MOP",
          "MUR",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SDG",
          "SEK",
          "SGD",
          "SOS",
          "SYP",
          "THB",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "UYU",
          "UZS",
          "VES",
          "VND",
          "XAF",
          "XOF",
          "YER",
          "ZAR",
          "ZMW"
        ],
        "type": "string"
      },
      "api-v1-bank-ledger-transaction": {
        "description": "A transaction recorded in the ledger of a bank account.",
        "properties": {
          "account": {
            "description": "The account associated with this transaction.",
            "type": "string"
          },
          "amount": {
            "description": "The transaction amount.",
            "exclusiveMaximum": 10000000000000000,
            "exclusiveMinimum": -10000000000000000,
            "format": "double",
            "type": "number"
          },
          "bank_account": {
            "description": "The bank account associated with this transaction.",
            "readOnly": true,
            "type": "string"
          },
          "contact": {
            "description": "The contact (customer or supplier) associated with this transaction, if any.",
            "type": [
              "string",
              "null"
            ]
          },
          "created_ts": {
            "description": "The timestamp in UTC when the transaction was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "date": {
            "description": "The transaction date.",
            "format": "date",
            "type": "string"
          },
          "description": {
            "default": "",
            "description": "The transaction description.",
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the transaction.",
            "readOnly": true,
            "type": "string"
          },
          "is_manual": {
            "description": "Indicates whether the transaction was manually entered.",
            "readOnly": true,
            "type": "boolean"
          },
          "journal": {
            "description": "The public ID of the current journal entry for this document, or null when no journal exists. Pass expand=journal to return the journal object instead of its ID. Use GET /v1/journal-line-items/?journal={journal_id} to retrieve the accounting entries. Related payments, note applications and deferral events have their own journals.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "$ref": "#/components/schemas/api-v1-journal"
              },
              {
                "type": "null"
              }
            ],
            "readOnly": true
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the transaction.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the transaction was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "project": {
            "description": "The project associated with this transaction, if any.",
            "type": [
              "string",
              "null"
            ]
          },
          "reference": {
            "default": "",
            "description": "The transaction reference or identifier.",
            "type": "string"
          },
          "tax_rate": {
            "description": "The tax rate to apply to this transaction, if any: the ID of the tax rate (`tax_…`). List the tax rates of the organization with GET /v1/tax-rates/.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "account",
          "amount",
          "bank_account",
          "created_ts",
          "date",
          "id",
          "is_manual",
          "journal",
          "legacy_id",
          "modified_ts"
        ],
        "type": "object"
      },
      "api-v1-journal": {
        "description": "A journal entry in the general ledger.",
        "properties": {
          "created_ts": {
            "description": "The timestamp in UTC when the journal was created",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CurrencyEnum"
              }
            ],
            "description": "The currency used in the journal.\n\n[View the enum reference](currencyenum)"
          },
          "date": {
            "description": "The date of the journal entry.",
            "format": "date",
            "type": "string"
          },
          "id": {
            "description": "The unique identifier of the journal.",
            "readOnly": true,
            "type": "string"
          },
          "legacy_id": {
            "description": "[Deprecated] The legacy identifier of the journal.",
            "readOnly": true,
            "type": "string"
          },
          "modified_ts": {
            "description": "The timestamp in UTC when the journal was last modified",
            "format": "date-time",
            "readOnly": true,
            "type": "string"
          },
          "notes": {
            "description": "Additional notes about the journal entry.",
            "type": "string"
          },
          "reference": {
            "description": "Reference number or code for the journal.",
            "type": "string"
          }
        },
        "required": [
          "created_ts",
          "currency",
          "date",
          "id",
          "legacy_id",
          "modified_ts"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "APIKeyAuth": {
        "description": "__An API key that will be supplied in  `Authorization` header.__\n\nExample:\n`Api-Key vVLOU1BB.aKz8GWaAGz0w1fO997aCMskNfS0ZpwjS`",
        "in": "header",
        "name": "Authorization",
        "type": "apiKey",
        "x-default": "Api-Key replace_with_your_api_key"
      }
    }
  },
  "info": {
    "title": "Wafeq Public API",
    "version": "v1"
  },
  "openapi": "3.1.1",
  "paths": {
    "/bank-accounts/{bank_account_id}/ledger-transactions/{id}/": {
      "put": {
        "description": "Endpoint for updating an existing bank ledger transaction.",
        "operationId": "bank_accounts_ledger_transactions_update",
        "parameters": [
          {
            "description": "Client-provided UUID to uniquely identify a request",
            "in": "header",
            "name": "X-Wafeq-Idempotency-Key",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "bank_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated related objects to return in full instead of as IDs. Accepted values: `account`, `account.parent`, `bank_account`, `bank_account.account`, `contact`, `contact.persons`, `journal`, `project`, `tax_rate`. Nested relations are joined with a dot. Pass `journal` to replace the journal ID with its object (ID, date, currency, reference, notes and timestamps). Documents without a journal still return null. Journal line items are retrieved separately with GET /v1/journal-line-items/?journal={journal_id}.",
            "in": "query",
            "name": "expand",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/api-v1-bank-ledger-transaction"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/api-v1-bank-ledger-transaction"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/api-v1-bank-ledger-transaction"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/api-v1-bank-ledger-transaction"
                }
              }
            },
            "description": "",
            "headers": {
              "X-Wafeq-Idempotent-Replayed": {
                "description": "Indicates whether response was served from cache",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyAuth": []
          }
        ],
        "summary": "Update bank ledger transaction",
        "tags": [
          "Bank Ledger Transactions"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "Wafeq API Base URL",
      "url": "https://api.wafeq.com/v1"
    }
  ],
  "x-readme": {
    "proxy-enabled": false,
    "samples-languages": [
      "shell",
      "http"
    ]
  }
}
```