Skip to main content

Dispatch a payable to the bank

POST 

/payables/:id/send-to-bank

Dispatches an approved payable to the bank through the Kobana gateway (creates the payment, then envelopes and approves it on the gateway side). Requires scope finance.payables.dispatch — deliberately separate from finance.payables.write (dispatching money is not editing a bill). X-Idempotency-Key is required. Only an official bill dispatches — one whose payment_approval is null or creation_approved; a bill still awaiting approval (pending_approval / partially_approved) or creation_rejected returns 422. The payable must also carry the payment coordinates for its method and a Kobana-mirrored source account. Returns the refreshed payable detail with the execution mirror (kobana_status, kobana_payment_uid) populated. Note: the Kobana sandbox example_bank does not execute outbound payments, so the full confirmed cycle is only observable against an environment that actually settles.

Request​

Responses​

Dispatched. Body is the refreshed payable detail with the Kobana mirror populated.