Skip to content

Retrieve a payment

GET /v1/payments/{id}

Credential: secret key or the payment’s checkout token.

Terminal window
curl https://api.unizpay.com/v1/payments/pay_01K8Z3M0Q4V7Y2B9C6D1E5F8G3 \
-H "Authorization: Bearer $UNIZPAY_SECRET_KEY"

The full payment object.

The payer view: only what a payment page needs.

FieldDescription
object, id, status, livemodeAs in the payment object
merchant_nameYour profile name
amount, currencyThe price
expires_atLast moment to request a deposit address
description, success_url, cancel_urlAs set on the payment
addressesThe issued deposit addresses, each with due filled in when the payment is underpaid

No metadata, payout or settlement details are included.

StatusCodeWhen
404not_foundNo payment with this id in this mode, or a checkout token for another payment