Withdraw to your own account
POST/v1/orgs/{orgId}/withdrawals
Moves funds to one of the organization's own accounts. Follows the same approval policy and limits as payments. Requires two-factor authentication.
Before you call it
- Organization
active - Permission
withdrawals:create - Second factorRequired for browser sessions. An API key with the scope replaces it.
- IdempotencySend an
Idempotency-Key. Retrying with the same key returns the original result.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
Request body
| Field | What it does |
|---|---|
account_idstring (uuid)required | No description in the spec yet. |
external_account_idstring (uuid)required | One of the organization's own accounts |
amountstringrequired | No description in the spec yet. |
assetenum | No description in the spec yet. One of |
railenum | No description in the spec yet. One of |
policyenum | No description in the spec yet. One of Default |
memostring | No description in the spec yet. |
Response 200
Replay of an earlier request with the same Idempotency-Key
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
account_idstring (uuid)required | No description in the spec yet. |
directionenumrequired | No description in the spec yet. One of |
kindstringrequired | No description in the spec yet. |
purposeenum | payment sends to a third party, withdrawal moves funds to the organization's own account, deposit is incoming One of |
invoice_numberstring | No description in the spec yet. |
statusstringrequired | No description in the spec yet. |
amountstringrequired | No description in the spec yet. |
assetstringrequired | No description in the spec yet. |
feestringrequired | No description in the spec yet. |
railstringrequired | No description in the spec yet. |
memostringrequired | No description in the spec yet. |
failurePaymentFailure | No description in the spec yet. |
failure.codestringrequired | No description in the spec yet. |
failure.reasonstringrequired | No description in the spec yet. |
created_atstring (date-time)required | No description in the spec yet. |
completed_atstring (date-time) | No description in the spec yet. |
counterparty_idstring (uuid) | No description in the spec yet. |
recipientstring | Recipient name (outbound) |
recipient_accountstring | Masked destination, e.g. Chase ••6789 |
dest_assetstring | Stablecoin delivered (crypto payouts) |
dest_networkstring | No description in the spec yet. |
tx_hashstring | On-chain hash or bank trace number |
approvals_requiredinteger | No description in the spec yet. |
created_bystring (uuid) | No description in the spec yet. |
Events it causes
Errors to handle
| Code | What it means and what to do |
|---|---|
not_own_account422 | You tried to withdraw to a third party. Use a payment to send money to a recipient. |
insufficient_funds422 | The available balance cannot cover the amount plus fee. Fund the account, or send less. Quote first to see the fee. |
single_payout_limit422 | The amount is above the organization's single-transfer limit. Send less, or ask Payezy about your limits ( |
daily_payout_limit422 | Today's payouts would go over the daily limit. Send the rest tomorrow, or ask Payezy about your limits. |
idempotency_key_reused409 | The key was already used for a different request. Generate a new key for a new payment. Reuse a key only to retry exactly the same request. |
Every error is a Problem document. Branch on code; quote request_id to support.