Skip to content

Retrieve Payment Invoice

Submission URL: https://openapi.basicex.com/v2/invoices/${invoiceId}

Request Method: GET

Content-Type: application/json

Request Parameters

ParameterTypeDescription
invoiceIdstringID of the payment invoice, used in the query path

Response Parameters

Parameters returned by BasicEx, please refer to the business requirements for specific values.

Upon a successful order request, the response code is 0000.

InvoiceObject

Payment invoice return parameters

FieldTypeDescription
invoiceIdstringPayment invoice order ID
merOrderIdstringMerchant's internal order number
fiatstringISO 4217 3-digit fiat code
currencystringIf the payment invoice order restricts the payment currency or selects the payment currency, this field is returned
currencyInfoCoinInfoIf the payment invoice order restricts the payment network or selects the payment network, this field is returned
View Details
forcedChainstringIf the payment invoice order restricts the payment network or selects the payment network, this field is returned
View Details
fiatAmountstringThe fiat amount of the payment invoice
fiatInfoFiatCurrencyInfoFiat details
View Details
descriptionstringDescription of the payment invoice order
metadatamapStructured metadata passed in for the merchant to record corresponding data. This field will be returned as is
payerEmailstringCustomer email on the merchant side, if passed, an email will be sent to this email after the invoice is successfully paid
merchantCodestringMerchant code
merchantNamestringMerchant name
currenciesListList of supported cryptocurrency information
fiatCurrenciesListList of supported fiat currency information
paymentInfoInvoicePaymentInfoPayment information
View Details
exchangeRateInvoiceExchangeRateExchange rate information
typeintType of the payment invoice order, which is read in XOR form.
1. FIAT_CURRENCY_EXCHANGE: Indicates that the payment invoice is created in the form of fiat currency exchange rate conversion
2. FORCE_SELECTED_CHAIN: Indicates that the payment invoice is created in the form of forcibly selecting the public chain, and the currency and payment public chain cannot be changed subsequently, only payments under this chain are supported
3. FORCE_SELECTED_COIN: Indicates that the payment invoice is created in the form of forcibly selecting the currency, and the currency cannot be changed subsequently, only payments in this currency are supported
statusstringCurrent status of the payment invoice (created: indicates that the payment invoice has been created but not paid, completed: indicates that the payment invoice has been paid and completed, expired: indicates that the payment invoice has expired)
invoiceTimelongTimestamp (13 digits) when the payment invoice is created
expirationTimelongTimestamp (13 digits) when the payment invoice expires
cashierUrlstringThe website of the BasicEx cashier corresponding to the payment invoice, which can be used to pay the unpaid order again to avoid users submitting unpaid orders multiple times

CoinInfo

Currency information

FieldTypeDescription
currencystringCurrency name
fullNamestringFull name of currency
coinIconstringCurrency icon
precisionstringCurrency precision
networkListstringList of public chains supported by the currency

CoinChainInfo

Public chain information

FieldTypeDescription
networkstringPublic chain name
fullNamestringFull name of public chain
contractAddressstringContract address

FiatCurrencyInfo

Fiat currency information

FieldTypeDescription
fullNamestringFull name of fiat currency
namestringFiat currency name
symbolstringCurrency symbol
iconstringCurrency icon

InvoicePaymentInfo

Invoice order information

FieldTypeDescription
allowPaymentstringWhether payment is allowed, if true, it means that this payment order allows payment. If false, it means that the precondition is not met, such as: the order has no payment amount/has not selected the currency/has not selected the public chain/address has expired, etc
payeeAddressstringRecipient address, the user actually transfers to this address to complete the payment
networkCoinChainInfoNetwork information
View Details
totalAmountstringThe total amount that the user needs to pay
paidAmountstringThe amount paid by the user
payeeAddressExpireTimeintThe expiration time of the payment address, in milliseconds. The payment needs to be completed or the payment address needs to be obtained again before the expiration time