Book a bank entry (by administration)
Book a bank or credit card entry (Exact: bankboeking) in the accounting package. This is a permanent change to the books. Look up journalCode with list-reference-data (kind 'journals', journalType 'bank'), ledger accounts with search-ledger-accounts and contacts with search-contacts. The user must confirm before it is booked. If the result has created=false and a confirmation object, nothing was created yet: show confirmation.summary to the user verbatim and ask whether to create the booking. Only after the user explicitly says yes in the chat, call create-bank-entry again with exactly the same arguments plus confirmationToken. Never confirm on the user's behalf and never reuse a token for other arguments.
Same as the ledger endpoint, addressed by LedgerSuite administration id instead of ledgerId. Other LedgerSuite products call this with their own client_credentials token (audience urn:ledgersuite:askledger, scope askledger:purchase-write) for administrations that include them.
A write: over REST only LedgerSuite products with askledger:purchase-write can call it, after their user approved the write in the product (no confirmation is asked). Other callers get 403 confirmation_required and use the MCP tool, which asks the user to confirm. Purchase entries: 409 duplicate when the package already has the booking (same supplier and invoice number); nothing was booked then. Send an Idempotency-Key to make retries safe.
Requires the ledger:write scope (Wijzigen in Exact). Same operation as the MCP tool create-bank-entry.
bearerAuthorizationBearer <token>A company group API key (al_live_…, created at /dashboard/api), an OAuth access token from the same authorization flow MCP clients use, or (other LedgerSuite products, /administrations routes only) a LedgerSuite client_credentials token.
administrationId*stringLedgerSuite administration id; its linked ledger is used
Idempotency-Key?stringUnique per write (e.g. your own id for it), at most 255 characters. A retry with the same key and body gets the first response again (header Idempotent-Replayed: true) instead of a second write; the same key with another body answers 422 idempotency_key_reused, and a retry while the first request still runs 409 idempotency_in_progress. Kept for 7 days.
length <= 255application/json- body
journalCode*stringBank or credit card journal code
1 <= lengthfinancialYear?integerFinancial year; from the line dates when omitted
1900 <= value <= 9999financialPeriod?integerFinancial period; from the line dates when omitted
1 <= value <= 99currency?stringISO 4217 currency; the journal's currency when omitted
^[A-Z]{3}$lines*array<>Entry lines
1 <= items <= 100OK
application/json- response
created*booleanmessage*stringconfirmation*|nullentry*|nullcurl -X POST "https://example.com/administrations/string/bank-entries" \ -H "Content-Type: application/json" \ -d '{ "journalCode": "string", "lines": [ { "ledgerAccount": "string", "amount": 0, "date": "2019-08-24" } ] }'{ "created": true, "message": "string", "confirmation": { "token": "string", "summary": "string", "expiresInSeconds": 0 }, "entry": { "ledgerId": "string", "remoteId": "string", "entryNumber": 0 }}