API v1
The first NoncePay API: GET routes with query parameters and callbacks acknowledged with *ok*. Deprecated: use API v2 for new integrations.
Deprecated
API v1 keeps working for existing integrations and the plugins, but new integrations should use API v2: JSON bodies, typed errors and webhook events signed over a timestamp.
API v1 follows the CryptAPI interface, so a CryptAPI SDK or plugin works by changing its base URL. Its integration prompt for AI coding agents is /prompt-v1.md.
How it works
- Your server creates an address with
/{ticker}/create/, passing your callback URL and your wallet. - Your customer pays it. If you asked for it, we call your URL with
pending=1as soon as the payment is seen. - We forward it. Once the payment has the confirmations its network needs, the amount minus our fee and the network cost is sent to your wallet.
- You get a signed callback with
pending=0, the transaction ids and the amounts. Answer*ok*.
Conventions
- Base URL:
https://api.noncepay.app - Every endpoint is a
GETwith query parameters, and every path ends with/. - No API key. The callback URL is the identity of a payment address: the same callback always returns the same address.
- Success answers
200with"status": "success". Errors answer400(or404) with{"status":"error","error":"…"}. - Amounts are strings, so no precision is lost.