Skip to main content
WEBHOOK
payOrderWebhook
{
  "bizType": "PAY",
  "bizId": "1647557960944",
  "bizStatus": "PAY_SUCCESS",
  "data": "{\"merchantTradeNo\":\"gateio_withdraw6331782520222\",\"productType\":\"NFT\",\"productName\":\"ka\",\"tradeType\":\"APP\",\"goodsName\":\"ka\",\"terminalType\":\"APP\",\"currency\":\"USDT\",\"totalFee\":\"1.2\",\"orderAmount\":\"1.2\",\"createTime\":1664123708000,\"transactionId\":\"24344545\",\"channelId\":\"123456\"}"
}
{
  "returnCode": "SUCCESS",
  "returnMessage": null
}

Body

application/json

The callback notification structure for GatePay order status updates.

bizType
enum<string>
required

The type of the business, must be "PAY".

Available options:
PAY
bizId
string
required

The ID of the prepayment.

bizStatus
enum<string>
required

Order status, which can be "PAY_SUCCESS" for payment success, "PAY_CLOSE" for order closed, or "PAY_ERROR" for abnormal scenarios callback.

Available options:
PAY_SUCCESS,
PAY_CLOSE,
PAY_ERROR
data
string
required

The JSON format string of the order data type object. Refer to PayOrderData.

Example:

"{\"merchantTradeNo\":\"gateio_withdraw6331782520222\",\"goodsName\":\"ka\",\"terminalType\":\"APP\",\"currency\":\"USDT\",\"orderAmount\":\"1.2\"}"

payOrderData
object

Order data object (parsed structure of the data field).

description
any

Response

200 - application/json

Returns HTTP 200 to indicate the callback notification has been received.

The response returned by the merchant after receiving the callback.

returnCode
string
required

Return status code, for example SUCCESS.

returnMessage
string | null

Return message.