ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
测试地址:https://beta.bolink.club/unionapi/neworder/updateorder 正式地址:https://s.bolink.club/unionapi/neworder/updateorder 注:车辆出场前,收费系统有电子支付业务需求时,需要先根据接口(5.2接口)接收的信息判断是否可以免密出场。当is_union_user=1时,pay_type=wallet,当is_union_user=0时,可以发起扫码枪支付,这时pay_type=sweepcode,同时auth_code为必传。出场结算业务可能会重复调用车辆出场接口,直到结算完成。 请求参数: | 字段名称 | 说明 | 类型 | 示例 | 是否必传字段 | | --- | --- | --- | --- | --- | park_id |车场编号| String |1001 |是 union_id |厂商编号 |Number |1001| 是 car_number |车牌 |String| 京GH0093| 是 in_time| 进场时间 |Number(unix时间戳格式,精确到秒) |1490875218 |否 out_time |出场时间 |Number(unix时间戳格式,精确到秒) |1490879218 |是 pay_type| 支付类型:cash:现金,wallet:余额支付,sweepcode:扫码枪支付,escape:逃单出场 |String| cash,wallet,sweepcode,escape |是 empty_plot| 空闲车位数 |Number| 20| 是 total |订单金额(实时订单金额不包含已预付、已减免的部分) | String| 0.01 |是 order_id |订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号)| String| 9009| 是 auth_code| 授权码,支付类型是sweepcode时必传 |String| 微信或支付宝支付码 |否 remark |备注(车场可根据业务需要添加备注:is\_prepay 是否预付,0预付,1直付;pay\_channel支付通道:0微信 1支付宝)| json | {"is\_prepay":"0","pay\_channel":"0"}|否 outpark_img|出场图片的url | String| https://s.bolink.club/image/ab.png| 否 out\_channel\_id | 出场通道 | String | A1 |否(被扫、无感离场时传了该字段则支付结果通知原值返回) |license\_color| 车牌颜色,0蓝色;1黄色;2白色;3黑色;4、新能源;5、黄绿色;6、蓝白渐变色;7、其他(微信4.0无感不传则默认蓝色)| Number| 0| 否| |reduce\_amount | 减免金额 | String | 1 | 否 |derate\_duration |减免时长(分钟) | Number | 15 | 否 |freereasons | 免费原因 | String | 军警车免费 | 否 |work\_station\_uuid | 岗亭/工作站唯一标识 | String | qwrrw23534 | 否 |out\_uid | 出场收费员编号 | String | 800191 | 否 |out\_uname | 出场收费员名称 | String |小王 | 否 |is\_report|0是仅支付不上报数据到第三方平台; 1数据上报加支付 ;2仅上报数据到第三方平台,不调支付|Number|1|否 * * * * * > 示例: > {"data":{"park_id":"21798","union_id":200185,"car_number":"京ABC123","in_time":1484369702,"out_time":1484369702,"order_id":"109010","total":"0.01","remark":"出场信息备注","pay_type":"wallet","empty_plot":20,"auth_code": "134789575154465610"},"sign":"629BA006E0E904C0C92552D90D0AA4C7"} 车辆出场接口调用后,分为:方法返回结果(同步)和异步返回结果,pay_type为wallet或sweepcode时,如果返回状态state=2需要等待5.5接口异步返回结果来处理业务. 车辆出场调用方法后返回结果: | 字段名称 | 说明 | 类型 | 示例 | 是否必传字段 | | --- | --- | --- | --- | --- | state |状态 | Number| 0失败,1成功,2支付中, 在is_report为2时,固定返回 1 ,代表提交成功|是 order_id| 订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号)| String| 325101 |是 pay_type| 支付类型 |String |cash,wallet,sweepcode |是 trade_no| 交易流水号 |String |21025486532563 |否 total| 交易金额| float |0.01 |否 pay_channel |支付通道| Number |0微信 1支付宝 2余额 3银联 |否 errmsg |方法返回描述,使用特定第三方(宜昌智慧停车平台、福州大脑、慈溪智慧停车平台、恩施智慧停车平台)无感时,返回对应平台业务参数。 |String |支付成功 |否 | car_number | 车牌 | String| 京GH0093 | 是 | | out_channel_id | 出场通道 | String| A1 | 否 | pay_time |支付时间 |Number(unix时间戳格式,长整型) |1490876000 |是 |arrive_money| 到账金额 | Double| 1.25 |是| |fee| 手续费 | Double |1.25 | 是| |account_type| 到账类型(1-收入 0-支出) |Integer | 1 | 是| |remark| 说明(接口上传过来的title返回下去) |String | 收到停车费-京G00000 |是| * * * * * > 示例: > {"state":1,"order_id":"liu2019021901","car_number":"冀T11111T","trade_no":"","errmsg":"结算成功","total":0.01,"pay_type":"cash","pay_time":1550716675,"pay_channel":-1,"arrive_money":0,"fee":0,"account_type":1,"remark":"非电子支付"}