Skip to main content
WEBHOOK

Overview

This page documents webhook institutionAccountWebhook. Parameters, response schema, and examples are rendered from the linked OpenAPI definition above. When sub-account creation succeeds or fails, GatePay sends a POST request to the callback URL configured by the merchant. The merchant should receive and parse the notification at that URL and return HTTP 200 to acknowledge receipt.

Notes

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

  • When sub-account creation completes (success or failure), GatePay sends a notification to your callback URL
  • If delivery fails, see retry rules in Notifications Overview

Message Structure

Parsed data Content

Callback examples

Full payload sent by GatePay:
Parsed content of data:

Sub-account creation failed

Body

application/json

Callback notification body for sub-account creation result

bizType
string
required

Notification type; INSTITUTION = sub-account creation

bizId
string
required

Creation request ID

bizStatus
string
required

Business status: INSTITUTION_ACCOUNT_SUCCESS = created, INSTITUTION_ACCOUNT_FAIL = creation failed

clientId
string
required

Merchant client_id that created the sub-account

data
string
required

Message body as a JSON string; parsed structure see CreateSubAccountCallbackData.

Response

200 - application/json

Return HTTP 200 to indicate the callback notification has been received.

Merchant acknowledgement returned after receiving the callback.

returnCode
string
required

Return status code, for example SUCCESS.

returnMessage
string | null

Return message.