地址:https://beta.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:扫码枪支付 |String| cash,wallet,sweepcode |是 empty_plot| 空闲车位数 |Number| 20| 是 total |订单金额| String| 0.01 |是 order_id |订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号)| String| 9009| 是 auth_code| 授权码,支付类型是sweepcode时必传 |String| 微信或支付宝支付码 |否 remark |备注| String |出场信息备注|否 outpark_img|出场图片的url | String| https://s.bolink.club/image/ab.png| 否 * * * * * > 示例: > {"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支付中 |是 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":"非电子支付"}