Pay: invoices
Get an invoice with its payments, sweeps and refunds
/v1/invoices/{id}Path parameters#
idstring · uuidrequired
Responses#
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-timemetadataobjectdescriptionstringnullablepaymentsarray of objectFields of each item
amountstringNative units, e.g.
12500000for 12.5 USDT with 6 decimals.amount_formattedstringdecimalsintegeridstring · uuidobjectstringinvoice_idstring · uuidnullablenull: unattributed payment.environmentstringchain_idintegertx_hashstringlog_indexintegerblock_numberintegerblock_timestring · date-timefromstringtokenstringnullablestatusstringignored_reasonstringnullablesanction_hitbooleancreated_atstring · date-time
sweepsarray of objectFields of each item
idstring · uuidobjectstringchain_idintegertx_hashstringlog_indexintegerblock_numberintegertokenstringnullablegrossobjectToken amount (native units as a string, formatted value and decimals).
Object fields
amountstringNative units, e.g.
12500000for 12.5 USDT with 6 decimals.amount_formattedstringdecimalsinteger
feeobjectToken amount (native units as a string, formatted value and decimals).
Object fields
amountstringNative units, e.g.
12500000for 12.5 USDT with 6 decimals.amount_formattedstringdecimalsinteger
netobjectToken amount (native units as a string, formatted value and decimals).
Object fields
amountstringNative units, e.g.
12500000for 12.5 USDT with 6 decimals.amount_formattedstringdecimalsinteger
payoutstringstatusstringshared_depositbooleanVariant B: the sweep may cover several invoices.
created_atstring · date-time
refundsarray of objectFields of each item
amountstringNative units, e.g.
12500000for 12.5 USDT with 6 decimals.amount_formattedstringdecimalsintegeridstring · uuidobjectstringenvironmentstringinvoice_idstring · uuidnullablechain_idintegertokenstringnullableto_addressstringstatusstringtx_hashstringnullablewarningsarray of stringcreated_atstring · date-timeupdated_atstring · date-time
Standard error format: see Errors.