curl --request POST \
--url https://openplatform.gateapi.io/webhook/institution/v1/accounts/callback \
--header 'Content-Type: application/json' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--data '
{
"bizType": "INSTITUTION",
"bizId": "35778162074976257",
"bizStatus": "INSTITUTION_ACCOUNT_SUCCESS",
"clientId": "ktBVqBBHrEHJmfZH",
"data": "{\"request_id\":\"35778162074976257\",\"account_id\":\"2124543768\",\"customer_id\":\"1234\",\"display_name\":\"my test\",\"status\":\"ACTIVE\",\"created\":1764139242707}"
}
'When sub-account creation succeeds or fails, GatePay sends a POST request to the callback URL configured by the merchant and pushes the notification body. The merchant must accept and parse it at that URL and return HTTP 200 to acknowledge receipt.
curl --request POST \
--url https://openplatform.gateapi.io/webhook/institution/v1/accounts/callback \
--header 'Content-Type: application/json' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--data '
{
"bizType": "INSTITUTION",
"bizId": "35778162074976257",
"bizStatus": "INSTITUTION_ACCOUNT_SUCCESS",
"clientId": "ktBVqBBHrEHJmfZH",
"data": "{\"request_id\":\"35778162074976257\",\"account_id\":\"2124543768\",\"customer_id\":\"1234\",\"display_name\":\"my test\",\"status\":\"ACTIVE\",\"created\":1764139242707}"
}
'Documentation Index
Fetch the complete documentation index at: https://docs.gate.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /webhook/institution/v1/accounts/callback endpoint. The full schema, parameters, 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.
| Field | Type | Description |
|---|---|---|
bizType | string | Notification type; INSTITUTION = sub-account creation |
bizId | string | Creation request ID |
bizStatus | string | Business status: INSTITUTION_ACCOUNT_SUCCESS = created, INSTITUTION_ACCOUNT_FAIL = creation failed |
client_id | string | Merchant client_id that created the sub-account |
data | string | Message content, JSON string; parsed structure is described in the table below |
data Content| Field | Type | Description |
|---|---|---|
request_id | string | Creation request ID |
account_id | string | Sub-account ID |
customer_id | string | Customer ID on the platform side |
display_name | string | Display name |
status | string | Account status: ACTIVE = created, FAIL = creation failed |
created | int64 | Creation time (milliseconds) |
{
"bizType": "INSTITUTION",
"bizId": "35778162074976257",
"bizStatus": "INSTITUTION_ACCOUNT_SUCCESS",
"clientId": "ktBVqBBHrEHJmfZH",
"data": "{\"request_id\":\"35778162074976257\",\"account_id\":\"2124543768\",\"customer_id\":\"1234\",\"display_name\":\"my test\",\"status\":\"ACTIVE\",\"created\":1764139242707}"
}
{
"request_id": "35778162074976257",
"account_id": "2124543768",
"customer_id": "1234",
"display_name": "my test",
"status": "ACTIVE",
"created": 1764139242707
}
Required delegated subject header. Provide the initiating account ID for this transaction. It can be an institution account ID or a sub-account ID.
Callback notification body for sub-account creation result
Notification type; INSTITUTION = sub-account creation
Creation request ID
Business status: INSTITUTION_ACCOUNT_SUCCESS = created, INSTITUTION_ACCOUNT_FAIL = creation failed
Merchant client_id that created the sub-account
Message content, JSON string; parsed structure see CreateSubAccountCallbackData
Acknowledge receipt; merchant must return HTTP 200