Docs · API draft

Embed payments.
Understand every event.

Sample API requests. Keys, addresses and order numbers in the examples are placeholders.

Your first invoice

Create a project, add a wallet and get a test key. Pass amounts as strings, and use the order number to link invoices to your system.

REST / JSON
POST /v1/invoices
X-Api-Key: pk_test_demo
X-Timestamp: 1795438800
X-Signature: hmac_sha256(...)
Idempotency-Key: zori-order-3848

{
  "order_id": "ZOR-3848",
  "price": { "amount": "249.00", "currency": "USD" },
  "allowed_assets": ["usdt_trc20"]
}

Signing and idempotency

The API draft uses HMAC-SHA256 over the timestamp, method, path and raw body. The server checks the time window and compares signatures in constant time. Repeating a POST with the same Idempotency-Key returns the same result.

timestamp + "." + METHOD + "." + path + "." + rawBody

Core methods

MethodPathPurpose
POST/v1/invoicesCreate an invoice
GET/v1/invoices/{id}Details and status
GET/v1/invoicesList with filters
POST/v1/invoices/{id}/claimSubmit a hash for verification
POST/v1/invoices/{id}/cancelCancel an unpaid invoice

Don't fulfill orders on redirect

Rely on the signed invoice.paid event or a server-side status check. A buyer landing on the success URL doesn't confirm the transfer by itself.

The webhook includes an event_id. Verify the signature of the raw body, deduplicate the event and return a 2xx once it's safely received.

More about webhooks

Invoice statuses

createdawaiting_paymentdetectedpaidunderpaidoverpaidexpiredlate_paidcancelled

detected means a transaction was found, not that payment is final. A failed webhook delivery doesn't change the state of an invoice that's already paid.

SDKs & plugins

SDKs for PHP, Node.js and Python are planned, followed by modules for WooCommerce and WHMCS. For now, integration goes through the HTTP API.

No real transfer

Try a payment

Nord store · STORE-1048
249.00USDTTRON · TRC-20
Demo QR: not a payment address

This is a demo QR.
Do not send funds.

Invoice open. No transfer detected yet.