Diagrams
Payout
Create a payout, approve it, send it through the payout provider and follow it to paid or failed.
POST /payouts holds the gross amount on your balance and returns the payout as
waiting_for_approval. Approval comes from an admin or an approved payout batch (the
daily schedule only creates payouts); it settles the hold and instructs the payout provider.
What to rely on
- Status is derived from the payout's flags:
waiting_for_approval,pending,sent,paid,failedorcanceled. - Events.
payout.createdon create,payout.approvedon approval,payout.pendingonce the provider accepts the transfer,payout.sentwhen the provider reports the money sent,payout.paidwhen it arrives, andpayout.failedorpayout.canceledwhen it does not. A payout the provider never reports as sent getspayout.sentonce, just beforepayout.paid. - Failed or canceled payouts return the funds to your balance.
- No clear answer from the provider leaves the payout pending; a resolver checks it every five minutes and retries or unwinds it.