Skip to content

Invoice Webhooks

Webhook notifications for invoices are based on the webhook notification type provided when creating the invoice. Currently supported webhook types for invoices are:

  • invoice.paid: Notification for a successfully paid invoice event. This event is triggered after the payment of an invoice, but it does not mean the invoice has been completed. Rely on the invoice.completed event notification for confirmation.
  • invoice.completed: Notification for a completed invoice event. This event is triggered after the completion of an invoice, representing the confirmation that the invoice has been successfully completed.
  • invoice.expired: Notification for an expired invoice event. This event is triggered after an invoice has expired, representing that the invoice has expired.

The data returned for both invoice.paid and invoice.completed is as follows:

FieldTypeDescription
invoiceIdstringInvoice ID
merOrderIdstringMerchant-side merchant order number
fiatstringISO 4217 3-character currency code
currencystringCryptocurrency currency, e.g., USDT, BTC, etc. View the currency list
fiatAmountdecimalThe fiat amount required for payment of this invoice
paidAmountdecimalThe cryptocurrency amount that has been paid
totalAmountdecimalThe cryptocurrency amount required for payment of this invoice
currencyExchangedecimalIf this invoice is converted to a cryptocurrency type, the current exchange rate will be displayed
tradeTimelongPayment timestamp
channelstringPayment channel (biqu_pay: BasicEx Pay, chain_pay: Chain Pay)
metadatamapStructured metadata passed in for the merchant's own record, which will be returned as-is in subsequent responses
chainPaymentInfoInvoiceChainPaymentInfoInformation about the chain payment if chain payment is used

InvoiceChainPaymentInfo

FieldTypeDescription
networkstringThe chain network the user paid with
payeeAddressstringThe recipient address (i.e., BasicEx Wallet ID) of the user's payment
transactionIdstringTransaction ID of the user's payment on the public chain
blockHashstringBlock hash of the user's transaction packed on the chain
blockHeightlongBlock height of the user's transaction packed on the chain
packageTimelongPackage time of the user's transaction packed on the chain