交易请求报文
JSON:
{"request_type": "bcm_resultquery_request","isspid": "39493002","pos_id": "8888888888","store_id": "8888888888","pos_seq": "2018121400000005","user_id": "user01","system_id": "8888","bcm_resultquery_request": {"org_pos_seq": "2018121400000001"},"sign": "79CB18BC49A4D60C457506EA4EF27C14"}
XML:
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>bcm_resultquery_request</request_type><isspid>39493002</isspid><pos_id>1511300001</pos_id><store_id>1511300001</store_id><pos_seq>1511300000003</pos_seq><user_id>user01</user_id><system_id>8888</system_id><bcm_resultquery_request><org_pos_seq>1511300000001</org_pos_seq></bcm_resultquery_request></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| sign | 报文签名 | String(32) | 请求报文格式为JSON时必填 计算签名方式请看2.1章节 | 可选 |
| request_type | 请求类型 | String(32) | 固定值:bcm_resultquery_request | 必填 |
| isspid | 商户号 | String(8) | 翼码商户号,由翼码提供 | 必填 |
| pos_id | 终端号 | String(20) | 商户自定义终端号 | 必填 |
| store_id | 门店号 | String(20) | 商户自定义门店号 | 必填 |
| pos_seq | 查询请求流水号 | String(32) | 同一个翼码商户号下唯一,不可重复使用,且大于12位 | 必填 |
| user_id | 操作员标识 | String(20) | 操作员号 | 可空 |
| system_id | 系统平台号 | String(4) | 由翼码提供 | 必填 |
| bcm_resultquery_request ->org_pos_seq | 支付请求流水号 | String(32) | 被查询的支付请求流水号 | 必填 |
交易返回报文
JSON:
{"response_type": "bcm_resultquery_response","isspid": "39493002","pos_id": "8888888888","pos_seq": "2018121400000005","trans_time": "20181214143957","sys_seq": "0f041092d0ccc6ae","bcm_res_info": {"order_id": "1805040000021","mid": "301310070118940","tid": "99800010","batch_no": "000001","trace_no": "000001","ref_no": "000523823884","card_no": "622262*********9671","trade_amount": "1","trade_time": "20190808151515","channel": "4","is_foreign_card": "0","card_type": "C"},"result": {"id": "0000","comment": "交易成功"},"sign": "79D928004531AE15DFA6AD7E9A6A2447"}
XML:
<?xml version="1.0" encoding="GBK"?><business_trans><response_type>bcm_resultquery_response</response_type><isspid>39493002</isspid><pos_id>123456789</pos_id><pos_seq>000000000001</pos_seq><sys_seq>000000000244</sys_seq><trans_time>20090405010104</trans_time><bcm_res_info><order_id>1805040000021</order_id><mid>301310070118940</mid><tid>99800010</tid><batch_no>000001</batch_no><trace_no>000001</trace_no><ref_no>000523823884</ref_no><card_no>622262*********9671</card_no><trade_amount>1</trade_amount><trade_time>20190808151515</trade_time><channel>4</channel><is_foreign_card>0</is_foreign_card><card_type>C</card_type></bcm_res_info><result><id>0000</id><comment>成功</comment></result></business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| sign | 报文签名 | String(32) | 返回报文格式为JSON时必填 计算签名方式请看2.1章节 | 可选 |
| response_type | 返回类型 | String(32) | 固定值:bcm_resultquery_response | 必填 |
| isspid | 商户号 | String(8) | 翼码商户号,由翼码提供 | 必填 |
| pos_id | 终端号 | String(20) | 商户自定义终端号 | 必填 |
| pos_seq | 查询请求流水号 | String(32) | 查询请求流水号,和请求报文相同 | 必填 |
| sys_seq | 随机串号 | String(16) | 随机生成串号,仅用于日志跟踪用,不保存 | 必填 |
| trans_time | 接口返回时间 | String(14) | 接口返回时间,格式:yyyyMMddHHmmss | 必填 |
| result ->id | 响应码 | String(4) | 0000-成功 9998-等待付款 9990-交易失败 其它失败,错误信息说明见“响应码解释”字段 | 必填 |
| result ->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
| bcm_res_info ->order_id | 银行卡订单号 | String(64) | 刷卡通道返回的订单号 | 可空 |
| bcm_res_info ->mid | 银联商户号 | String(64) | 可空 | |
| bcm_res_info ->tid | 银联设备号 | String(8) | 可空 | |
| bcm_res_info ->batch_no | 银联批次号 | String(20) | 可空 | |
| bcm_res_info ->trace_no | 银联流水号 | String(20) | 可空 | |
| bcm_res_info ->ref_no | 银联交易参考号 | String(20) | 可空 | |
| bcm_res_info ->card_no | 交易卡号 | String(20) | 前6后4明文,中间隐藏 | 可空 |
| bcm_res_info ->trade_amount | 交易金额 | String(16) | 以分为单位 | 可空 |
| bcm_res_info ->trade_time | 交易时间 | String(14) | 例如:20190808151515 | 可空 |
| bcm_res_info ->channel | 交易通道 | String(1) | -:POS尚未拉取订单,通道未知 3:交行POS 4:星POS(翼码APP) 5:通联(翼码APP) 6:汇付(翼码APP) | 可空 |
| bcm_res_info ->is_foreign_card | 外卡标识 | String(1) | 0:不是外卡 1:是外卡 | 可空 |
| bcm_res_info ->card_type | 借贷记标识 | String(1) | D:借记卡 C:贷记卡 O:其他 | 可空 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!


