Skip to main content

Draft an allocation against a bank operation

POST 

/api/v1/bank_operations/:bank_operation_id/allocations

Creates a proposed allocation. This is a draft and nothing else: no payment is written, no ledger line is touched and the invoice stays unpaid. Settling the money is POST /api/v1/bank_operations/{id}/reconciliation, which takes the complete allocation set and the operation's version.

The invoice must belong to the OPERATION'S OWN company, and the same domain rules the application enforces apply here: an incoming movement settles a sales invoice, an outgoing one a purchase invoice, the currencies must agree, and the invoice must still be open and payable.

Idempotency-Key is REQUIRED. A replay under the same key and the same body returns the stored response with Idempotency-Replayed: true and creates nothing; the same key with a different body is 409 idempotency_key_reuse.

Request​

Responses​

The drafted allocation.