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.
| 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 |
| 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
}
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