Pular para o conteúdo principal

Enviar conta a pagar ao banco

POST 

/payables/:id/send-to-bank

Dispatches an authorized payable to the bank through the Kobana gateway (creates the payment, then envelopes and approves it). Requires scope finance.payables.dispatch — deliberately separate from finance.payables.write (dispatching money is not editing a title) and, by default, never granted in the same token as .authorize. X-Idempotency-Key is required. Only an official title dispatches — one whose payment_authorization is null or authorized; a title still awaiting authorization (pending_authorization / authorizing) or 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.

Requisição

Respostas

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