Skip to content

List payments

GET /v1/payments

Credential: secret key.

ParameterTypeDescription
payment_idstringOnly the payment with this reference
statusstringOnly payments in this status
limitintegerPage size, 1–100. Default 20.
starting_afterstringA payment id: return payments created before it (the next page)
Terminal window
curl "https://api.unizpay.com/v1/payments?status=settled&limit=50" \
-H "Authorization: Bearer $UNIZPAY_SECRET_KEY"
{
"object": "list",
"data": [{ "object": "payment", "id": "pay_01K…", … }],
"has_more": true
}

data holds payment objects, newest first. When has_more is true, request the next page with starting_after set to the last id in data.

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