Payments
Payments and withdrawals. A withdrawal moves money to an account the customer organization owns elsewhere. It is stored as a payment with purpose withdrawal. There is no withdrawal resource and no get-withdrawal endpoint.
Creating a payment needs an account, a recipient, a rail, and a new idempotency key:
1. Take account_id from list accounts. 2. Take a recipient from list recipients or create recipient. Use an account on that recipient whose screening_status is clear. That account's id is external_account_id. 3. Quote the payment. Each option has a rail, a fee, and when the money arrives. Pick a rail, or omit rail and set policy to cheapest or fastest. 4. Create the payment with a new Idempotency-Key. The amount plus the fee is reserved immediately. Retrying the same key and the same body returns the original payment instead of paying twice.
The customer must be active. Paying the customer's own account is a withdrawal, not a payment. Register that destination before you create a withdrawal.
POSTQuote a payment
POST/
Shows the fee and arrival time for each rail. Create does not require a quote, but the fee you show a customer comes from this call. policy defaults to cheapest.
POSTCreate a payment
POST/
Sends money to the recipient account from step 2, on the rail you picked from the quote. The amount plus the fee is reserved immediately. Above the approval threshold the status is pending_approval. This is not how the customer pays their own account.
GETGet a payment
GET/
Returns the payment, its status, and the status timeline. The same call reads a withdrawal, which is a payment with purpose withdrawal.
GETList payments
GET/
Lists payments, withdrawals, and deposits, newest first. Filter with purpose payment, withdrawal, or deposit.
POSTApprove a payment
POST/
Records an approval on a payment that is waiting. When enough approvers have approved, the payment is sent. The key or person that created it cannot approve it unless the customer's policy allows self-approval.
POSTRegister the destination
POST/
Required before create withdrawal. Registers the customer's own bank account or wallet at another institution. It never appears in the recipient list.
POSTCreate a withdrawal
POST/
Moves funds to one of those own accounts and returns a payment. The same approval rules and limits as a payment apply. A recipient account is not_own_account.
GETGet withdrawal status
GET/
There is no get-withdrawal endpoint. Create withdrawal returns a payment id. This call is that payment, including status and the timeline. purpose is withdrawal.
GETList withdrawals
GET/
There is no list-withdrawals endpoint. This is list payments with purpose withdrawal.