Webhook Endpoints
Binance Pay will send balance report events with final status only when partner use balance report open api for report generation. For submitting download request, refer here.
Request Parameters
| Attributes | Type | Required | Limitation | Description |
|---|---|---|---|---|
| bizType | string | Y | - | BALANCE |
| bizId | long | Y | - | Download ID |
| bizIdStr | string | Y | - | biz id as string |
| bizStatus | string | Y | - | BALANCE_SUCCESS |
| data | BalanceReportData | Y | - | JSON string |
Child Attribute
BalanceReportData
| Attributes | Type | Required | Limitation | Description |
|---|---|---|---|---|
| downloadType | string | Y | merchant_balance_download_task | |
| downloadId | long | Y | Download ID, for any issue use this ID to query. | |
| userId | long | Y | Spot user ID | |
| status | string | Y | 2 = success | |
| downloadLink | string | Y | Download URL. | |
| expirationTimestamp | long | Y | Expiration timestamp of download link. | |
| createTime | string | Y | Created time of the download document. |
Sample Payload
Code
Response Parameters
| Attributes | Type | Required | Limitation | Description |
|---|---|---|---|---|
| returnCode | string | Y | "SUCCESS" or "FAIL" | result code of notification processing, if process fail, Binance Pay will retry |
| returnMessage | string | N | - | return message |
Sample Response
After receiving a webhook with your endpoint, please respond with an HTTP 200 OK.
Code
Was this page helpful?
Last modified on