Skip to content

Asynchronous Notification for Payment Completion

When an order is successfully paid, the system will send a POST request to the notify_url you provided when creating the order to notify you of the order completion asynchronously.

Notification Request

Headers

The request headers need to include authentication information and content type.

FieldTypeDescription
X-API-KeystringYour API Key, used to identify the caller.
X-TimestampstringThe timestamp of the current request (Unix epoch time, seconds).
X-NoncestringA random string (Nonce). Each request must use a unique Nonce.
X-SignaturestringThe signature of the request content.

Request Body Example (JSON)

json
{
  "id": "524206080",
  "order_no": "Pay1756019978",
  "currency": "EUR",
  "amount": "0.1",
  "chain_type": "bsc",
  "order_amount": "0.12",
  "product_name": "Test product name",
  "cancel_time": 1756021778,
  "meta": "",
  "state": 2,
  "pay_amount": "0.12",
  "fee": "0.01",
  "txid": "0xa3c6beb38c2fa1b4681d3b126a...",
  "pay_time": 1756020040
}

Field Descriptions

FieldTypeDescription
idstringThe internal order ID in the payment system.
order_nostringMerchant's order number.
currencystringOrder currency code.
amountstringOriginal order amount.
chain_typestringPayment chain type.
order_amountstringActual amount collected in USDT.
product_namestringProduct or service name.
cancel_timeintegerThe order's cancellation/expiration time (Unix Timestamp, seconds).
metastringAdditional metadata.
stateintegerThe current status of the order. At this point, it is fixed at 2 (Paid). For more statuses, please refer to Order Status.
pay_amountstringActual payment amount.
feestringTransaction fee.
txidstringBlockchain transaction hash.
pay_timeintegerPayment completion time (Unix Timestamp, seconds).

Response Requirements

To confirm that the notification has been successfully received, your server needs to return an HTTP 200 status code, and the response body should be the string "success".

Notification Retry Mechanism

If your server fails to return the specified successful response (e.g., network timeout, non-200 status code, or incorrect response body format), the system will consider the notification to have failed and will retry according to the following policy:

  • Retry Intervals: The notification intervals are: 4m, 10m, 10m, 1h, 2h, 6h, 15h.
  • Stopping Condition: The system will stop sending notifications after receiving a successful response or after all retries are completed.