>使用第三方支付平台的4G车场调用该接口接收出口付消息通知
测试地址:http://test.bolink.club/zld/openservice/outpark
正式地址:http://yun.bolink.club/zld/openservice/outpark
|字段名称 | 说明|类型| 示例|是否必传字段|
| --- | --- |--- | --- | --- |
park_id |车场编号 |String | 1001 | 是
union_id | 厂商编号 |String | 200279 |是
state |状态 | Number |0失败1成功2支付中 | 是
order_id |订单记录号(车辆在停车场停车唯一订单编号,对应入场订单编号) | String | 325101 | 是
trade_no |订单流水号 | String | 201704012000121122232 |是
pay_type |支付类型 ,wallet:余额支付,sweepcode:扫码枪支付,scancode:出场扫码支付 |String | wallet,sweepcode,scancode | 是
out_channel_id |出口通道 |String | A1 | 是
total |支付金额 |Number |0.04 |否
errmsg |方法返回描述 | String |支付失败,请求超时或其他 |是
pay_channel |支付通道 | Number | 0微信 1支付宝 2余额 3银联 |否
pay_time |支付时间 | Number(unix时间戳格式,长整型) | 1490876000 |是
car_number | 车牌 | String |京GH0093 | 是
arrive_money | 到账金额 | Number | 1.25 是
fee |手续费 |Number | 1.25 |是
account_type |到账类型(1-收入 0-支出) |Number| 1 | 是
remark | 说明(接口上传过来的title返回下去) | String | 收到停车费-京G00000 |是
示例:测试地址:http://test.bolink.club/zld/openservice/outpark
{"data":{"park_id":"22370","union_id":"200279","state":1,"order_id":"202108060002","trade_no":"test2021089","pay_type":"wallet","out_channel_id":"2021","total":1,"errmsg":"成功","pay_channel":0,"pay_time":1628220401,"car_number":"临AAA001","arrive_money":20,"fee":1.20,"account_type":1,"remark":"testdly01"},"sign":"68D96E31FCCA9AFC91D105012529035A"}
编码后:ewoJImRhdGEiOiB7CgkJInBhcmtfaWQiOiAiMjIzNzAiLAoJCSJ1bmlvbl9pZCI6ICIyMDAyNzkiLAoJCSJzdGF0ZSI6IDEsCgkJIm9yZGVyX2lkIjogIjIwMjEwODA2MDAwMiIsCgkJInRyYWRlX25vIjogInRlc3QyMDIxMDg5IiwKCQkicGF5X3R5cGUiOiAid2FsbGV0IiwKCQkib3V0X2NoYW5uZWxfaWQiOiAiMjAyMSIsCgkJInRvdGFsIjogMSwKCQkiZXJybXNnIjogIuaIkOWKnyIsCgkJInBheV9jaGFubmVsIjogMCwKCQkicGF5X3RpbWUiOiAxNjI4MjIwNDAxLAoJCSJjYXJfbnVtYmVyIjogIuS4tEFBQTAwMSIsCgkJImFycml2ZV9tb25leSI6IDIwLAoJCSJmZWUiOiAxLjIwLAoJCSJhY2NvdW50X3R5cGUiOiAxLAoJCSJyZW1hcmsiOiAidGVzdGRseTAxIgoJfSwKCSJzaWduIjogIjY4RDk2RTMxRkNDQTlBRkM5MUQxMDUwMTI1MjkwMzVBIgp9
返回:Base64处理过的字符串
|字段名称 | 说明|类型| 示例|是否必传字段|
| --- | --- |--- | --- | --- |
state |状态 |Number | 0失败1成功 |是
message |方法返回描述 | String |state=0时不能为空 | 否(state=0时必传)
示例:
eyJkYXRhIjp7InN0YXRlIjoxLCJtZXNzYWdlIjoi5ZCM5q2lb3V0UGFya+aVsOaNruaIkOWKn++8gSJ9LCJzaWduIjoiNjhEOTZFMzFGQ0NBOUFGQzkxRDEwNTAxMjUyOTAzNUEifQ==
解码后:{"data":{"state":1,"message":"同步outPark数据成功!"},"sign":"68D96E31FCCA9AFC91D105012529035A"}