Skip to main content
WEBHOOK

Overview

This page documents asynchronous order-status notifications for reward distribution, corresponding to webhook batchTransferWebhook. GatePay sends this notification to the merchant callback URL after all sub-orders in the batch are paid successfully. The notification uses the standard notification envelope:
  • bizType is always PAY_BATCH
  • bizId is the batch order ID
  • bizStatus is the batch order status; it is PAID when the payout succeeds
  • data is a JSON string

Notes

Trigger scenarios

Reward-distribution notifications are sent only when the entire batch is paid successfully. In this case, bizStatus and each sub-order status are PAID.

Message structure

Example message

data fields

After parsing data, the object fields are:

batchItemList item fields

Callback example

Reward distribution batch success

Integration tips

  1. Verify the signature before parsing the body.
  2. Deserialize data as JSON, then read merchant_batch_no and batchItemList.
  3. Identify the batch with merchant_batch_no and each reward with reward_id.
  4. Treat each item’s status as the actual payout result.
  5. After successful handling, return HTTP 200 with the standard success body:

Body

application/json
bizType
enum<string>
required

Business type; always PAY_BATCH.

Available options:
PAY_BATCH
bizId
string
required

Batch order ID.

bizStatus
enum<string>
required

Batch order status; PAID when the payout succeeds.

Available options:
PAID
data
string
required

Business data as a JSON string; parsed structure see batchTransferData.

batchTransferData
object

Parsed reward distribution details from data.

description
any

Response

200 - application/json

HTTP 200 indicates the merchant successfully received the notification.

Response body returned by the merchant after receiving the notification.

returnCode
string
required

Return status code; SUCCESS indicates success.

returnMessage
string | null

Return message; may be empty on success.