交易请求报文

  1. <?xml version="1.0" encoding="GBK"?>
  2. <business_trans>
  3. <request_type>barcode_refundquery_request</request_type>
  4. <isspid>39493002</isspid>
  5. <pos_id>1511300001</pos_id>
  6. <store_id>1511300001</store_id>
  7. <pos_seq>1511300000003</pos_seq>
  8. <user_id>user01</user_id>
  9. <system_id>8888</system_id>
  10. <barcode_refundquery_request>
  11. <pay_type>502</pay_type>
  12. <org_pos_seq>1511300000001</org_pos_seq>
  13. </barcode_refundquery_request>
  14. </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位必填

交易返回报文

  1. <?xml version="1.0" encoding="GBK"?>
  2. <business_trans>
  3. <response_type>barcode_refundquery_response</response_type>
  4. <isspid>39493002</isspid>
  5. <pos_id>123456789</pos_id>
  6. <pos_seq>000000000001</pos_seq>
  7. <sys_seq>000000000244</sys_seq>
  8. <trans_time>20090405010104</trans_time>
  9. <pay_type>502</pay_type>
  10. <alipay_res_info>
  11. <trade_no></trade_no>
  12. <out_trade_no></out_trade_no>
  13. <detail_error_code></detail_error_code>
  14. <detail_error_desc></detail_error_desc>
  15. </alipay_res_info>
  16. <wxpay_res_info>
  17. <trade_no>4001172001201611169902101944</trade_no>
  18. <out_trade_no>0001034843100000087203</out_trade_no>
  19. <app_id>wx5acb63e448b4fc22</app_id>
  20. <mch_id>1241109502</mch_id>
  21. <settlement_total_fee>10</settlement_total_fee>
  22. <settlement_refund_fee>10</settlement_refund_fee>
  23. <detail_error_code>SUCCESS</detail_error_code>
  24. <detail_error_desc>OK</detail_error_desc>
  25. </wxpay_res_info>
  26. <wxapp_res_info>
  27. <trade_no>4001172001201611169902101944</trade_no>
  28. <out_trade_no>0001034843100000087203</out_trade_no>
  29. <app_id>wx5acb63e448b4fc22</app_id>
  30. <mch_id>1241109502</mch_id>
  31. <settlement_total_fee>10</settlement_total_fee>
  32. <settlement_refund_fee>10</settlement_refund_fee>
  33. <detail_error_code>SUCCESS</detail_error_code>
  34. <detail_error_desc>OK</detail_error_desc>
  35. </wxapp_res_info>
  36. <upay_res_info>
  37. <trade_no>4001172001201611169902101944</trade_no>
  38. <out_trade_no>0001034843100000087203</out_trade_no>
  39. <refund_amt>1</refund_amt>
  40. </upay_res_info>
  41. <cmb_res_info>
  42. <trade_no>190419135176132382298112</trade_no>
  43. <out_trade_no>201904191391123546</out_trade_no>
  44. <detail_error_code>1</detail_error_code>
  45. <detail_error_desc></detail_error_desc>
  46. </cmb_res_info>
  47. <ecny_res_info>
  48. <trade_no>4001172001201611169902101944</trade_no>
  49. <out_trade_no>0001034843100000087203</out_trade_no>
  50. </ecny_res_info>
  51. <balpay_res_info>
  52. <trade_no>4001172001201611169902101944</trade_no>
  53. <out_trade_no>0001034843100000087203</out_trade_no>
  54. </balpay_res_info>
  55. <result>
  56. <id>0000</id>
  57. <comment>成功</comment>
  58. </result>
  59. </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
->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)直连通道交易成功时候,必填可空

标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!