商户余额查询
POST
https://api.kfim.cn/pay_gate/query_balance
请求参数
Body 参数application/x-www-form-urlencoded
business_code
string
业务code
mch_num
string
商户号
timestamp
string
当前时间戳10位
sign
string
签名
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.kfim.cn/pay_gate/query_balance' \
--data-urlencode 'business_code=' \
--data-urlencode 'mch_num=' \
--data-urlencode 'timestamp=' \
--data-urlencode 'sign='
返回响应
🟢200成功
application/json
Body
code
integer
状态码
msg
string
返回文字描述
data
object
必需
totalAmount
string
账户总金额
settledUnpaidAmount
string
已结算未付款金额
accountList
array [object {4}]
必需
示例
{
"code": 0,
"msg": "success",
"data": {
"totalAmount": "0.02",
"settledUnpaidAmount": "0.0",
"accountList": [
{
"accountType": "01",
"cashAmount": "0.0",
"uncashAmount": "0.0",
"amountChangetime": "2024-09-16 23:28:44"
},
{
"accountType": "02",
"cashAmount": "0.0",
"uncashAmount": "0.02",
"amountChangetime": "2024-09-16 23:28:44"
}
]
}
}
🟠404失败