Skip to main content

API Reference — Overview

The gateway is the only public entry point; every endpoint lives under /v1.

  • Production: https://api.zaropay.com
  • Test: https://api-test.zaropay.com

All requests authenticate with the X-Api-Key header.

Response envelope

Every successful response uses the same envelope:

{
"success": true,
"message": "Success",
"data": { },
"meta": { "page": 1, "limit": 20, "total": 0 }
}
  • data holds the resource (object) or, for list endpoints, an array.
  • meta is present only on list endpoints (pagination).
  • Create endpoints return 201 with "message": "Created"; reads return 200.

Errors use a parallel envelope — see Errors.

Pagination

List endpoints accept:

ParamDefaultNotes
page1min 1
limit201100

The response meta carries { page, limit, total }.

Common enums

FieldValues
chaintron
currencyUSDT, TRX
deposit-address statusACTIVE, EXPIRED, ARCHIVED
deposit statusDETECTED, CONFIRMING, CONFIRMED, STUCK, REORG_PENDING, FAILED
fee_modemerchant, client

Conventions

  • Money values are decimal strings (e.g. "100", "100.000000000000000000"), never floats — preserve them as strings to avoid precision loss.
  • Correlation id: send an x-correlation-id header and it's echoed back in error responses as correlationId (useful for support).
  • No HTTP idempotency key. There is no Idempotency-Key header. For safety, build charges keyed to your own orderRef, and dedupe webhooks on the payload id (deliveries are at-least-once).

Endpoints

ResourceEndpoint
Create a charge / address / linkPOST /v1/deposit-addresses
List addresses / linksGET /v1/deposit-addresses
Retrieve an address / orderGET /v1/deposit-addresses/:id
List depositsGET /v1/deposits
Retrieve a depositGET /v1/deposits/:id
Manage webhook endpoints/v1/webhooks/endpoints