OTC
OTC Order Status Update Notification
OTC order result callback sent to the merchant callback URL for both on-ramp and off-ramp flows.
WEBHOOK
Overview
This page documentswebhook 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
bizIdorclientOrderIdfor idempotency after parsingdata. - 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
| Value | Description |
|---|---|
RECHARGE_SUCCESS | OTC on-ramp succeeded |
RECHARGE_FAIL | OTC on-ramp failed |
WITHDRAW_DISPATCHED | OTC off-ramp payout dispatched |
WITHDRAW_SUCCESS | OTC off-ramp succeeded |
WITHDRAW_FAIL | OTC off-ramp failed |
Message Structure
| Field | Type | Description |
|---|---|---|
bizType | string | Always OTC |
bizId | string | OTC order ID |
bizStatus | string | Order status, for example WITHDRAW_DISPATCHED |
clientId | string | Merchant client_id |
data | object | Order details object (not a JSON string) |
data Field Reference
| Field | Type | Description |
|---|---|---|
type | string | Trade direction, for example BUY, SELL |
orderId | string | Platform order ID |
clientOrderId | string | Merchant-side order ID |
fiatCurrency | string | Fiat currency |
fiatAmount | string | Fiat amount |
cryptoCurrency | string | Cryptocurrency |
cryptoAmount | string | Cryptocurrency amount |
fiatRate | string | Exchange rate |
finalFiatAmount | string | Final fiat amount |
updateTime | string | Update time (millisecond timestamp string) |
bankSlipInfo | string | Bank receipt / slip URL (may appear in off-ramp scenarios) |
errMsg | string | Error message (empty on success) |
promoCode | string | Promo code (if any) |
Callback Example (off-ramp WITHDRAW_DISPATCHED)
Callback example (on-ramp RECHARGE_SUCCESS)
Body
application/json
OTC order status callback notification structure
Fixed OTC business type.
OTC order ID.
OTC callback business status.
Available options:
RECHARGE_SUCCESS, RECHARGE_FAIL, WITHDRAW_SUCCESS, WITHDRAW_FAIL, WITHDRAW_DISPATCHED JSON string containing the order snapshot.
Merchant client ID.
Alternate merchant client ID field used by some integrations.
Response
200 - application/json
Returns HTTP 200 to indicate the notification has been received successfully.

