交易请求报文
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>barcode_refundquery_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><barcode_refundquery_request><pay_type>502</pay_type><org_pos_seq>1511300000001</org_pos_seq></barcode_refundquery_request></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| request_type | 请求类型 | String(32) | 标识请求报文的类型,固定为barcode_refundquery_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) | 由翼码提供 | 必填 |
| barcode_refundquery_request ->pay_type | 支付类型 | String(3) | 502:支付宝支付 503:微信支付 512:银联二维码 514:招行掌上生活 515:微信小程序 516:数字人民币 519:会员余额支付 传空时自动识别 | 可空 |
| barcode_refundquery_request ->org_pos_seq | 需要查询的退款交易流水号 | String(32) | 需要查询的退款交易流水号,且大于12位 | 必填 |
交易返回报文
<?xml version="1.0" encoding="GBK"?><business_trans><response_type>barcode_refundquery_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><pay_type>502</pay_type><alipay_res_info><trade_no></trade_no><out_trade_no></out_trade_no><detail_error_code></detail_error_code><detail_error_desc></detail_error_desc></alipay_res_info><wxpay_res_info><trade_no>4001172001201611169902101944</trade_no><out_trade_no>0001034843100000087203</out_trade_no><app_id>wx5acb63e448b4fc22</app_id><mch_id>1241109502</mch_id><settlement_total_fee>10</settlement_total_fee><settlement_refund_fee>10</settlement_refund_fee><detail_error_code>SUCCESS</detail_error_code><detail_error_desc>OK</detail_error_desc></wxpay_res_info><wxapp_res_info><trade_no>4001172001201611169902101944</trade_no><out_trade_no>0001034843100000087203</out_trade_no><atu_trade_no>2018111522001429701012895360</atu_trade_no><atu_out_trade_no>1811150000001</atu_out_trade_no><app_id>wx5acb63e448b4fc22</app_id><mch_id>1241109502</mch_id><settlement_total_fee>10</settlement_total_fee><settlement_refund_fee>10</settlement_refund_fee><detail_error_code>SUCCESS</detail_error_code><detail_error_desc>OK</detail_error_desc></wxapp_res_info><upay_res_info><trade_no>4001172001201611169902101944</trade_no><out_trade_no>0001034843100000087203</out_trade_no><refund_amt>1</refund_amt></upay_res_info><cmb_res_info><trade_no>190419135176132382298112</trade_no><out_trade_no>201904191391123546</out_trade_no><detail_error_code>1</detail_error_code><detail_error_desc></detail_error_desc></cmb_res_info><ecny_res_info><trade_no>4001172001201611169902101944</trade_no><out_trade_no>0001034843100000087203</out_trade_no></ecny_res_info><balpay_res_info><trade_no>4001172001201611169902101944</trade_no><out_trade_no>0001034843100000087203</out_trade_no></balpay_res_info><result><id>0000</id><comment>成功</comment></result></business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| response_type | 返回类型 | String(32) | 标识返回报文的类型,固定为barcode_refundquery_response | 必填 |
| isspid | 商户号 | String(8) | 翼码平台的提供的商户号 | 必填 |
| pos_id | 终端号 | String(20) | 终端号 | 必填 |
| pos_seq | 终端流水号 | String(32) | 终端交易流水号,和请求报文中的交易流水号相同 | 可选 |
| sys_seq | 平台流水号 | String(16) | 由翼码平台产生,供跟踪之用 | 必填 |
| trans_time | 交易时间 | String(14) | 交易时间,格式:yyyyMMddHHmmss | 必填 |
| pay_type | 支付类型 | String(3) | 502:支付宝支付 503:微信支付 512:银联二维码 514:招行掌上生活 515:微信小程序 516:数字人民币 519:会员余额支付 | 必填 |
| result ->id | 响应码 | String(4) | 翼码平台返回的处理结果 0000-成功 9998-退款处理中,需要调用退款查询交易确认退款结果 其它为失败,错误信息说明见“响应码解释”字段 | 必填 |
| result ->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
| 支付宝支付的时候 | 返回以下数据 | |||
| alipay_res_info ->trade_no | 支付平台处理流水 | String(64) | 交易成功时候,必填 | 可空 |
| alipay_res_info ->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| alipay_res_info ->detail_error_code | 支付详细错误码 | String(48) | 可空 | |
| alipay_res_info ->detail_error_desc | 支付详细错误码说明 | String(64) | 可空 | |
| 微信支付的时候 | 返回以下数据 | |||
| wxpay_res_info ->trade_no | 支付平台处理流水 | String(64) | 交易成功时候,必填 | 可空 |
| wxpay_res_info ->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| wxpay_res_info ->app_id | 微信公众帐号 | String(32) | 交易成功时候,必填 | 可空 |
| wxpay_res_info ->mch_id | 微信商户帐号 | String(32) | 交易成功时候,必填 | 可空 |
| wxpay_res_info ->settlement_total_fee | 应结订单金额 | String(16) | 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额。 单位为分,微信有值时返回 | 可空 |
| wxpay_res_info ->settlement_refund_fee | 退款金额 | String(16) | 去掉非充值代金券退款金额后的退款金额,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额 单位为分,微信有值时返回 | 可空 |
| wxpay_res_info ->detail_error_code | 退款详细错误码 | String(48) | 交易成功时候,必填 | 可空 |
| wxpay_res_info ->detail_error_desc | 退款详细错误码说明 | String(128) | 交易成功时候,必填 | 可空 |
| 微信小程序的时候 | 返回以下数据 | |||
| wxapp_res_info ->trade_no | 支付平台处理流水 | String(64) | 交易成功时候,必填 | 可空 |
| wxapp_res_info ->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| wxapp_res_info ->atu_trade_no | ATU订单号 | String(64) | 支付宝/微信/银联订单号 客户手机支付凭证上的订单号 | 可空 |
| wxapp_res_info ->atu_out_trade_no | ATU商户订单号 | String(64) | 支付宝/微信/银联商户订单号 客户手机支付凭证上的商户订单号 | 可空 |
| wxapp_res_info ->app_id | 微信公众帐号 | String(32) | 交易成功时候,必填 | 可空 |
| wxapp_res_info ->mch_id | 微信商户帐号 | String(32) | 交易成功时候,必填 | 可空 |
| wxapp_res_info ->settlement_total_fee | 应结订单金额 | String(16) | 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额。 单位为分,微信有值时返回 | 可空 |
| wxapp_res_info ->settlement_refund_fee | 退款金额 | String(16) | 去掉非充值代金券退款金额后的退款金额,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额 单位为分,微信有值时返回 | 可空 |
| wxapp_res_info ->detail_error_code | 退款详细错误码 | String(48) | 交易成功时候,必填 | 可空 |
| wxapp_res_info ->detail_error_desc | 退款详细错误码说明 | String(128) | 交易成功时候,必填 | 可空 |
| 银联二维码的时候 | 返回以下数据 | |||
| upay_res_info ->trade_no | 银联订单号 | String(64) | 直连通道交易成功时候,必填 | 可空 |
| upay_res_info ->out_trade_no | 支付商户订单号 | String(64) | 直连通道交易成功时候,必填 | 可空 |
| upay_res_info ->refund_amt | 退款金额 | String(9) | 单位为分 标准银联/合利宝/星POS通道,交易成功时候,必填 | 可空 |
| 招行掌上生活的时候 | 返回以下数据 | |||
| cmb_res_info->trade_no | 支付平台处理流水 | String(64) | 交易成功时候,必填 | 可空 |
| cmb_res_info->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| cmb_res_info->detail_error_code | 支付详细错误码 | String(48) | 可空 | |
| cmb_res_info->detail_error_desc | 支付详细错误码说明 | String(64) | 可空 | |
| 数字人民币的时候 | 返回以下数据 | |||
| ecny_res_info ->trade_no | 平台订单号 | String(64) | 直连通道交易成功时候,必填 | 可空 |
| ecny_res_info ->out_trade_no | 支付商户订单号 | String(64) | 直连通道交易成功时候,必填 | 可空 |
| 会员余额支付的时候 | 返回以下数据 | |||
| balpay_res_info ->trade_no | 平台订单号 | String(64) | 直连通道交易成功时候,必填 | 可空 |
| balpay_res_info ->out_trade_no | 支付商户订单号 | String(64) | 直连通道交易成功时候,必填 | 可空 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!


