Query Balance
接口网关
URL address:
https://pay.xxx.io/pay/balancequery
提示
此接口为测试接口,请向业务人员索要
请求参数
Parameter Name | Variable Name | Type | Required | Example | Comment |
---|---|---|---|---|---|
Merchant UID | mchid | string | TRUE | 100000 | Merchant UID |
样例:
{
"mchid": 100000
}
返回结果
字段名 | 变量名 | 类型 | 必填 | 示例值 | 说明 |
---|---|---|---|---|---|
错误码 | result_code | string | TRUE | OK | 结果码. OK:成功,其他:失败 |
返回消息 | result_msg | string | TRUE | SUCCESS | 提示信息. SUCCESS:成功 |
数据对象 | charge | object | TRUE | 返回支付对象(请看下方具体数据) |
成功样例:
{
"result_code": "OK",
"result_msg": "SUCCESS",
"charge": [
{
"uid": 100000,
"currency": "INR",
"limit_credits": "-1000000000.000",
"security_deposit_credits": "0.000",
"unsettled_credits": "51356.336",
"hold_credits": "0.000",
"commission_credits": "229.470",
"available_credits": "48382.870"
},
{
"uid": 100000,
"currency": "VND",
"limit_credits": "-1000000000.000",
"security_deposit_credits": "0.000",
"unsettled_credits": "126131.336",
"hold_credits": "0.000",
"commission_credits": "229.470",
"available_credits": "-42728.130"
}
]
}
失败样例:
{
"error_msg": "Invalid Request.[ Request header [authentication] Failure.]",
"error_code": 400000
}
提示
[success] 这里是成功返回信息 在返回JSON数据中 result_code=OK 和 result_msg= SUCCESS 时才有 charge
[error] 这里是错误返回信息 在返回错误数据中仅有 error_code 和 error_msg