Payezydevelopers
Sandbox

API reference

Customers

You are acting as the customer organization. Every call in this section uses /v1/orgs/{orgId} and a key minted for that organization. orgId is the customer's org_id. Opening a customer is under Platform.

The organization must be active before it can open accounts or move money. Approval of verification is what opens the first USD account.

Verification

KYC (an individual) and KYB (a business) are one application on this organization. There is no separate submit call for each. entity_type is individual or business.

Upload every required document, then submit. Approval is what opens the USD account, its virtual account, and any deposit address. Nothing in this section creates an account.

POSTUpload a verification document

POST/v1/orgs/{orgId}/onboarding/documents

Required before submit. Call this once for every item in required_documents. Send kind from that item. For a person, also send person_slot: individual, controller, or beneficial_owners[n]. When the document option lists identity_types, send one of them as identity_document_type. A two-sided ID also needs the back image as file_back. The file itself is the file part. The console attaches a synthetic PDF and does not send a real document; use the curl snippet on the operation page, with -F file=@./document.pdf, for a real file.

Reference

POSTSubmit KYC or KYB

POST/v1/orgs/{orgId}/onboarding/submit

One call submits either application to Payezy review. An individual is KYC and a business is KYB. The application becomes pending_review and the organization becomes kyc_pending.

Reference

GETGet verification status

GET/v1/orgs/{orgId}/onboarding

Returns the application, including status, the documents still required, and the terms version. SSNs are never returned.

Reference

POSTSend documents requested during review

POST/v1/orgs/{orgId}/onboarding/documents/submit

Use this only when status is documents_required. Upload the new files first, then this call sends them. It is not the first submit.

Reference

Accounts

The customer organization must be active. Approval of verification opens the USD financial account, a virtual account for ACH, wire, and FedNow, and a deposit address when the partner issues one. There is no call that creates that first account, and no call that fetches one account or one wallet by id.

POSTCreate an account

POST/v1/orgs/{orgId}/linked-accounts/banks

Opens an additional US virtual bank account (source us_bank) that deposits into an existing financial account. It does not create the ledger account. The first one is opened when verification is approved.

Reference

POSTCreate a wallet

POST/v1/orgs/{orgId}/linked-accounts/wallets

Records a request for source stablecoin_wallet and does not open a wallet. The status stays requested. The deposit address from verification approval is the wallet the customer can use, and it is not created here.

Reference

GETGet an account and its deposit wallet

GET/v1/orgs/{orgId}/accounts/{accountId}/funding

There is no get-account or get-wallet call. This returns one financial account's deposit instructions. kind virtual_account is the bank account number. kind deposit_address is the wallet address.

Reference

GETList accounts

GET/v1/orgs/{orgId}/accounts

Lists the customer's Payezy financial accounts and ledger balances. This is the list of accounts you pay from. It does not list virtual account numbers or wallet addresses.

Reference

POSTSimulate a deposit

POST/v1/orgs/{orgId}/accounts/{accountId}/simulate-deposit

Staging and sandbox only. Production returns not_found. Credits accountId without moving real money. Try-it on this site calls the sandbox, never production or the staging API.

Reference

GETList wallets

GET/v1/orgs/{orgId}/linked-accounts

One list for connected bank accounts and wallets. There is no list-wallets path. kind wallet is a wallet (a Payezy deposit address, or an external wallet). kind bank is a virtual account or an external bank account. In-progress wallet requests are under requests, not items.

Reference

Recipients

A recipient is a counterparty, and each recipient has one or more accounts. List them, create one, and read one back before you pay. The account id on the recipient is the external_account_id on a payment. Pay only when screening_status is clear.

GETList recipients

GET/v1/orgs/{orgId}/counterparties

Recipients with their accounts and screening status. Use an account id from this list as external_account_id when you create a payment.

Reference

POSTCreate a recipient

POST/v1/orgs/{orgId}/counterparties

Adds a recipient and their first US bank account or wallet in the same call. That account becomes the default. The response includes the account id you send on create payment. Account numbers come back as the last four digits.

Reference

GETGet a recipient

GET/v1/orgs/{orgId}/counterparties/{counterpartyId}

Returns the recipient, each account, and screening_status (clear, review, or blocked). Pay only when it is clear.

Reference

PATCHUpdate a recipient

PATCH/v1/orgs/{orgId}/counterparties/{counterpartyId}

Changes name, email, or category only. It does not change the bank account or wallet.

Reference

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/v1/orgs/{orgId}/payments/quote

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.

Reference

POSTCreate a payment

POST/v1/orgs/{orgId}/payments

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.

Reference

GETGet a payment

GET/v1/orgs/{orgId}/payments/{paymentId}

Returns the payment, its status, and the status timeline. The same call reads a withdrawal, which is a payment with purpose withdrawal.

Reference

GETList payments

GET/v1/orgs/{orgId}/payments

Lists payments, withdrawals, and deposits, newest first. Filter with purpose payment, withdrawal, or deposit.

Reference

POSTApprove a payment

POST/v1/orgs/{orgId}/payments/{paymentId}/approve

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.

Reference

POSTRegister the destination

POST/v1/orgs/{orgId}/own-accounts

Required before create withdrawal. Registers the customer's own bank account or wallet at another institution. It never appears in the recipient list.

Reference

POSTCreate a withdrawal

POST/v1/orgs/{orgId}/withdrawals

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.

Reference

GETGet withdrawal status

GET/v1/orgs/{orgId}/payments/{paymentId}

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.

Reference

GETList withdrawals

GET/v1/orgs/{orgId}/payments

There is no list-withdrawals endpoint. This is list payments with purpose withdrawal.

Reference