Skip to content

Account.payout

POST /{namespace}/accounts/{account}/payout

Payout sends available cash from the payments balance to the owner’s bank and lists every Transaction the payout carries.

Mode
do
Event
Account.paidOut

Inputs

InputTypeRequiredDescription
accountAccountrequiredThe payments balance: the cash Account held at payments.
amountmoneyHow much to send. Defaults to everything available.
instantbooleanTrue to send it within minutes to an eligible debit card or bank, for Stripe’s instant payout cost.
schedulestringSets the Account’s payoutSchedule from now on, in place of sending a payout now.

Outputs

OutputTypeRequiredDescription
accountAccountrequiredThe payments balance after the payout.
transactionTransactionrequiredThe payout, a Transaction of kind payout.

Effects

  • Emits Account.paidOut.
  • Performed by the Treasurer.
  • One-way (money): it waits out its delay window, and runs in the send and do modes.
  • Runs on the Account’s payoutSchedule, daily by default; a call sends one now, or with schedule changes the rhythm.
  • A payout the bank returns lands back in the payments balance and opens a Task to fix the bank details.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Account.payout

When it waits

GateDefault
Decision classMedium: one-way, bounded (money)
Delay window1 business hour, in which a watcher can pause, redirect or cancel it; then it runs.
LimitThe spend Limit of the Permission or Mandate it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.