Skip to main content
WEBHOOK

Overview

This page documents webhook 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

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.
Scope: Batch gift-card payment orders (bizType is PAY_GIFT_BATCH). For gift-card integration, see Gift Card.

Message Structure

Example Message

bizStatus Enumeration

data Field Reference

batchItemList Item Fields

Callback Example

Batch gift-card payment completed (bizStatus=PAID)

Batch gift-card payment completed (with batchItemList)

Body

application/json
bizType
enum<string>
required

Business type; always PAY_GIFT_BATCH.

Available options:
PAY_GIFT_BATCH
bizId
string
required

Batch gift-card order ID.

bizStatus
enum<string>
required

Batch gift-card order status; commonly PAID when payment/issuance completes.

Available options:
PAID
data
string
required

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

client_id
string

Merchant client_id that created the order.

giftCardPaymentData
object

Parsed batch gift-card payment 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.