Pay: invoices
Cancel a waiting invoice
POST
/v1/invoices/{id}/cancelOnly a waiting invoice without any counted payment can be canceled (409 invoice_not_cancelable). A payment received afterwards is treated as paid_late.
- Safe to retry with the Idempotency-Key header: see Idempotency.
Path parameters#
idstring · uuidrequired
Headers#
Idempotency-KeystringrequiredRequired on every Pay POST; makes it safe to retry for 24 hours. Scoped to the key's environment.
Responses#
200Canceled invoice.
Object fields
idstring · uuidobjectstringstatusstringenvironmentstringexternal_refstringnullablevariantstringchain_idintegernullableChain of the payment (set at creation when one chain is offered).
tokenstringnullabledecimalsintegernullableamount_dueanyamount_receivedanyamount_pendinganydifferencestringnullableSigned difference to the amount due, native units.
priceobjectnullableObject fields
currencystringprice_e6stringfx_rate_e6stringUnits of the currency for 1 USDT, in millionths, frozen at creation.
fx_sourcestringfx_as_ofstring · date-time
chainsarray of objectFields of each item
amountstringNative units, e.g.
12500000for 12.5 USDT with 6 decimals.amount_formattedstringdecimalsintegerchain_idintegertokenstringdeposit_addressstringBase58
T…on TRON.payment_uristringnullableEIP-681 URI for a QR code (EVM chains).
expires_atstring · date-timepaid_atstring · date-timenullablecreated_atstring · date-timemetadataobject
4xx · 5xxError.
Standard error format: see Errors.