ZonmPay API v2

Account & Channels API

Balance, enforced limits, channels and your effective fees.

ACCOUNT · GETRead-only calls: balance, enforced limits, channels and your real fees.
HomeDocumentationBalance & Limits

Authentication

Every request is authenticated with your secret key in the apiToken header. There is one base URL and one key: your account behaves as a sandbox until go-live is approved, on the same URL. Keep the key server-side only, and note that rotating it expires the previous one immediately.

Required Headers

apiToken

sp_sk_prod_XXXXXXXXXXXX

Content-Type

application/json

Overview

Read your available balance, the caps actually being enforced today, and the channels enabled on your project. GET /api/v1/project/fees is the authoritative source for what you are charged — rates are negotiable, so never hard-code them.

GET

Account Balance

Your confirmed balance and the amount still awaiting confirmation. A successful collection credits your wallet net of the fee.

GET https://zonmpay.com/api/v1/payment/balance

Use zonmpay.com specifically (without www the request is redirected and some HTTP clients drop the POST body — which causes a server error).

bash
curl https://zonmpay.com/api/v1/payment/balance \
  -H "apiToken: SPP_live_YOUR_API_KEY"
GET

Limits & Balance

Returns the limit actually being enforced for each direction along with today's usage and your available balance — the fastest way to tell whether you are hitting a cap or a genuine failure.

GET https://zonmpay.com/api/v1/payment/limits

Use zonmpay.com specifically (without www the request is redirected and some HTTP clients drop the POST body — which causes a server error).

bash
curl https://zonmpay.com/api/v1/payment/limits \
  -H "apiToken: SPP_live_YOUR_API_KEY"
GET

Available Channels

Lists the collection and disbursement channels enabled on your project. Read it at startup rather than hard-coding a channel list, so a newly enabled rail works without a deploy.

GET https://zonmpay.com/api/v2/payment/channels

Use zonmpay.com specifically (without www the request is redirected and some HTTP clients drop the POST body — which causes a server error).

bash
curl https://zonmpay.com/api/v2/payment/channels \
  -H "apiToken: SPP_live_YOUR_API_KEY"

Note: This is also the quickest harmless call to confirm an apiToken works.

GET

Your Effective Fees

The authoritative source for what you are actually charged. Rates are negotiable, so read them here instead of assuming the published list.

GET https://zonmpay.com/api/v1/project/fees

Use zonmpay.com specifically (without www the request is redirected and some HTTP clients drop the POST body — which causes a server error).

bash
curl https://zonmpay.com/api/v1/project/fees \
  -H "apiToken: SPP_live_YOUR_API_KEY"