ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
> **应用场景**: > 使用ETC支付的车场,调用该接口进行扣费,扣费成功后,调用2.3 接口上传完整订单到云平台展示 | 字段名称 | 说明 | 类型 | 示例 | 是否必传字段 | | --- | --- | --- | --- | --- | | service\_name | 接口名称 | String | etc\_pay | 是 | | data\_target | 数据上传位置 | String | cloud | 是 | | park\_id | 车场编号 | String | 1001 | 是 | | car\_number | 车牌 | String | 京GH0093 | 是 | | in\_time | 进场时间 | Number(unix时间戳格式,精确到秒) | 1490875218 | 是 | | out\_time | 出场时间 | Number(unix时间戳格式,精确到秒) | 1490879218 | 是 | | empty\_plot | 空闲车位数 | Number | 20 | 是 | | total\_original | 折扣前订单金额 单位元 | String | 0.01 | 是 | | total | 折扣后实际支付金额 单位元 | String | 0.02 | 是 | | order\_id | 订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号) | String | 9009 | 是 | | out\_channel\_id | 出场通道 | String | A1 | 是 | | inpark\_img | 入场图片的url | String | [https://s.bolink.club/image/ab.png](https://s.bolink.club/image/ab.png) | 是 | | outpark\_img | 出场图片的url | String | [https://s.bolink.club/image/ab.png](https://s.bolink.club/image/ab.png) | 是 | | in\_channel\_id | 入口通道 | String | 入口1 | 是 | | parking\_time | 停车时长,单位:分 | String | 600 | 是 | | lane\_no | ETC车道编码(和天线进行唯一绑定) | String | 000123 | 是 | |pay\_type |ETC类型,my:蚂蚁智行 ;cj:畅捷etc;jyyh:金溢云盒 |String |my|是 示例:{"service_name":"etc_pay","data_target":"cloud","park_id":"1313","car_number":"川AK6F63","in_time":1624593247,"out_time":1624604046,"empty_plot":21,"total_original":"0.01","total":"0.01","order_id":"A1_2C1624606801","out_channel_id":"A2","inpark_img":"https://parkimg.bolink.club/FtafGewje7v4B6mYQG7obTcuBHg0","outpark_img":"https://parkimg.bolink.club/FtafGewje7v4B6mYQG7obTcuBHg0","in_channel_id":"A2","parking_time":"60","lane_no":"000139"} 异步返回结果: 当state值为2时,需要根据3.4电子收费异步返回结果来处理业务 | 字段名称 | 说明 | 类型 | 示例 | 是否必传字段 | | --- | --- | --- | --- | --- | | service\_name | 接口名称 | String | etc\_pay | 是 | | state | 状态 | Number | 0失败,1成功,2支付中(仅金溢云盒ETC支付有支付中状态) | 是 | | errmsg | 方法返回描述 | String | 支付成功 | 否,state=0时必传 | | park\_id | 车场编号 | String | 1001 | 是 | | order\_id | 订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号) | String | 325101 | state=1时必传 | | pay\_type | 支付类型,固定etc | String | etc | state=1时必传 | | trade\_no | 交易流水号 | String | 21025486532563 | state=1时必传 | | total | 交易金额 | float | 0.01 | state=1时必传 | | car\_number | 车牌 | String | 京GH0093 | state=1时必传 | | out\_channel\_id | 出场通道 | String | A1 | 否 | | pay\_time | 支付时间 | Number(unix时间戳格式,长整型) | 1490876000 | state=1时必传 | | arrive\_money | 到账金额 | Double | 1.25 | state=1时必传 | | fee | 手续费 | Double | 1.25 | state=1时必传 | | account\_type | 到账类型(1-收入) | Integer | 1 | state=1时必传 | 示例: {"account_type":1,"arrive_money":0.01,"service_name":"etc_pay","fee":0.0,"park_id":"1313","errmsg":"etc扣费成功","pay_time":1624614034,"total":0.01,"car_number":"川AK6F63","trade_no":"etc202106251740328141129455","pay_type":"etc","state":1,"out_channel_id":"A2","msg_id":"20210625174033.45","order_id":"A1_2C1624606801"}