测试地址:https://beta.bolink.club/unionapi/etcPayApi 正式地址:https://s.bolink.club/unionapi/etcPayApi 请求参数: | 字段名称 |说明 |类型 | 示例 |是否必传字段 | --- | --- | --- | --- |--- | |union_id |互联互通平台 厂商账号| Number| 200188 |是 |sign| 数据data的签名值 32位| String | |是 |data| 包含下面的所有字段的json对象| json | |是 |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 |是 |outpark_img| 出场图片的url |String |https://s.bolink.club/image/ab.png |是 |in_channel_id |入口通道| String| 入口1| 是 |parking_time |停车时长,单位:分 |String |600 |是 |lane_no |ETC车道编码(和天线进行唯一绑定)| String| 000123 |是 |license\_color| 车牌颜色,0蓝色;1黄色;2白色;3黑色;4、新能源;5、其他;(SDK必须升级4.0.0.0版本)| Number| 0| 否,微信无感4.0必传| 示例: {"sign":"0E07C35F80D32A4E32BE04A72313A2A9","union_id":200159,"data":{"total":"0.01","in_time":1621502665,"out_channel_id":"出口D-(13)","car_number":"川AK6F63","inpark_img":"https://imgl0.xx.cn/?host=20.2.10.221&url=/c/200217/mIM1vUfkZuKH2tFjpeb.jpga","empty_plot":21,"parking_time":"60","order_id":"liu202104271_hul-abcapi-JR07","total_original":"0.01","outpark_img":"https://imgl0.xx.cn/?host=20.2.10.221&url=/c/200217/mIM1vUfkZuKH2tFjpeb.jpga","park_id":"20180427","lane_no":"000139","out_time":1621509665,"in_channel_id":"A1"}} 返回结果: | 字段名称 |说明 |类型 | 示例 |是否必传字段 | --- | --- | --- | --- |--- | |state |状态| Number| 0失败,1成功 |是 |errmsg |方法返回描述 |String |支付成功 |否,state=0时必传 |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-收入 0-支出) |Integer |1 |state=1时必传 示例: {"state":1,"errmsg":"etc扣费成功","order_id":"liu202104271_hul-abcapi-JR07","pay_type":"etc","trade_no":"etc202105201921068871111260","total":0.01,"car_number":"川AK6F63","out_channel_id":"出口D-(13)","pay_time":1621509668,"arrive_money":0.01,"fee":0.0,"account_type":1}