wafeq_bank_accounts_ledger_transactions_create
Create a bank ledger transaction for a specified bank account by providing account, amount, and date. Include an idempotency key to prevent duplicate entries when retrying.
Instructions
๐ก WRITE ยท creates data ยท Bank Ledger Transactions ยท POST /bank-accounts/{bank_account_id}/ledger-transactions/
Create bank ledger transaction
Endpoint for creating a new bank ledger transaction.
Not idempotent โ calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations | |
| bank_account_id | Yes | ||
| idempotency_key | No | Optional idempotency key (sent as the X-Wafeq-Idempotency-Key header). A UUID v4 is generated automatically when omitted, so an automatic network retry can never duplicate this operation. Pass your own stable value to make a deliberate re-invocation safe as well. |