Payezydevelopers
Sandbox

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.

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.

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.

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.

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.