🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
测试地址: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 |是 pay_type|etc类型, my:蚂蚁智行,cj: 畅捷 etc,jyyh:金溢云盒,ystx:宇视 |String |my|是 empty_plot |空闲车位数| Number| 20 |否,pay_type为my时必填 |total_original |折扣前订单金额 单位元| String| 0.01| 否,pay_type为my时必填 |total |折扣后实际支付金额 单位元 |String |0.02| 是 |order_id |订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号)| String| 9009| 是 |out_channel_id| 出场通道| String |A1 |是 |inpark_img |入场图片的url |String |https://s.bolink.club/image/ab.png |否,pay_type为my时必填 |outpark_img| 出场图片的url |String |https://s.bolink.club/image/ab.png |否,pay_type为my时必填 |in_channel_id |入口通道| String| 入口1| 是 |parking_time |停车时长,单位:分 |String |600 |是 |lane_no |ETC车道编码(和天线进行唯一绑定),如果pay_type为jyyh时, lane_no需要填写为金溢云盒的盒子编号.| String| 000123 |是 |license\_color| 车牌颜色,pay_type为my时为以下枚举值 0蓝色;1黄色;2白色;3黑色;4、新能源;5、黄绿色;(不传则默认蓝色),pay_type为cj时为以下枚举值 0蓝色;1黄色;2黑色;3白色;4、渐变绿;5、黄绿双拼;6、蓝白渐变;9未确定;11绿色;13红色(不传则默认蓝色)| Number| 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值为2时需要等待5.5电子收费异步返回结果来处理业务 | 字段名称 |说明 |类型 | 示例 |是否必传字段 | --- | --- | --- | --- |--- | |state |状态| Number| 0失败,1成功,2支付中(仅金溢云盒ETC支付有支付中状态) |是 |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}