API overview
Base URL
Section titled “Base URL”https://api.unizpay.com/v1All requests use HTTPS. Request and response bodies are JSON (Content-Type: application/json).
Conventions
Section titled “Conventions”- Authentication:
Authorization: Bearer <secret key or checkout token>; see Authentication. - Amounts are decimal strings, never numbers:
"25.00"for USD,"0.0412"for tokens. Token amounts have no trailing zeros ("25", not"25.000000"). - Times are ISO 8601 strings in UTC:
"2026-10-31T12:03:41.512Z". - IDs: payments
pay_…, eventsevt_….payment_idis your own reference. - Networks are names (
"polygon");chain_idfields use CAIP-2 ("eip155:137"). - Request IDs: every response has a
Request-Idheader. Include it when you contact support.
Idempotency
Section titled “Idempotency”Creating a payment is idempotent on your payment_id, per mode:
- The first request creates the payment and returns
201. - Repeating the same request returns the existing payment with
200. - Reusing a
payment_idwith different details returns409 conflict.
Requesting a deposit address is also safe to repeat: the same method returns the same address while its quote is valid.
Pagination
Section titled “Pagination”List payments returns { "object": "list", "data": [...], "has_more": true },
newest first. To get the next page, pass the last payment’s id as starting_after.
Endpoints
Section titled “Endpoints”| Method | Path | Credential |
|---|---|---|
POST | /v1/payments | Secret key |
GET | /v1/payments | Secret key |
GET | /v1/payments/{id} | Secret key or checkout token |
GET | /v1/payments/{id}/methods | Secret key or checkout token |
POST | /v1/payments/{id}/address | Secret key or checkout token |
POST | /v1/payments/{id}/cancel | Secret key |
GET | /v1/methods | Secret key |
GET | /v1/networks | Secret key |