API reference
The platform workflow: open a customer, verify them, then move their money. Each row is a real endpoint. Where a step is not its own call, the section says what the platform does instead.
Base URL: https://sandbox-api.payezy.io (sandbox) and https://api.payezy.io (production). The OpenAPI document still contains the rest of the API, generated from raritilabs/alpha-payezy-ng at 79810d2.
Authentication
Payezy does not issue access tokens. There is no token endpoint and no refresh call.
Create the API key in the Payezy app, then send it on every request as Authorization: Bearer pz_test_… in the sandbox or pz_live_… in production. A key keeps working until it expires or someone revokes it in the app. The payezy_session cookie is only for the Payezy web app, and it is not a key. Creating keys, including a key for a customer, stays in the Payezy UI.
Users
A user here is a platform customer, and a customer is its own organization (individual or business), not a login. orgId on these calls is your platform. The customer's org_id is the organization later account, payment, and withdrawal calls act on.
The platform must be active. Another platform's customer is not_found.
- POSTCreate a user
/v1/platforms/{orgId}/customersOpens the customer organization and stores the KYC or KYB application as a draft.
accept_termson this call is ignored. - PATCHUpdate a user
/v1/platforms/{orgId}/customers/{customerId}Sets or clears
external_refonly. It does not change the name, the owner email, or the verification application. The response is empty. - GETGet a user
/v1/platforms/{orgId}/customers/{customerId}Returns the customer organization, its members, financial accounts, recent payments, and
verification_status. It does not return the application contents. - GETList users
/v1/platforms/{orgId}/customersLists customer organizations linked to your platform, newest first. Filter with
statusorq(name or reference).
Verification
KYC (an individual) and KYB (a business) are one application. There is no separate submit call for each. entity_type is individual or business, taken from the customer you created.
Create user already stored the draft, so submit does not take the application again. Upload every required document first. Approval is what opens the customer's USD account, its virtual account, and any deposit address. Nothing in this section creates an account.
- POSTUpload a verification document
/v1/platforms/{orgId}/customers/{customerId}/onboarding/documentsRequired before submit. Send one file for each item in
required_documents, as multipart form data, with that item'skindandperson_slot. - POSTSubmit KYC or KYB
/v1/platforms/{orgId}/customers/{customerId}/onboarding/submitOne call submits either application to Payezy review. An individual is KYC and a business is KYB. The application becomes
pending_reviewand the customer organization becomeskyc_pending. - GETGet verification status
/v1/platforms/{orgId}/customers/{customerId}/onboardingReturns the application, including
status, the documents still required, and the terms version. SSNs are never returned. - POSTSend documents requested during review
/v1/platforms/{orgId}/customers/{customerId}/onboarding/documents/submitUse this only when status is
documents_required. Upload the new files first, then this call sends them. It is not the first submit.
Accounts
These calls use the customer organization id, not the platform id, and a key for that customer. A platform key cannot act as the customer. Create that key in the Payezy UI.
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
/v1/orgs/{orgId}/linked-accounts/banksOpens an additional US virtual bank account (
sourceus_bank) that deposits into an existing financial account. It does not create the ledger account. The first one is opened when verification is approved. - POSTCreate a wallet
/v1/orgs/{orgId}/linked-accounts/walletsRecords a request for source
stablecoin_walletand does not open a wallet. The status staysrequested. The deposit address from verification approval is the wallet the customer can use, and it is not created here. - GETGet an account and its deposit wallet
/v1/orgs/{orgId}/accounts/{accountId}/fundingThere is no get-account or get-wallet call. This returns one financial account's deposit instructions.
kindvirtual_accountis the bank account number.kinddeposit_addressis the wallet address. - GETList accounts
/v1/orgs/{orgId}/accountsLists 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.
- GETList wallets
/v1/orgs/{orgId}/linked-accountsOne list for connected bank accounts and wallets. There is no list-wallets path.
kindwalletis a wallet (a Payezy deposit address, or an external wallet).kindbankis a virtual account or an external bank account. In-progress wallet requests are underrequests, notitems.
Payments
A recipient is a counterparty. These calls use the customer organization id and a key for that customer, the same credential as accounts. The customer must be active.
Create does not require a prior quote. policy defaults to cheapest.
- POSTCreate a recipient
/v1/orgs/{orgId}/counterpartiesAdds 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.
- GETGet a recipient
/v1/orgs/{orgId}/counterparties/{counterpartyId}Returns the recipient, each account, and
screening_status(clear,review, orblocked). Pay only when it isclear. - PATCHUpdate a recipient
/v1/orgs/{orgId}/counterparties/{counterpartyId}Changes
name,email, orcategoryonly. It does not change the bank account or wallet. - POSTCreate a payment
/v1/orgs/{orgId}/paymentsSends money to a recipient account. 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
/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
purposewithdrawal. - GETList payments
/v1/orgs/{orgId}/paymentsLists payments, withdrawals, and deposits, newest first. Filter with
purposepayment,withdrawal, ordeposit.
Withdrawal
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, no get-withdrawal call, and no list-withdrawals call.
Create returns that payment. Read its status with get payment, and list them with list payments and purpose withdrawal. Register the destination first. You cannot create a withdrawal until that account exists.
- POSTRegister the destination
/v1/orgs/{orgId}/own-accountsRequired 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
/v1/orgs/{orgId}/withdrawalsMoves 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
/v1/orgs/{orgId}/payments/{paymentId}There is no get-withdrawal endpoint. Create withdrawal returns a payment id. This call is that payment, including
statusand the timeline.purposeiswithdrawal. - GETList withdrawals
/v1/orgs/{orgId}/paymentsThere is no list-withdrawals endpoint. This is list payments with
purposewithdrawal.