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.
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
| Method | Path | Purpose |
|---|---|---|
| POST | /v1/invoices | Create an invoice |
| GET | /v1/invoices/{id} | Details and status |
| GET | /v1/invoices | List with filters |
| POST | /v1/invoices/{id}/claim | Submit a hash for verification |
| POST | /v1/invoices/{id}/cancel | Cancel 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 webhooksInvoice statuses
createdawaiting_paymentdetectedpaidunderpaidoverpaidexpiredlate_paidcancelleddetected 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.