API reference / Payments and approvals
Send a payment
POST/v1/orgs/{orgId}/payments
Sends money to a recipient. The amount plus fee is reserved immediately; payments above the approval threshold wait for approvers. Requires two-factor authentication. Retrying with the same Idempotency-Key returns the original payment.
When to use it
Paying a recipient. Always send an Idempotency-Key; retrying with the same key returns the original payment instead of paying twice. Never use this for your own accounts - that is a withdrawal.
Before you call it
- Organization
active - Permission
payments: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. - NoteAn API key with the scope replaces AAL2.
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 | The recipient's bank account or wallet |
amountstringrequired | No description in the spec yet. |
assetenum | Stablecoin to deliver to a wallet (default USDC) 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. |
invoice_numberstring | The invoice or bill this payment settles |
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 |
|---|---|
own_account422 | You tried to pay one of your own accounts. Use a withdrawal for your own accounts. |
insufficient_funds422 | The available balance cannot cover the amount plus fee. Fund the account, or send less. Quote first to see the fee. |
recipient_blocked403 | Screening blocked this recipient. Payments to a blocked recipient are not possible. Contact support if you believe this is wrong. |
recipient_under_review409 | Screening is reviewing this recipient. Wait for review to clear; then pay. |
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. |
above_ceiling422 | The amount is above Payezy's hard ceiling. Split the payment. |
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. |
org_restricted403 | Outgoing payments are paused for this organization by Payezy or its platform. Incoming money and reads still work. Contact the platform or Payezy support. |
invalid_rail422 |
Every error is a Problem document. Branch on code; quote request_id to support.
Usually next
Used in guided journeys
- Platform: from zero to your customer's first payment, stage 13
- Failure lab: what goes wrong, and how to recover, stage 4
- Failure lab: what goes wrong, and how to recover, stage 4
- Failure lab: what goes wrong, and how to recover, stage 5
- Failure lab: what goes wrong, and how to recover, stage 6
- Failure lab: what goes wrong, and how to recover, stage 7