Skip to main content
WEBHOOK

Overview

This page documents webhook otcCallbackWebhook. The full schema, parameters, and examples are rendered from the linked OpenAPI or webhook definition above. Use this webhook to receive OTC on-ramp and off-ramp order status change notifications.

Notes

  • Use bizId or clientOrderId 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.

Trigger scenarios

  • GatePay sends notifications when OTC on-ramp or off-ramp order status changes
  • If delivery fails, GatePay retries according to the schedule in Notifications overview

bizStatus values

Message Structure

data Field Reference

Callback Example (off-ramp WITHDRAW_DISPATCHED)

Callback example (on-ramp RECHARGE_SUCCESS)

Body

application/json

OTC order status callback notification structure

bizType
string
required

Fixed OTC business type.

bizId
string
required

OTC order ID.

bizStatus
enum<string>
required

OTC callback business status.

Available options:
RECHARGE_SUCCESS,
RECHARGE_FAIL,
WITHDRAW_SUCCESS,
WITHDRAW_FAIL,
WITHDRAW_DISPATCHED
data
string
required

JSON string containing the order snapshot.

clientId
string

Merchant client ID.

client_id
string

Alternate merchant client ID field used by some integrations.

Response

200 - application/json

Returns HTTP 200 to indicate the notification has been received successfully.

Response body returned by the merchant after receiving the notification.

returnCode
string
required

Return status code; SUCCESS indicates successful processing.

returnMessage
string | null

Return message; may be empty on success.