Payezydevelopers
Sandbox

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

  • Organizationplatform
  • Permissionplatform:customer_accounts_view

Parameters

ParameterWhat it does
platformOrgIdpath, uuidrequiredYour platform's organization id. platformOrgId is the platform response's org_id.
customerOrgIdpath, uuidrequiredcustomerOrgId is the customer response's org_id.
account_idquery, uuidOnly return records for this Payezy account id, from list accounts.
statusquery, stringOnly return records in this status.
purposequery, stringOnly return records with this purpose. One of: payment, withdrawal, deposit.

One of payment withdrawal deposit

limitquery, integerHow many items to return.

1 to 200, default 50

offsetquery, integerHow many matching items to skip. Use it with limit to page through a list.

Response 200

Payments, newest first

FieldWhat it does
itemsPayment[]requiredRecords in this page.
items[].idstring (uuid)requiredPayment id. Send it as paymentId to get, cancel, approve, or reject the payment.
items[].account_idstring (uuid)requiredPayezy account the money moved from or into.
items[].directionenumrequiredWhether money came in or went out. One of: inbound, outbound.

One of inbound outbound

items[].kindstringrequiredHow the money moved, for example a fiat deposit or a payout.
items[].purposeenumpayment sends to a third party, withdrawal moves funds to the organization's own account, deposit is incoming

One of payment withdrawal deposit

items[].invoice_numberstringYour invoice or bill number, up to 64 characters. It is stored on the payment.
items[].statusstringrequiredWhere the payment is in its lifecycle, such as pending_approval, processing, completed, failed, or canceled.
items[].amountstringrequiredPayment amount as a decimal string in major units of asset.
items[].assetstringrequiredAsset code, such as USD, USDC, or SBC.
items[].feestringrequiredFee reserved with the amount, as a decimal string.
items[].railstringrequiredRail that sent or received the money, such as ach_credit, wire, or onchain.
items[].memostringrequiredNote stored with the payment, up to 140 characters.
items[].failurePaymentFailureWhy a payment failed and the code to branch on.
items[].failure.codestringrequiredStable reason the payment failed.
items[].failure.reasonstringrequiredWhy this happened, or why the change is being made.
items[].created_atstring (date-time)requiredWhen 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[].recipientstringRecipient name (outbound)
items[].recipient_accountstringMasked destination, e.g. Chase ••6789
items[].dest_assetstringStablecoin delivered (crypto payouts)
items[].dest_networkstringNetwork a crypto payout is delivered on.
items[].tx_hashstringOn-chain hash or bank trace number
items[].tx_urlstringBlock explorer page for tx_hash. Set only for a crypto payout whose network Payezy supports.
items[].from_addressstringOn-chain address a crypto payout was sent from (the customer's holding wallet).
items[].to_addressstringOn-chain address a crypto payout was sent to (the destination wallet).
items[].approvals_requiredintegerHow many approvals the payment still needs.
items[].created_bystring (uuid)User id of the person who created this.