API reference / Act as a platform
List a customer's payments
GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/payments
Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/payments.
Before you call it
- Organization
platform - Permission
platform:customer_accounts_view
Parameters
| Parameter | What it does |
|---|---|
platformOrgIdpath, uuidrequired | Your platform's organization id. platformOrgId is the platform response's org_id. |
customerOrgIdpath, uuidrequired | customerOrgId is the customer response's org_id. |
account_idquery, uuid | Only return records for this Payezy account id, from list accounts. |
statusquery, string | Only return records in this status. |
purposequery, string | Only return records with this purpose. One of: payment, withdrawal, deposit. One of |
limitquery, integer | How many items to return. 1 to 200, default 50 |
offsetquery, integer | How many matching items to skip. Use it with limit to page through a list. |
Response 200
Payments, newest first
| Field | What it does |
|---|---|
itemsPayment[]required | Records in this page. |
items[].idstring (uuid)required | Payment id. Send it as paymentId to get, cancel, approve, or reject the payment. |
items[].account_idstring (uuid)required | Payezy account the money moved from or into. |
items[].directionenumrequired | Whether money came in or went out. One of: inbound, outbound. One of |
items[].kindstringrequired | How the money moved, for example a fiat deposit or a payout. |
items[].purposeenum | payment sends to a third party, withdrawal moves funds to the organization's own account, deposit is incoming One of |
items[].invoice_numberstring | Your invoice or bill number, up to 64 characters. It is stored on the payment. |
items[].statusstringrequired | Where the payment is in its lifecycle, such as pending_approval, processing, completed, failed, or canceled. |
items[].amountstringrequired | Payment amount as a decimal string in major units of asset. |
items[].assetstringrequired | Asset code, such as USD, USDC, or SBC. |
items[].feestringrequired | Fee reserved with the amount, as a decimal string. |
items[].railstringrequired | Rail that sent or received the money, such as ach_credit, wire, or onchain. |
items[].memostringrequired | Note stored with the payment, up to 140 characters. |
items[].failurePaymentFailure | Why a payment failed and the code to branch on. |
items[].failure.codestringrequired | Stable reason the payment failed. |
items[].failure.reasonstringrequired | Why this happened, or why the change is being made. |
items[].created_atstring (date-time)required | When this record was created, as an ISO-8601 timestamp. |
items[].completed_atstring (date-time) | When this finished, as an ISO-8601 timestamp. |
items[].counterparty_idstring (uuid) | Recipient id. A recipient is a counterparty. |
items[].recipientstring | Recipient name (outbound) |
items[].recipient_accountstring | Masked destination, e.g. Chase ••6789 |
items[].dest_assetstring | Stablecoin delivered (crypto payouts) |
items[].dest_networkstring | Network a crypto payout is delivered on. |
items[].tx_hashstring | On-chain hash or bank trace number |
items[].tx_urlstring | Block explorer page for tx_hash. Set only for a crypto payout whose network Payezy supports. |
items[].from_addressstring | On-chain address a crypto payout was sent from (the customer's holding wallet). |
items[].to_addressstring | On-chain address a crypto payout was sent to (the destination wallet). |
items[].approvals_requiredinteger | How many approvals the payment still needs. |
items[].created_bystring (uuid) | User id of the person who created this. |