交易请求报文
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>barcode_cancel_request</request_type><isspid>39493002</isspid><pos_id>1511300001</pos_id><store_id>1511300001</store_id><pos_seq>1511300000004</pos_seq><user_id>user01</user_id><system_id>8888</system_id><barcode_cancel_request><pay_type>502</pay_type><org_pos_seq>1511300000001</org_pos_seq></barcode_cancel_request></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| request_type | 请求类型 | String(32) | 标识请求报文的类型,固定为barcode_cancel_request | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,由翼码平台分配给ipos接入受理商户的机构号(原值返回) | 必填 |
| pos_id | 终端号 | String(20) | 终端号 | 必填 |
| store_id | 门店号 | String(20) | 门店号 | 必填 |
| pos_seq | 终端流水号 | String(32) | 同一个商户必须唯一,且大于12位 | 必填 |
| user_id | 操作员标识 | String(20) | 操作员号 | 可空 |
| system_id | 系统平台号 | String(4) | 由翼码提供 | 必填 |
| barcode_cancel_request->pay_type | 支付类型 | String(3) | 502:支付宝支付 503:微信支付 504:翼支付 507:和包支付 508:和包验证码支付 512:银联二维码 515:微信小程序 519:会员余额支付 现已支持支付宝、微信、翼支付、银联二维码、微信小程序自动识别类型 | 可空 |
| barcode_cancel_request->org_pos_seq | 需要撤销交易的流水号 | String(32) | 需要撤销的原支付流水号,且大于12位 | 必填 |
交易返回报文
<?xml version="1.0" encoding="GBK"?><business_trans><response_type>barcode_cancel_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>2014110721001004640000791910</trade_no><out_trade_no>2014110721001004640000791910</out_trade_no><detail_error_code></detail_error_code><detail_error_desc></detail_error_desc></alipay_res_info><wxpay_res_info><out_trade_no>2014110721001004640000791910</out_trade_no><app_id>2014110721001004640000791910</app_id><mch_id>2014110721001004640000791910</mch_id><detail_error_code></detail_error_code><detail_error_desc></detail_error_desc></wxpay_res_info><wxapp_res_info><out_trade_no>2014110721001004640000791910</out_trade_no><app_id>2014110721001004640000791910</app_id><mch_id>2014110721001004640000791910</mch_id><detail_error_code></detail_error_code><detail_error_desc></detail_error_desc></wxapp_res_info><yzf_res_info><out_trade_no>2014110721001004640000791910</out_trade_no><detail_error_code>FAIL</detail_error_code><detail_error_desc>退款失败</detail_error_desc></yzf_res_info><cmpay_res_info><out_trade_no>0001034843100000001963</out_trade_no><detail_error_code></detail_error_code><detail_error_desc></detail_error_desc></cmpay_res_info><umpay_res_info><trade_no></trade_no><out_trade_no>0001034843100000001964</out_trade_no><detail_error_code></detail_error_code><detail_error_desc></detail_error_desc></umpay_res_info><balpay_res_info><trade_no>2014110721001004640000791910</trade_no><out_trade_no>2014110721001004640000791910</out_trade_no></balpay_res_info><result><id>0000</id><comment>成功</comment></result></business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| response_type | 返回类型 | String(32) | 标识返回报文的类型,固定为barcode_cancel_response | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,为翼码平台的提供的业务商机构号 | 必填 |
| pos_id | 终端号 | String(20) | 终端号 | 必填 |
| pos_seq | 终端流水号 | String(32) | 终端交易流水号,和请求报文中的交易流水号相同 | 必填 |
| sys_seq | 平台流水号 | String(16) | 由翼码平台产生,供跟踪之用 | 必填 |
| trans_time | 交易时间 | String(14) | 交易时间,格式:yyyyMMddHHmmss | 必填 |
| pay_type | 支付类型 | String(3) | 502:支付宝支付 503:微信支付 504:翼支付 507:和包支付 508:和包验证码支付 512:银联二维码 515:微信小程序 519:会员余额支付 | 必填 |
| result->id | 响应码 | String(4) | 翼码平台返回的处理结果,0000-成功,其它失败,错误信息说明见“响应码解释”字段 | 必填 |
| 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->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| wxpay_res_info->detail_error_code | 支付详细错误码 | String(48) | 交易成功时候,必填 | 可空 |
| wxpay_res_info->detail_error_desc | 支付详细错误码说明 | String(128) | 交易成功时候,必填 | 可空 |
| wxpay_res_info->app_id | 微信公众帐号 | String(32) | 交易成功时候,必填 | 可空 |
| wxpay_res_info->mch_id | 微信商户帐号 | String(32) | 交易成功时候,必填 | 可空 |
| 微信小程序的时候,返回以下数据 | ||||
| wxapp_res_info->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| wxapp_res_info->detail_error_code | 支付详细错误码 | String(48) | 交易成功时候,必填 | 可空 |
| wxapp_res_info->detail_error_desc | 支付详细错误码说明 | String(128) | 交易成功时候,必填 | 可空 |
| wxapp_res_info->app_id | 微信公众帐号 | String(32) | 交易成功时候,必填 | 可空 |
| wxapp_res_info->mch_id | 微信商户帐号 | String(32) | 交易成功时候,必填 | 可空 |
| 翼支付的时候,返回以下数据 | ||||
| yzf_res_info->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| yzf_res_info->detail_error_code | 支付详细错误码 | String(48) | 交易成功时候,必填 | 可空 |
| yzf_res_info->detail_error_desc | 支付详细错误码说明 | String(128) | 交易成功时候,必填 | 可空 |
| 和包支付的时候,返回以下数据 | ||||
| cmpay_res_info->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| 和包验证码支付的时候,返回以下数据 | ||||
| umpay_res_info->out_trade_no | 支付交易请求流水 | String(64) | 交易成功时候,必填 | 可空 |
| 会员余额支付的时候 | 返回以下数据 | |||
| balpay_res_info ->trade_no | 支付平台订单号 | String(64) | 交易成功时候,必填 | 可空 |
| balpay_res_info ->out_trade_no | 支付商户订单号 | String(64) | 交易成功时候,必填 | 可空 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!


