Retrieve a payment
GET /v1/payments/{id}Credential: secret key or the payment’s checkout token.
curl https://api.unizpay.com/v1/payments/pay_01K8Z3M0Q4V7Y2B9C6D1E5F8G3 \ -H "Authorization: Bearer $UNIZPAY_SECRET_KEY"Response with a secret key
Section titled “Response with a secret key”The full payment object.
Response with a checkout token
Section titled “Response with a checkout token”The payer view: only what a payment page needs.
| Field | Description |
|---|---|
object, id, status, livemode | As in the payment object |
merchant_name | Your profile name |
amount, currency | The price |
expires_at | Last moment to request a deposit address |
description, success_url, cancel_url | As set on the payment |
addresses | The issued deposit addresses, each with due filled in when the payment is underpaid |
No metadata, payout or settlement details are included.
Errors
Section titled “Errors”| Status | Code | When |
|---|---|---|
404 | not_found | No payment with this id in this mode, or a checkout token for another payment |