Merchant Balance Inquiry
Merchants using prepaid mode can check their available balance.
Introduction
Merchant Available Balance Inquiry in Pre-deposit Mode
API Description
Request Method:POST
Request Path:open/api/queryBalance
Parameters
Request Parameters
| Parameter | Sign | Mandatory | Type | Length | Description |
|---|---|---|---|---|---|
| appId | Y | Y | string | 64 | AppId is unique for merchant |
| sign | N | Y | string | 512 | Sign |
Request Example
{
"appId": "XXXXX",
"sign": "01A04368519570D5XXXXXXFE9078B094D43DE75F"
}Response Parameters
| Parameter | Type | Description |
|---|---|---|
| success | boolean | Success |
| error | boolean | Error |
| code | string | Response code |
| msg | string | Response message |
| traceId | string | Trace id |
| model | object | Balance information |
Model Response Parameters
| Parameter | Type | Description |
|---|---|---|
| availableBalance | string | Current available balance, fixed at 2 decimal places, excess precision truncated. |
| currency | string | Balance currency: Fixed in USD |
Response Example
{
"code": "0",
"msg": "success",
"model": {
"availableBalance": "23.25",
"currency": "USD"
},
"traceId": "6a8ff83d3XXXX800b247f8f29ecc8b",
"success": true,
"error": false
}Updated about 6 hours ago
Did this page help you?
