Invoices
An invoice is a request for a fixed amount, paid on the hosted checkout to a fresh address created for that invoice. Confirmed payments are credited to your U Xa balance.
Create an invoice
| Field | Type | Description |
|---|---|---|
amount | string | Required. Decimal amount, for example "25.00". |
currency | string | USD (default) or any active ISO 4217 fiat code from GET /api/v1/fx (or GET /api/v1/coins fiat), or a coin symbol such as BTC or USDT to bill in crypto. For fiats other than USD, EUR, GBP and TRY, the USD rate is locked when the invoice is created. If that rate is missing or older than an hour, the server returns 422 fx_unavailable. |
methods | string[] | Optional subset of your enabled methods, for example ["btc","usdt_trc20"]. |
method | string | Optional. Pre-select one method; the checkout opens directly on the payment step. |
order_id | string | Your reference, up to 120 characters. |
description | string | Shown to the customer, up to 255 characters. |
success_url | string | Where the customer goes after paying. |
cancel_url | string | Shown as “Back to store”. |
webhook_url | string | Overrides your account webhook for this invoice. |
customer_email | string | Stored with the invoice for your records. |
expires_in | integer | Minutes until expiry, 10–1440. Default 30. |
metadata | object | Any JSON object up to 4 KB, returned in responses and webhooks. |
The invoice object
{
"id": "inv_7fK2mQ9xYp3RtB8wLs4N",
"status": "confirming",
"amount": "25",
"currency": "USD",
"description": "2 x Ethiopia Guji",
"order_id": "1042",
"methods": ["btc", "eth", "usdt_trc20"],
"payment": {
"method": "usdt_trc20",
"symbol": "USDT",
"network": "Tron (TRC-20)",
"address": "TQx9…4hP2",
"amount": "25.02",
"amount_units": "25020000",
"received": "25.02",
"rate": "0.9992",
"txid": "a6aa97db04c3…",
"confirmations": 1,
"confirmations_required": 1,
"explorer_url": "https://tronscan.org/#/transaction/a6aa97db04c3…",
"uri": "TQx9…4hP2"
},
"checkout_url": "https://uxa.world/pay/inv_7fK2mQ9xYp3RtB8wLs4N",
"created_at": "2026-10-22T15:00:00Z",
"expires_at": "2026-10-22T15:30:00Z",
"paid_at": null,
"metadata": null
}
payment is null until a method is chosen. The crypto amount is locked at that moment and stays valid until expires_at.
Statuses
| Status | Meaning |
|---|---|
| pending | Waiting for the customer to pay. |
| confirming | The full amount was seen on-chain and is waiting for confirmations. |
| paid | Confirmed. Fulfil the order. |
| partial | Less than the requested amount arrived. The customer can send the rest before expiry. |
| expired | Not paid in time. Payments arriving up to 6 hours late are still matched and move the invoice to paid. |
| cancelled | Cancelled by you before any payment. |
Retrieve an invoice
Also triggers a fresh blockchain check (at most every 12 seconds).
List invoices
Cancel an invoice
Only pending invoices without any detected payment can be cancelled.
Addresses and settlement
Every invoice gets its own deposit address the first time the customer picks a coin, so a payment can only ever match one invoice. Underpayments up to 0.5% are accepted as paid; this tolerance is configurable.
When the payment has enough confirmations, the amount received is credited to your balance and the payment fee is deducted in the same coin. The invoice in the app and in GET /api/v1/app/invoices shows the credited amount, the fee and the net amount.