Endpoint#
POST
https://YOUR_GATEWAY_HOST/Payment_Dfpay_querybalance.htmlapplication/x-www-form-urlencoded
Parameters#
| Parameter | Meaning | Signed | Description |
|---|---|---|---|
mchid | Merchant ID | Yes | Assigned merchant ID |
pay_md5sign | MD5 signature | No | See signing and verification |
| Parameter | Meaning | Description |
|---|---|---|
status | Status | success: request succeeded; error: request failed |
msg | Description | Result description |
balance | Balance | Returned when status=success |
Examples#
cURL · replace placeholders before use
curl --request POST 'https://YOUR_GATEWAY_HOST/Payment_Dfpay_querybalance.html' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'mchid=10000' \
--data-urlencode 'pay_md5sign=CALCULATE_WITH_YOUR_APIKEY'Request fields · submit as form
{
"mchid": "10000",
"pay_md5sign": "CALCULATE_WITH_YOUR_APIKEY"
}Response example
{
"status": "success",
"msg": "查询成功",
"balance": "1000000.00"
}Response example
{
"status": "error",
"msg": "签名验证失败",
"data": []
}Signing & result handling#
Compute the signature over the operation-specific field set, not every example field.
Open signing guide