# Vehicle Related
# Add New Vehicles
Feature: Fleet partner adds new vehicles
Method: POST
URL: /fleet/open-api/cars/add
Requested Parameters:
| Parameter | Type | Required or Not | Description |
|---|---|---|---|
| fleet_id | int64 | Yes | Fleet ID |
| car_license_img | string | Yes | URL of front side photo of Vehicle License. To get image URL, please first call “Upload Image Information” API |
| car_license_b_img | string | Yes | URL of back side photo of Vehicle License. To get image URL, please first call “Upload Image Information” API |
| location_country | string | Yes | Country |
| lang | string | Yes | Language |
| uranus_product_id | int32 | No | Product line (default value: 2), Refer to Appendix “Product Lines” for enumeration values |
Request example:
{
"fleet_id": 10000000000000,
"location_country": "RU",
"lang": "ru-RU",
"car_license_img":"/upload/rooster20210901/57bae93fda8e9/00239d7b4d",
"car_license_b_img":"/upload/rooster20210901/a8e95793fdbae/b4d020739d"
}
1
2
3
4
5
6
7
2
3
4
5
6
7
Return example:
Normal condition
{
"errno": 0,
"msg": "success",
"data": {
"response": {
"car_id": 50000000000000
},
"trace_id": "0a6072d45f3cdd6be61db3f9ffdfc9b0"
}
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Abnormal condition
{
"errno": 10002,
"msg": "system error."
}
1
2
3
4
2
3
4
Note: “response” in the return example is json data obtained through decryption and deserialization
# Add Vehicle
Feature: Add vehicle for driver
Method: POST
URL: /fleet/open-api/cars/bind
Requested Parameters:
| Parameter | Type | Required or Not | Description |
|---|---|---|---|
| fleet_id | int64 | Yes | Fleet ID |
| driver_id | int64 | Yes | Driver ID |
| car_id | int64 | Yes | Vehicle ID |
| location_country | string | Yes | Country |
| lang | string | Yes | Language |
| uranus_product_id | int32 | No | Product line (default value: 2), Refer to Appendix “Product Lines” for enumeration values |
Return example:
Normal condition
{
"errno": 0,
"msg": "success",
"data": {
"response": {
"bind_status": 1
},
"trace_id": "0a6072d45f3cdd6be61db3f9ffdfc9b0"
}
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Abnormal condition
{
"errno": 10001,
"msg": "parameter error."
}
1
2
3
4
2
3
4
Note: “response” in the return example is json data obtained through decryption and deserialization