API v2

The same non-custodial service with a REST design, typed errors and signed webhook events. No account, no API key.

API v2 lives under https://api.noncepay.app/v2/ next to the CryptAPI-compatible routes, which keep working unchanged. It is the same service: the same addresses, confirmations, fees and forwarding, with a cleaner interface.

  • JSON in and out. Reads are GET, creations and actions are POST with a JSON body.
  • snake_case names, amounts as decimal strings ("49.97"), ISO 8601 UTC timestamps.
  • An asset is the pair asset + network: {"asset": "usdt", "network": "tron"}.
  • Prefixed ids: addr_…, pay_…, chk_…, evt_….
  • Real HTTP status codes, and one error shape: {"error": {"code": "invalid_destination", "message": "…", "param": "destination"}}.
  • Typed webhook events, signed over a timestamp and the body, with an event log and resend.

Still no account and no API key: an address is identified by its webhook_url, like a v1 callback URL.

1. Create an address

Terminal
curl -X POST https://api.noncepay.app/v2/addresses \
  -H 'content-type: application/json' \
  -d '{
    "asset": "usdt",
    "network": "tron",
    "destination": "TJzXZQhbhJB3dA2TmxmvyPxk2nKsmZ6yWf",
    "webhook_url": "https://your-shop.com/noncepay?order=1042",
    "metadata": { "order_id": "1042" }
  }'
Response (201)
{
  "object": "address",
  "id": "addr_4vJ9kQ2mXnL8pR7sT1wY3z",
  "deposit_address": "TN7Zbu4UwtKneYDJyDKXkSorVu95hsE3q4",
  "asset": "usdt",
  "network": "tron",
  "destination": [{ "address": "TJzXZQhbhJB3dA2TmxmvyPxk2nKsmZ6yWf", "share": "1" }],
  "webhook_url": "https://your-shop.com/noncepay?order=1042",
  "notify_detected": true,
  "confirmations": 19,
  "priority": "default",
  "any_token": false,
  "minimum_amount": "10",
  "metadata": { "order_id": "1042" },
  "qr_code_url": "https://api.noncepay.app/v2/qrcode?network=tron&address=TN7Zbu4UwtKneYDJyDKXkSorVu95hsE3q4",
  "created_at": "2026-12-01T14:03:11Z"
}

The same webhook_url with the same settings answers the same address (200); with other settings it answers 409 webhook_url_in_use, so a typo in a destination never goes unnoticed. Keep id on your side: it reads the address, its payments and its events.

2. Show it to your customer

Show deposit_address and the amount, with qr_code_url as an image (add &amount=49.97 to it). Convert a price with GET /v2/convert:

Terminal
curl "https://api.noncepay.app/v2/convert?amount=49.90&from=usd&to=usdt&network=tron"

Payments below minimum_amount are recorded but never forwarded; you get a payment.below_minimum event for them.

3. Get notified

Each payment sends payment.detected when it is seen and payment.forwarded once it reached your wallet, as a signed JSON POST to your webhook_url. Webhooks shows how to verify them.

With the Node.js SDK

checkout.ts
import { NoncePayV2 } from '@nonceapp/api'

const noncepay = new NoncePayV2()

const address = await noncepay.createAddress({
  asset: 'usdt',
  network: 'tron',
  destination: 'TJzXZQhbhJB3dA2TmxmvyPxk2nKsmZ6yWf',
  webhook_url: 'https://your-shop.com/noncepay?order=1042',
  metadata: { order_id: '1042' },
})

A payment on the wrong network

A customer sent USDC on Ethereum to an address created for bsc? The address is the same on every EVM network, so the payment can be recovered: call POST /v2/addresses/{id}/recover with the network and the transaction hash. It is checked on chain and forwarded to your destination like any payment.

Terminal
curl -X POST https://api.noncepay.app/v2/addresses/addr_4vJ9kQ2mXnL8pR7sT1wY3z/recover \
  -H 'content-type: application/json' \
  -d '{ "network": "ethereum", "tx_hash": "0x1478…5a48" }'

If your destination is a contract wallet (a Safe) that exists only on the network you asked for, the recovery is refused: the funds would land at an address nobody controls on the other network.

Errors

statuscode
400invalid_request, invalid_asset, invalid_destination, invalid_webhook_url, invalid_amount, invalid_currency
404not_found
409webhook_url_in_use
422recovery_refused
429rate_limited (with Retry-After)
503rates_unavailable, service_unavailable: nothing was created, retry

On this page