For developers

API reference

REST over HTTPS with JSON bodies. Base URL https://api.xclusor.com. Authenticate every request with Authorization: Bearer <api_key>.

Invoices

POST /v1/invoices

Create an invoice. Send an Idempotency-Key header to make retries safe — the same key returns the original invoice.

FieldTypeDescription
amount_fiatstringRecommended. USD price (max 2 decimals). The customer picks any coin and network you accept on the checkout page and pays the live-rate amount.
networkstringOptional pre-selected network, e.g. tron, bsc, ethereum, polygon, plasma, opbnb, solana, ton, bitcoin. Required with amount.
assetstringOptional pre-selected coin: usdt, btc, eth, bnb, sol, ton, trx or xpl (must exist on the network). Required with amount.
amountstringExact crypto amount in asset, e.g. "25.00" — use instead of amount_fiat. Its USD value is recorded so the customer can still switch coins.
currencystringFiat currency for amount_fiat. Only USD.
order_idstringYour own order reference, returned as external_order_id.
success_urlstringWhere the checkout sends the customer after payment.
cancel_urlstringWhere the checkout sends the customer if they cancel.
metadataobjectArbitrary key/values stored with the invoice.

Returns 201 with the invoice object. network, asset, address and payable_amount reflect the current selection and change if the customer switches coin on the checkout page — always send customers to checkout_url.

GET /v1/invoices

Your 50 most recent invoices, newest first: { "data": [Invoice, …] }.

GET /v1/invoices/{id}

Fetch one invoice by its id.

POST /v1/invoices/{id}/cancel

Cancel a pending invoice. Returns the updated invoice, or 409 not_cancellable if it is no longer pending.

The invoice object

{
  "id": "aZ3f…",
  "status": "pending",          // pending | confirming | paid | partially_paid | expired | cancelled
  "network": "tron",
  "asset": "usdt",
  "address": "T…",              // where the customer pays (your wallet)
  "payable_amount": "25.000123",// exact amount, incl. unique suffix
  "amount_received": "0",       // received so far (partial payments)
  "fiat_currency": "USD",       // only when priced in fiat
  "fiat_amount": "25.00",
  "price_rate": "1.0001",
  "checkout_url": "https://pay.xclusor.com/aZ3f…",
  "expires_at": "2026-01-01T00:30:00.000Z",
  "mode": "live",               // live | test
  "external_order_id": "1001"
}

Payments

GET /v1/payments

Transfers detected to your addresses: id, network, asset, txid, amount, to, confirmations, status, match_status, created_at.

GET /v1/payments/unmatched

Payments that didn't match an invoice automatically (wrong amount or too late).

POST /v1/payments/{id}/assign

Assign an unmatched payment to one of your invoices. Body: { "invoice_id": "aZ3f…" }. Returns { "ok": true, "invoice_status": "paid" | "partially_paid" }.

Networks

GET /v1/networks

Supported networks with their assets, decimals, token contracts and required confirmations.

Errors

Errors use standard HTTP status codes and a consistent body:

{ "error": { "code": "invalid_amount", "message": "Amount must be greater than zero" } }
StatusCodes
400invalid_json, invalid_network, invalid_asset, invalid_amount, unsupported_currency, no_wallet, invalid_request
401unauthorized
403suspended
404not_found
409not_cancellable, assign_failed
503price_unavailable — retry shortly

New here? Start with the API documentation or the Integration guides.

Ready to accept crypto the right way?

Set up your first invoice today. Your keys, your coins, your customers.