Payezydevelopers
Sandbox

API reference / Platform

Payments

Payments and withdrawals, called with the platform key. A withdrawal is a payment with purpose withdrawal. There is no withdrawal resource and no get-withdrawal endpoint.

1. Take account_id from list accounts. 2. Take external_account_id from list recipients or create recipient. Pay only when screening_status is clear. 3. Create the payment with a new Idempotency-Key. The amount plus the fee is reserved immediately. Above the approval threshold the status is pending_approval, and a different key approves it.

Register an account the customer owns before you create a withdrawal. The customer must be active.

POSTCreate a payment

POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/payments

Sends money from one of the customer's accounts to a recipient. The amount plus the fee is reserved immediately. Above the approval threshold the status is pending_approval.

Reference

GETGet a payment

GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/payments/{paymentId}

The payment, its status, and its timeline. The same call reads a withdrawal.

Reference

GETList payments

GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/payments

Payments, withdrawals, and deposits, newest first. Filter with purpose.

Reference

POSTApprove a payment

POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/payments/{paymentId}/approve

Approves a payment that is waiting. The key that created it cannot approve it unless the customer's policy allows self-approval.

Reference

POSTRegister the destination

POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/own-accounts

Required before a withdrawal. Send exactly one of bank or wallet.

Reference

POSTCreate a withdrawal

POST/v1/platforms/{platformOrgId}/customers/{customerOrgId}/withdrawals

Moves funds to one of those own accounts and returns a payment. A recipient account is not_own_account.

Reference

GETGet withdrawal status

GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/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/platforms/{platformOrgId}/customers/{customerOrgId}/payments

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

Reference