List payments
GET /v1/paymentsCredential: secret key.
Query parameters
Section titled “Query parameters”| Parameter | Type | Description |
|---|---|---|
payment_id | string | Only the payment with this reference |
status | string | Only payments in this status |
limit | integer | Page size, 1–100. Default 20. |
starting_after | string | A payment id: return payments created before it (the next page) |
curl "https://api.unizpay.com/v1/payments?status=settled&limit=50" \ -H "Authorization: Bearer $UNIZPAY_SECRET_KEY"Response
Section titled “Response”{ "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.
Find a payment by your reference
Section titled “Find a payment by your reference”curl "https://api.unizpay.com/v1/payments?payment_id=order_1001" \ -H "Authorization: Bearer $UNIZPAY_SECRET_KEY"