Skip to main content
WEBHOOK

Overview

This page documents webhook fiatPaymentWebhook. 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 fiat payment order status changes (bizType is PAY_FIAT).

Notes

Trigger Scenarios

  • When a fiat payment order status changes (payment success, timeout, cancellation, or closure), GatePay sends a notification to the callback URL configured at merchant registration
  • If delivery fails, see retry rules in Notifications Overview.
Scope: Orders placed and paid in fiat currency (bizType is PAY_FIAT). When fiat is selected at checkout, GatePay converts to crypto at the live rate for collection.

Message Structure

Example Message

bizStatus Enumeration

data Field Reference

payAccount Enumeration

Callback Example

Fiat payment succeeded (bizStatus=PAY_SUCCESS)

Order closed (bizStatus=PAY_CLOSE)

Payment error (bizStatus=PAY_ERROR)

Body

application/json
bizType
enum<string>
required

Business type; always PAY_FIAT.

Available options:
PAY_FIAT
bizId
string
required

Prepaid order ID.

bizStatus
enum<string>
required

Fiat payment order status.

Available options:
PAY_SUCCESS,
PAY_ERROR,
PAY_CLOSE
data
string
required

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

client_id
string

Merchant client_id that created the order.

fiatPaymentData
object

Parsed fiat payment order 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.