交易请求报文
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>wecard_gettracelist_request</request_type><isspid>39493002</isspid><transaction_id>1511300000004</transaction_id><system_id>8888</system_id><s_time>20190214</s_time><e_time>20190214</e_time><store_id>6666666666</store_id><pos_id>6666666666</pos_id><code>111111111111111</code></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| request_type | 请求类型 | String(32) | 标识请求报文的类型,固定为wecard_gettracelist_request | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,由翼码平台分配给ipos接入受理商户的机构号(原值返回) | 必填 |
| transaction_id | 请求流水号 | String | 不校验格式,建议随机唯一值方便快速查找日志 | 可空 |
| system_id | 系统平台号 | String(4) | 由翼码提供 | 必填 |
| s_time | 开始日期 | String(8) | 开始日期与结束日期同时传入或同时不传 | 可空 |
| e_time | 结束日期 | String(8) | 开始日期与结束日期同时传入或同时不传 | 可空 |
| store_id | 门店号 | String(20) | 门店号与终端号同时传入或同时不传 | 可空 |
| pos_id | 终端号 | String(20) | 门店号与终端号同时传入或同时不传 | 可空 |
| code | 礼品卡code | String | 礼品卡code | 可空 |
交易返回报文
<?xml version="1.0" encoding="GBK"?><business_trans><response_type>wecard_gettracelist_response</response_type><isspid>39493002</isspid><transaction_id>2020042910009</transaction_id><extend></extend><current_page>1</current_page><list><row><id>222</id><node_id>00055818</node_id><code>798492728980</code><type>3</type><req_seq>2020042930008</req_seq><pos_id>6666666666</pos_id><return_code>ok</return_code><return_msg>ok</return_msg><amount>500</amount><use_type>1</use_type><overplus>0</overplus><location_name>门店水电费</location_name><store_id>6666666666</store_id><consume_source>核销渠道</consume_source><open_id></open_id><create_time>1588126684</create_time><batch_num></batch_num><memo></memo><status>2</status><org_pos_seq></org_pos_seq></row><row><id>223</id><node_id>00055818</node_id><code>798492728980</code><type>3</type><req_seq>2020042900005</req_seq><pos_id>6666666666</pos_id><return_code>ok</return_code><return_msg>ok</return_msg><amount>500</amount><use_type>2</use_type><overplus>500</overplus><location_name>门店水电费</location_name><store_id>6666666666</store_id><consume_source>退款渠道</consume_source><open_id></open_id><create_time>1588126812</create_time><batch_num></batch_num><memo></memo><status>1</status><org_pos_seq>2020042930008</org_pos_seq></row></list><from>1</from><to>2</to><last_page>1</last_page><per_page>15</per_page><total>2</total><result><id>0000</id><comment>查询成功</comment></result></business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| response_type | 返回类型 | String(32) | 标识返回报文的类型,固定为wecard_gettracelist_response | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,为翼码平台的提供的业务商机构号 | 必填 |
| transaction_id | 请求流水号 | String | 与请求一致 | 可空 |
| extend | 扩展信息 | String | 扩展信息字段内容为json格式 预留字段后续业务扩展使用 | 可空 |
| current_page | 当前页码 | String | 可空 | |
| list | 交易列表 | array | 可空 | |
| list ->row | 列表每行 | array | 可空 | |
| list ->row ->id | 数据id | String | 可空 | |
| list ->row ->node_id | 商户号 | String | 可空 | |
| list ->row ->code | 礼品卡code | String | 可空 | |
| list ->row ->type | 礼品卡类型 | String | 2:兑换礼品卡 3:为储值类礼品卡 | 可空 |
| list ->row ->req_seq | 交易流水号 | String | 可空 | |
| list ->row ->pos_id | 自定义终端号 | String | 可空 | |
| list ->row ->return_code | return_code | String | 可空 | |
| list ->row ->return_msg | return_msg | String | 可空 | |
| list ->row ->amount | 交易金额 | String | 分为单位 | 可空 |
| list ->row ->use_type | 类型 | String | 1:核销金额 2:退款金额 3:注销 | 可空 |
| list ->row ->overplus | 剩余金额 | String | 分为单位 | 可空 |
| list ->row ->location_name | 门店名称 | String | 可空 | |
| list ->row ->store_id | 自定义门店号 | String | 可空 | |
| list ->row ->consume_source | 操作渠道 | String | 可空 | |
| list ->row ->open_id | open_id | String | 可空 | |
| list ->row ->create_time | 流水产生时间 | String | 格式为秒级时间戳 | 可空 |
| list ->row ->batch_num | batch_num | String | 可空 | |
| list ->row ->memo | memo | String | 可空 | |
| list ->row ->status | 记录状态 | String | 1:正常 2:已退款 | 可空 |
| list ->row ->org_pos_seq | 原流水号 | String | 可空 | |
| from | 本页从第几条数据开始 | String | 可空 | |
| to | 本页到第几条数据结束 | String | 可空 | |
| last_page | 最后一页页码 | String | 可空 | |
| per_page | 每页条数 | String | 可空 | |
| total | 总条数 | String | 可空 | |
| result->id | 响应码 | String(4) | 翼码平台返回的处理结果,0000-成功,其它失败,错误信息说明见“响应码解释”字段 | 必填 |
| result->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!


