Gift Card Payment Status Notification
When a batch gift-card payment order status changes, GatePay sends a webhook with bizType PAY_GIFT_BATCH.
Verify the signature and return {"returnCode":"SUCCESS","returnMessage":""} after successful processing. On delivery failure, GatePay retries at the intervals documented in Notifications Overview.
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 documentswebhook giftCardPaymentWebhook. 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 gift-card payment order status changes (bizType is PAY_GIFT_BATCH).
Notes
- Use
externalIdorbizIdfor idempotency. - Signature verification, retries, parsing
data, and the success response are covered in Notifications Overview; see Security and Signature for signing rules.
Trigger Scenarios
- When a batch gift-card payment order status changes, GatePay sends a notification to the callback URL configured at merchant registration
- If delivery fails, see retry rules in Notifications Overview.
bizType is PAY_GIFT_BATCH). For gift-card integration, see Gift Card.
Message Structure
| Field | Type | Description |
|---|---|---|
bizType | string | Always PAY_GIFT_BATCH |
bizId | string | Batch gift-card order ID (may be an empty string; use actual payload) |
bizStatus | string | Batch gift-card order status; see table below |
client_id | string | Merchant client_id that created the order |
data | string | Business payload as a JSON string |
Example Message
bizStatus Enumeration
| Value | Description |
|---|---|
PAID | Batch gift-card payment/issuance completed |
data Field Reference
| Field | Type | Description |
|---|---|---|
externalId | string | Merchant external order ID |
batchItemList | array | Batch gift-card line items |
batchItemList Item Fields
| Field | Type | Description |
|---|---|---|
amount | string | Line item amount |
channel_id | string | Customer name / channel identifier |
create_time | int64 | Creation time (milliseconds) |
currency | string | Currency |
receiver_id | int64 | Receiver UID |
status | string | Line item status, for example PAID |
Callback Example
Batch gift-card payment completed (bizStatus=PAID)
Batch gift-card payment completed (with batchItemList)
Body
Business type; always PAY_GIFT_BATCH.
PAY_GIFT_BATCH Batch gift-card order ID.
Batch gift-card order status; commonly PAID when payment/issuance completes.
PAID Business data as a JSON string; parsed structure see giftCardPaymentData.
Merchant client_id that created the order.
Parsed batch gift-card payment details from data.
Response
HTTP 200 indicates the merchant successfully received the notification.

