Appearance
账户余额查询
公共参数
参数 | 类型 | 是否必填 | 最大长度 | 描述 | 示例值 |
---|---|---|---|---|---|
mch_no | String | 是 | 32 | 商户号 | 2014072300007148 |
sub_mch_no | String | 否 | 32 | 子商户号 | 100123456 |
method | String | 是 | 128 | 接口名称,固定传 trade.query.account | trade.query.account |
charset | String | 是 | 10 | 调用的接口版本,固定为:utf-8 | utf-8 |
sign_type | String | 是 | 10 | 商户生成签名字符串所使用的签名算法类型,目前支持 RSA | RSA 或 rsa |
sign | String | 是 | 344 | 商户请求参数的签名串 | 详见示例 |
timestamp | String | 是 | 19 | 发送请求的时间,格式"yyyy-MM-dd HH:mm:ss" | 2014-07-24 03:07:50 |
version | String | 是 | 3 | 调用的接口版本,固定为:1.0 | 1.0 |
notify_url | String | 否 | 200 | 不用传,异步通知地址,200 个字符之内 | http://localhost/notify.html |
biz_content | String | 否 | 不用传,业务参数 |
返回信息
json
返回结果示例:
{
"code": 20000,
"msg": "success",
"merchant_no": "21573050824562",
"data": [
{
"accountType": "DIVIDE_ACCOUNT",
"createTime": "2023-05-15 11:50:27",
"balance": 19.83,
"accountStatus": "AVAILABLE"
},
{
"accountType": "FUND_ACCOUNT",
"createTime": "2023-05-15 11:50:27",
"balance": 0,
"accountStatus": "AVAILABLE"
},
{
"accountType": "SETTLE_ACCOUNT",
"createTime": "2023-05-15 11:50:27",
"balance": 19.84,
"accountStatus": "AVAILABLE"
}
],
"sign": "YubEYqxurMwb/cund8sVIx6wJ8aGn/oIL79e6LgE/9bMAnjzlWqZEp296hbMoWr4Ge8+EhJBbcIwFhhxdfhYTW9tvd8KXubwO/73w6pnpKD3llrgsBlfWhsMLFfmRTl1eV1m4r6SuYLGNplaw/ZdILHUC4h4X6iFB4hvC9Y7lH1P5URi3bDZpUEBhCIwUUczgQ9uKofkH68VS5zpBxUJo++TK4A3OudtHGLghcqGDG629H/r5Q+8OZ52H4v87DKf6jx654Fgx9+UmdLAL+rGzjrHyfGcGEVLV6Kly2JuVwSSkobsNlDtCDJ7nnYz9A7CjRfC2AhA+LJbVq8WtTMcig=="
}
返回字段说明
参数 | 类型 | 描述 |
---|---|---|
code | Int | 20000 |
msg | String | success |
merchant_no | String | 商户号 |
data | Array | 提现卡信息: [accountType:账户类型;SETTLE_ACCOUNT:待结算账户;FUND_ACCOUNT:商户资金账户;MARKET_ACCOUNT:营销账户;DIVIDE_ACCOUNT:待分账账户;FEE_ACCOUNT:手续费账户;createTime:开户时间;balance:余额;accountStatus:账户状态;可选项如下:AVAILABLE:可用;FROZEN:冻结;FROZEN_CREDIT:冻结止收;FROZEN_DEBIT:冻结止付;CANCELLATION:销户;] |
sign | String | 签名字符串 |