Payezydevelopers
Sandbox

API reference / Act as a platform

Get a customer's recipient

GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/counterparties/{counterpartyId}

Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/counterparties/{counterpartyId}.

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.
counterpartyIdpath, uuidrequiredThe recipient id from list recipients or create recipient. A recipient is a counterparty.

Response 200

A recipient

FieldWhat it does
idstring (uuid)requiredRecipient id. Send it as counterpartyId.
namestringrequiredRecipient name shown on the payment.
kindenumrequiredWhether the recipient is an individual, a business, or the organization's own account. One of: individual, business, self.

One of individual business self

emailstringrequiredEmail address.
categoryenumrequiredWhat kind of recipient this is, such as a vendor or a contractor.

One of vendor customer contractor employee other

screening_statusenumrequiredclear means you can pay this recipient. review means wait. blocked means do not pay. One of: clear, review, blocked.

One of clear review blocked

accountsExternalAccount[]requiredPayezy accounts included on this record.
accounts[].idstring (uuid)requiredBank account or wallet id. Send it as external_account_id when you pay or withdraw.
accounts[].typeenumrequiredWhat kind of object this is. One of: bank, wallet.

One of bank wallet

accounts[].is_defaultbooleanrequiredThe account preselected when paying this recipient
accounts[].labelstringrequiredShort name chosen for this record.
accounts[].bank_namestringName of the bank.
accounts[].routing_numberstringABA routing number of the US bank.
accounts[].account_last4stringLast four digits of the bank account number.
accounts[].account_typestringWhether the bank account is a checking or savings account.
accounts[].railsstring[]requiredRails this account can receive.
accounts[].networkstringBlockchain network, such as base.
accounts[].addressstringOn-chain address when this account is a wallet.
created_atstring (date-time)requiredWhen this record was created, as an ISO-8601 timestamp.