payout v1

examples/payout/payout.flow · dandori doc

Pay a seller what their sales came to: the bank's API pays the account the seller keeps on file, and a model drafts the notice. The flow carries the account's id, and never its number or the name it is held in, which the bank's contract marks secret

flow
on refusedpayout v134 paid = pay(…)connect bank PayoutService/Payrefused → line 35; timeout, failure → the workflow fails!35 fail Refused"the bank refused the payout to the account {ac…36 notice = draft_notice(…)agent openai · gpt-5.4-minitimeout 1 minutetimeout, failure → the workflow fails!37 send_notice(…)lambda send-noticetimeout, failure → the workflow fails!38 succeed payout_id = paid.payoutId

Calls

LineCallCallsRetriesTimeoutWhen it fails
34paid = pay(…)connect bank PayoutService/Pay, key——refused → line 35
timeout, failure → the workflow fails
36notice = draft_notice(…)agent openai · gpt-5.4-mini—1 minutetimeout, failure → the workflow fails
37send_notice(…)lambda send-notice, idempotent——timeout, failure → the workflow fails

Ends

LineEnd
35fail Refused "the bank refused the payout to the account {account_id}"
38succeed payout_id = paid.payoutId