Payezydevelopers
Sandbox

API reference / Payments and approvals

Get a payment

GET/v1/orgs/{orgId}/payments/{paymentId}

A payment with its status, fee, rail, failure details and status history.

Before you call it

  • Permissionpayments:view

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
paymentIdpath, uuidrequiredA payment from createPayment or listPayments.

Response 200

A payment with its status timeline

FieldWhat it does
paymentPaymentrequiredNo description in the spec yet.
payment.idstring (uuid)requiredNo description in the spec yet.
payment.account_idstring (uuid)requiredNo description in the spec yet.
payment.directionenumrequiredNo description in the spec yet.

One of inbound outbound

payment.kindstringrequiredNo description in the spec yet.
payment.purposeenumpayment sends to a third party, withdrawal moves funds to the organization's own account, deposit is incoming

One of payment withdrawal deposit

payment.invoice_numberstringNo description in the spec yet.
payment.statusstringrequiredNo description in the spec yet.
payment.amountstringrequiredNo description in the spec yet.
payment.assetstringrequiredNo description in the spec yet.
payment.feestringrequiredNo description in the spec yet.
payment.railstringrequiredNo description in the spec yet.
payment.memostringrequiredNo description in the spec yet.
payment.failurePaymentFailureNo description in the spec yet.
payment.failure.codestringrequiredNo description in the spec yet.
payment.failure.reasonstringrequiredNo description in the spec yet.
payment.created_atstring (date-time)requiredNo description in the spec yet.
payment.completed_atstring (date-time)No description in the spec yet.
payment.counterparty_idstring (uuid)No description in the spec yet.
payment.recipientstringRecipient name (outbound)
payment.recipient_accountstringMasked destination, e.g. Chase ••6789
payment.dest_assetstringStablecoin delivered (crypto payouts)
payment.dest_networkstringNo description in the spec yet.
payment.tx_hashstringOn-chain hash or bank trace number
payment.approvals_requiredintegerNo description in the spec yet.
payment.created_bystring (uuid)No description in the spec yet.
eventsPaymentEvent[]requiredNo description in the spec yet.
events[].statusstringrequiredNo description in the spec yet.
events[].messagestringrequiredNo description in the spec yet.
events[].atstring (date-time)requiredNo description in the spec yet.
approvalsPaymentApproval[]requiredNo description in the spec yet.
approvals[].user_idstring (uuid)requiredNo description in the spec yet.
approvals[].emailstringNo description in the spec yet.
approvals[].decisionenumrequiredNo description in the spec yet.

One of approve reject

approvals[].commentstringrequiredNo description in the spec yet.
approvals[].atstring (date-time)requiredNo description in the spec yet.
legsPaymentLeg[]requiredNo description in the spec yet.
legs[].seqintegerrequiredNo description in the spec yet.
legs[].partnerstringrequiredNo description in the spec yet.
legs[].operationstringrequiredNo description in the spec yet.
legs[].statusstringrequiredNo description in the spec yet.
legs[].amountstringrequiredNo description in the spec yet.
legs[].referencestringNo description in the spec yet.
can_approvebooleanrequiredThe caller may approve or reject this payment now
can_cancelbooleanrequiredNo description in the spec yet.

Used in guided journeys