Skip to main content
WEBHOOK

Overview

This page documents webhook subscriptionOrderPaymentWebhook. The full schema, parameters, and examples are rendered from the linked OpenAPI or webhook definition above. After a subscription billing cycle completes, GatePay sends an asynchronous notification to the merchant-configured callback URL. Depending on the payment channel, bizType may be SUBSCRIPTION_PAYMENT (Web3 on-chain deduction) or ACCOUNT_AUTH_DEDUCTION (Gate account authorized deduction).

Notes

  • Use bizId, paymentOrderNo, or deductOrderNo for idempotency after parsing data.
  • Signature verification, retries, parsing data, and the success response are covered in Notifications Overview; see Security and Signature for signing rules.

When notifications are sent

  • GatePay sends a notification after each subscription billing cycle completes (success or failure)
  • If delivery fails, GatePay retries according to Notifications overview
  • Use Deduction order detail as a query fallback when needed

Message structure

bizStatus values

data fields (bizType=SUBSCRIPTION_PAYMENT)

data fields (bizType=ACCOUNT_AUTH_DEDUCTION)

Callback examples

Web3 deduction success (bizType=SUBSCRIPTION_PAYMENT)

Authorized payment deduction success (bizType=ACCOUNT_AUTH_DEDUCTION)

Authorized payment deduction failed (bizType=ACCOUNT_AUTH_DEDUCTION)

Body

application/json

Subscription order deduction notification parameters POST method

bizType
string

Business type: SUBSCRIPTION_PAYMENT — subscription payment deduction notification; ACCOUNT_AUTH_DEDUCTION — authorized payment deduction notification.

bizStatus
string

Business status: SUCCESS for successful SUBSCRIPTION_PAYMENT; DEDUCT_SUCCESS / DEDUCT_FAILED for ACCOUNT_AUTH_DEDUCTION.

data
string

Deduction details as a JSON string; fields vary by bizType.

bizId
string

Deduction order ID (for SUBSCRIPTION_PAYMENT, usually paymentOrderNo).

Response

200 - application/json

Return HTTP 200 to indicate callback notification has been received.

returnCode
string

Response code, SUCCESS indicates success, FAIL indicates failure

returnMessage
string

Response description, empty when successful