交易请求报文
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>barcode_queryorder_request</request_type><isspid>39493002</isspid><pos_id>1511300001</pos_id><store_id>1511300001</store_id><pos_seq>1511300000010</pos_seq><user_id>user01</user_id><system_id>8888</system_id><barcode_queryorder_request><org_pos_seq>1511300000006</org_pos_seq></barcode_queryorder_request></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| request_type | 请求类型 | String(32) | 标识请求报文的类型,固定为barcode_queryorder_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_queryorder_request->org_pos_seq | 需要查询交易的流水号 | String(32) | 需要查询交易的流水号,且大于12位 | 必填 |
交易返回报文
<?xml version="1.0" encoding="GBK"?><business_trans><response_type>barcode_queryorder_response</response_type><isspid>39493002</isspid><pos_id>1511300001</pos_id><pos_seq>1511300000010</pos_seq><order_info><trans_type>1</trans_type><trans_time>20160823151010</trans_time><pos_seq>1511300000006</pos_seq><pay_type>502</pay_type><status>1</status><tx_amt>1000</tx_amt><buss_discount_amt>2</buss_discount_amt><platform_discount_amt>2</platform_discount_amt><seller_account>20880000000000</seller_account><account_alias></account_alias></order_info><reverse_list><reverse_row><trans_type>2</trans_type><trans_time>20160823152010</trans_time><pos_seq>1511300000007</pos_seq><pay_type>502</pay_type><status>0</status><tx_amt>500</tx_amt><org_pos_seq>1511300000006</org_pos_seq></reverse_row><reverse_row><trans_type>2</trans_type><trans_time>20160823153010</trans_time><pos_seq>1511300000008</pos_seq><pay_type>502</pay_type><status>0</status><tx_amt>500</tx_amt><org_pos_seq>1511300000006</org_pos_seq></reverse_row></reverse_list><result><id>0000</id><comment>交易成功</comment></result></business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| response_type | 返回类型 | String(32) | 标识返回报文的类型,固定为barcode_queryorder_response | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,为翼码平台的提供的业务商机构号 | 必填 |
| pos_id | 终端号 | String(20) | 终端号 | 必填 |
| pos_seq | 终端流水号 | String(32) | 终端交易流水号,和请求报文中的交易流水号相同 | 可选 |
| result->id | 响应码 | String(4) | 翼码平台返回的处理结果,0000-成功,其它失败,错误信息说明见“响应码解释”字段 | 必填 |
| result->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
| order_info->trans_type | 交易类型 | String(1) | 1:支付 | 必填 |
| order_info->trans_time | 交易时间 | String(14) | 交易时间,格式:yyyyMMddHHmmss | 必填 |
| order_info->pos_seq | 终端流水号 | String(28) | 支付交易流水号,且大于12位 | 必填 |
| order_info->pay_type | 支付类型 | String(3) | 502:支付宝支付 503:微信支付 504:翼支付 507:和包支付 508:和包验证码支付 512:银联二维码 514:招行掌上生活 515:微信小程序 519:会员余额支付 | 必填 |
| order_info->status | 交易状态 | String(1) | 0:成功 6:等待付款 1:已退款 (仅支付交易类型) a:部分退款 (仅支付交易类型) 8:未付款已撤销 (仅支付交易类型) 3:失败 | 必填 |
| order_info->tx_amt | 交易金额 | String(16) | 交易金额,单位为分,不支持小数点 | 必填 |
| order_info->buss_discount_amt | 商家优惠金额 | String(16) | 商家优惠金额,单位为分 | 可空 |
| order_info->platform_discount_amt | 平台优惠金额 | String(16) | 平台优惠金额,单位为分 | 可空 |
| order_info ->seller_account | 收款账户编号 | String(64) | 可空 | |
| order_info ->account_alias | 收款账户标识 | String(100) | 收款账户编号对应的标识,未设置标识则为空 | 可空 |
| reverse_list 退款流水列表 若无退款信息节点为空 | ||||
| reverse_row 每条流水子节点 | ||||
| trans_type | 交易类型 | String(1) | 2:退款 | 必填 |
| trans_time | 交易时间 | String(14) | 交易时间,格式:yyyyMMddHHmmss | 必填 |
| pos_seq | 终端流水号 | String(28) | 退款交易流水号,且大于12位 | 必填 |
| pay_type | 支付类型 | String(3) | 502:支付宝支付 503:微信支付 504:翼支付 507:和包支付 508:和包验证码支付 512:银联二维码 | 必填 |
| status | 交易状态 | String(1) | 0:成功 3:失败 6:退款处理中 | 必填 |
| tx_amt | 交易金额 | String(16) | 交易金额,单位为分,不支持小数点 | 必填 |
| org_pos_seq | 原终端流水号 | String(28) | 退款交易的原支付流水号 | 可空 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!


