Skip to main content
WEBHOOK
batchTransferWebhook
{
  "bizType": "PAY_BATCH",
  "bizId": "79553020665790540",
  "bizStatus": "PAID",
  "data": "{\"batchItemList\":[{\"amount\":\"0.12300000\",\"channel_id\":\"\",\"create_time\":1780017207390,\"currency\":\"USDT\",\"receiver_id\":22112573,\"status\":\"PAID\"}],\"merchant_batch_no\":\"K4t1ijqX1LYRYmlp\"}"
}
{
  "returnCode": "SUCCESS",
  "returnMessage": ""
}

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 batchTransferWebhook. The full schema, parameters, and examples are rendered from the linked OpenAPI or webhook definition above. GatePay sends asynchronous notifications to the merchant callback URL when batch transfer order status changes (bizType is PAY_BATCH).

Notes

Trigger Scenarios

  • When a batch transfer order status changes, GatePay sends a notification to the callback URL configured at merchant registration
  • If delivery fails, see retry rules in Notifications Overview.
Scope: Batch transfer / batch reward orders (bizType is PAY_BATCH).

Message Structure

FieldTypeDescription
bizTypestringAlways PAY_BATCH
bizIdstringBatch order ID (may be an empty string; use actual payload)
bizStatusstringBatch order status; see table below
client_idstringMerchant client_id that created the order
datastringBusiness payload as a JSON string

Example Message

{
  "bizType": "PAY_BATCH",
  "bizId": "79553020665790540",
  "bizStatus": "PAID",
  "data": "{\"batchItemList\":[{\"amount\":\"0.12300000\",\"channel_id\":\"\",\"create_time\":1780017207390,\"currency\":\"USDT\",\"receiver_id\":22112573,\"status\":\"PAID\"}],\"merchant_batch_no\":\"K4t1ijqX1LYRYmlp\"}"
}

bizStatus Enumeration

ValueDescription
PAIDBatch transfer/reward order completed

data Field Reference

FieldTypeDescription
merchant_batch_nostringMerchant batch number
batchItemListarrayBatch transfer line items

batchItemList Item Fields

FieldTypeDescription
amountstringLine item amount
channel_idstringCustomer name / channel identifier
create_timeint64Creation time (milliseconds)
currencystringCurrency
receiver_idint64Receiver UID
statusstringLine item status, for example PAID

Callback Example

Batch transfer completed (bizStatus=PAID)

{
  "bizType": "PAY_BATCH",
  "bizId": "79553020665790540",
  "bizStatus": "PAID",
  "data": "{\"batchItemList\":[{\"amount\":\"0.12300000\",\"channel_id\":\"\",\"create_time\":1780017207390,\"currency\":\"USDT\",\"receiver_id\":22112573,\"status\":\"PAID\"}],\"merchant_batch_no\":\"K4t1ijqX1LYRYmlp\"}"
}

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; commonly PAID when transfer/reward completes.

Available options:
PAID
data
string
required

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

client_id
string

Merchant client_id that created the order.

batchTransferData
object

Parsed batch transfer 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.