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
}

Documentation Index

Fetch the complete documentation index at: https://docs.gate.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This page documents webhook payOrderWebhook. The full schema, parameters, and examples are rendered from the linked OpenAPI or webhook definition above.

Notes

  • This page describes a callback payload sent by GatePay, not a merchant-initiated request.
  • Verify the signature first, then apply idempotent processing before updating business state.
  • For callback guidance organized by business flow, read this page together with the Notification guide.
  • For shared signing rules, see /api-reference/version/100/en/common/securityAndSignature.

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.