Skip to Content
Paycose Docs
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, failed or canceled.
  • Events. payout.created on create, payout.approved on approval, payout.pending once the provider accepts the transfer, payout.sent when the provider reports the money sent, payout.paid when it arrives, and payout.failed or payout.canceled when it does not. A payout the provider never reports as sent gets payout.sent once, just before payout.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.

On this page