Create bank ledger transaction

post
https://api.wafeq.com/v1/bank-accounts/{bank_account_id}/ledger-transactions/

Endpoint for creating a new bank ledger transaction.

Path Params
stringrequired
Query Params
string

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}.

Body Params

A transaction recorded in the ledger of a bank account.

stringrequired

The account associated with this transaction.

doublerequired

The transaction amount.

string | null

The contact (customer or supplier) associated with this transaction, if any.

daterequired

The transaction date.

string

The transaction description.

string | null

The project associated with this transaction, if any.

string

The transaction reference or identifier.

string | null

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/. Without a VAT TRN on the organization, a local Sales rate above 0%, a Reverse charge rate, or, for a UAE organization, a zero-rated Sales rate is refused when newly set on money in (a positive amount), with HTTP 400 and code vat_trn_required; money out is never refused. Add the VAT TRN with PATCH /v1/organization/profile/ (financial_settings.tax_registration_number) or PATCH /v2/organizations/{id}/ (profile.tax_registration_number).

Headers
string

Client-provided UUID to uniquely identify a request

string

The id of the organization to act on, from GET /v1/organizations/. Required when the OAuth token or accounting partner API key grants access to several organizations; optional otherwise. With an organization API key, it must name the key's own organization.

stringenumDefaults to application/json

Generated from available request content types

Allowed:
Response