业务说明
用于获取平台下所有用户的余额数据,非实时数据,15分钟更新一次
交易请求报文
JSON:
{"request_type": "account_balance_mget_request","isspid": "00058307","pos_seq": "20230620141255693","system_id": "8888","sign": "BF84A2679EA7C7AD72F3F8C8483C744B"}
XML:
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>account_balance_mget_request</request_type><isspid>00058307</isspid><pos_seq>20230620141255693</pos_seq><system_id>8888</system_id></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| sign | 报文签名 | String(32) | 请求报文格式为JSON时必填 计算签名方式请看2.1章节 | 可选 |
| request_type | 请求类型 | String(32) | 固定值:account_balance_mget_request | 必填 |
| isspid | 商户号 | String(8) | 翼码商户号,由翼码提供 | 必填 |
| pos_seq | 请求流水号 | String(32) | 仅用于方便日志查询时作为唯一标识 | 可空 |
| system_id | 系统平台号 | String(4) | 由翼码提供 | 必填 |
交易返回报文
JSON:
{"response_type": "account_balance_mget_response","isspid": "00058307","pos_seq": "20230620141255693","trans_time": "20230620141355","list": [{"merchant_id": 1000066,"type": "01","balance_amt": 0,"avl_amt": 0,"frz_amt": 0,"control_amt": 0,"last_avl_amt": 0,"status": "N","update_time": "2023-06-20 14:00:03"},{"merchant_id": 1000067,"type": "01","balance_amt": 0,"avl_amt": 0,"frz_amt": 0,"control_amt": 0,"last_avl_amt": 0,"status": "N","update_time": "2023-06-20 14:00:03"}],"result": {"id": "0000","comment": "查询成功"},"sign": "91B1DD5554468AD08E7FC7907FE7F8F3"}
XML:
<?xml version="1.0" encoding="GBK"?><business_trans><response_type>account_balance_mget_response</response_type><isspid>00058307</isspid><pos_seq>20230620141255693</pos_seq><trans_time>20230620141355</trans_time><list><![CDATA[[{"merchant_id": 1000066,"type": "01","balance_amt": 0,"avl_amt": 0,"frz_amt": 0,"control_amt": 0,"last_avl_amt": 0,"status": "N","update_time": "2023-06-20 14:00:03"},{"merchant_id": 1000067,"type": "01","balance_amt": 0,"avl_amt": 0,"frz_amt": 0,"control_amt": 0,"last_avl_amt": 0,"status": "N","update_time": "2023-06-20 14:00:03"}]]]></list><result><id>0000</id><comment>查询成功</comment></result></business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| sign | 报文签名 | String(32) | 返回报文格式为JSON时必填 计算签名方式请看2.1章节 | 可选 |
| response_type | 返回类型 | String(32) | 固定值:account_balance_mget_response | 必填 |
| isspid | 商户号 | String(8) | 翼码商户号,由翼码提供 | 必填 |
| pos_seq | 请求流水号 | String(32) | 和请求报文相同 | 可空 |
| trans_time | 接口返回时间 | String(14) | 接口返回时间,格式:yyyyMMddHHmmss | 必填 |
| list | 数据列表 | JSONArray | 当使用xml格式报文时,此字段为JSONString并使用CDATA标签包裹 | 可空 |
| result ->id | 响应码 | String(4) | 0000:查询成功 其它为失败,错误信息说明见“响应码解释”字段 | 必填 |
| result ->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
list 数据列表
| JSON节点 | 类型 | 说明 | 是否必填 | 范例 |
|---|---|---|---|---|
| merchant_id | Integer | 分账商户id | 必填 | 1000066 |
| type | String | 账户类型:01-基本户 02-现金户 03-延时户 04-钱包户 05-充值户 06-微信延时户 09-营销户 | 必填 | 01 |
| balance_amt | Integer | 账户余额(分),可用余额+冻结余额 | 必填 | 0 |
| avl_amt | Integer | 可用余额(分) | 必填 | 0 |
| frz_amt | Integer | 冻结余额(分) | 必填 | 0 |
| control_amt | Integer | 管控金额(分) 该金额包含在冻结金额中 | 必填 | 0 |
| last_avl_amt | Integer | 昨日日终余额(分) | 必填 | 0 |
| status | String | 状态:N-正常 C-关闭 F-冻结 D-销户 | 必填 | N |
| update_time | String | 数据更新时间,格式:yyyy-MM-dd HH:mm:ss | 必填 | 2023-06-20 14:00:03 |


