API documentation
A non-custodial crypto payment gateway. Create an invoice, show the checkout link to your customer, and get a webhook when it's paid — straight to your own wallet.
Authentication
All /api/v1 requests use an API key as a Bearer token. Create keys in your dashboard. Test keys (xlr_test_…) create test-mode invoices; live keys (xlr_live_…) create real ones.
Authorization: Bearer xlr_live_xxxxxxxxxxxxxxxx
Create an invoice
POST https://api.xclusor.com/v1/invoices
Price in crypto:
curl https://api.xclusor.com/v1/invoices \
-H "Authorization: Bearer xlr_live_xxx" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1001" \
-d '{
"amount_fiat": "25.00",
"currency": "USD",
"order_id": "1001",
"success_url": "https://yourstore.com/thanks",
"cancel_url": "https://yourstore.com/cart"
}'Your customer chooses the coin and network on the checkout page (from the wallets you added) and pays the live-rate amount. To pre-select one, add network and asset; to charge an exact crypto amount instead, send amount with them:
-d '{ "network": "ethereum", "asset": "usdt", "amount": "49.99" }'Response (201):
{
"id": "aZ3f…",
"status": "pending",
"network": "tron",
"asset": "usdt",
"address": "T…",
"payable_amount": "25.000123",
"fiat_currency": "USD",
"fiat_amount": "25.00",
"checkout_url": "https://pay.xclusor.com/aZ3f…",
"expires_at": "2026-01-01T00:30:00.000Z",
"mode": "live"
}The payable_amount includes a tiny unique suffix so each active invoice is distinguishable on-chain. Always have your customer pay the exact amount.
Other endpoints
Full request/response details for every endpoint are in the API reference.
Base URL: https://api.xclusor.com
GET /v1/invoices— list recent invoicesGET /v1/invoices/{id}— fetch one invoicePOST /v1/invoices/{id}/cancel— cancel a pending invoiceGET /v1/networks— supported networks & assetsGET /v1/payments— received paymentsGET /v1/payments/unmatched— payments awaiting assignment
Webhooks
Add an endpoint in your dashboard. We POST events (e.g. invoice.paid) signed with HMAC-SHA256 in the Xclusor-Signature header:
Xclusor-Signature: t=1700000000,v1=<hex-hmac>
Verify by computing HMAC_SHA256(secret, "<t>.<rawBody>") and comparing to v1. Reject if the timestamp is too old. We retry with backoff until you return 2xx.
Supported networks
| Network | Assets | Confirmations |
|---|---|---|
| TRON (TRC20) | USDT, TRX | 19 |
| BNB Smart Chain (BEP20) | USDT, BNB, ETH, BTC, SOL, XPL | 15 |
| Ethereum (ERC20) | USDT, ETH, BNB, BTC | 12 |
| Polygon (PoS) | USDT | 128 |
| Plasma | USDT, XPL | 10 |
| opBNB | USDT, BNB | 20 |
| Solana (SPL) | USDT, SOL | 32 |
| TON | TON | 16 |
| Bitcoin | BTC | 2 |
| Binance Pay | USDT | 1 |
Ready to accept crypto the right way?
Set up your first invoice today. Your keys, your coins, your customers.