GET /v1/payments/{id} endpoint returns a single payment record. You will receive a 403 if the payment exists but belongs to a different merchant, and a 404 if no record with that ID is found. This endpoint requires the donations:read permission on your API key.
Path parameters
The unique identifier of the payment to retrieve, for example
pay_01HXYZ1234ABCDEF.Response
On success the endpoint returns a single Payment object.Unique identifier for the payment.
Email address of the payer.
Payer’s first name.
Payer’s last name.
Payment amount in US dollars.
ISO 4217 currency code. Defaults to
USD.Payment status. One of:
COMPLETED, PENDING, FAILED, REFUNDED.Name of the fund designated by the payer.
Name of the donation form used to collect this payment.
Giving frequency. One of:
ONE_TIME, DAILY, WEEKLY, MONTHLY, ANNUALLY.ISO 8601 timestamp of when the payment was made.
Payment method used, such as
card or bank.Whether the payer elected to cover processing fees.
Whether the payer requested anonymity.
Response codes
| Code | Meaning |
|---|---|
200 | Payment found and returned. |
403 | The payment belongs to a different merchant account. |
404 | No payment with that ID exists. |
Example
Response