- Request
- Query parameters
- Headers
- Body
- Model
- Brand
- ColorEnum
- Year
- Transmission
- VIN
- BodyNumber
- Mileage
- VehicleSpecifications
- LicencePlateNumber
- RegistrationCertificate
- LicenceNumber
- VehicleLicenses
- Callsign
- Status
- LicenseOwnerId
- IsParkProperty
- OwnershipType
- LeasingCompany
- LeasingStartDate
- LeasingTerm
- LeasingMonthlyPayment
- LeasingInterestRate
- LeasingConditions
- Amenities
- Categories
- Tariff
- Tariffs
- Comment
- FuelType
- ParkProfile
- BoosterCount
- ChildSafety
- CargoLoaders
- CarryingCapacity
- Length
- Width
- Height
- Dimensions
- Cargo
- Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
- 429 Too Many Requests
- 500 Internal Server Error
Car update
Car update. To simplify request body creation use API: GET /v2/parks/vehicles/car
Request
PUT
https://fleet-api.taxi.yandex.net/v2/parks/vehicles/car
Query parameters
|
Name |
Description |
|
vehicle_id |
Type: string Vehicle ID Example: |
Headers
|
Name |
Description |
|
X-API-Key |
Type: string API-key Min length: Example: |
|
X-Client-ID |
Type: string Client ID Min length: Example: |
|
X-Park-ID |
Type: string Partner ID Example: |
Body
application/json
{
"vehicle_specifications": {
"model": "E-klasse",
"brand": "Mercedes-Benz",
"color": "Черный",
"year": 2019,
"transmission": "automatic",
"vin": "12345678909876543",
"body_number": "123456789",
"mileage": 5000
},
"vehicle_licenses": {
"licence_plate_number": "Т8654Т99",
"registration_certificate": "123456789",
"licence_number": "123456789"
},
"park_profile": {
"callsign": "123456789",
"status": "working",
"license_owner_id": "6k054dfdb9i5345ifsdfvpfu8c8cc946",
"is_park_property": true,
"ownership_type": "park",
"leasing_conditions": {
"company": "leasing company",
"start_date": "2022-01-01",
"term": 30,
"monthly_payment": 20000,
"interest_rate": "11.7"
},
"amenities": [
"wifi"
],
"categories": [
"econom"
],
"tariffs": [
"Комфорт"
],
"comment": "good car",
"fuel_type": "petrol"
},
"child_safety": {
"booster_count": 2
},
"cargo": {
"cargo_loaders": 1,
"carrying_capacity": 500,
"cargo_hold_dimensions": {
"length": 200,
"width": 200,
"height": 150
}
}
}
|
Name |
Description |
|
park_profile |
Type: ParkProfile Example
|
|
vehicle_licenses |
Type: VehicleLicenses Example
|
|
vehicle_specifications |
Type: VehicleSpecifications Example
|
|
cargo |
Type: Cargo Example
|
|
child_safety |
Type: ChildSafety Example
|
Model
Vehicle model
Type: string
Example: E-klasse
Brand
Vehicle make
Type: string
Example: Mercedes-Benz
ColorEnum
Vehicle color. Possible values:
Белый— White;Желтый— Yellow;Бежевый— Beige;Черный— Black;Голубой— Light blue;Серый— Gray;Красный— Red;Оранжевый— Orange;Синий— Dark blue;Зеленый— Green;Коричневый— Brown;Фиолетовый— Purple;Розовый— Pink.
Type: string
Enum: Белый, Желтый, Бежевый, Черный, Голубой, Серый, Красный, Оранжевый, Синий, Зеленый, Коричневый, Фиолетовый, Розовый
Year
Year of vehicle manufacture
Type: integer
Transmission
Transmission type
Type: string
Enum: mechanical, automatic, robotic, variator
VIN
VIN (Required field for Russia)
Type: string
Example: 12345678909876543
BodyNumber
Vehicle body number from vehicle registration certificate
Type: string
Example: 123456789
Mileage
Mileage
Type: integer
Min value: 0
VehicleSpecifications
|
Name |
Description |
|
brand |
Type: Brand Vehicle make Example: |
|
color |
Type: ColorEnum Vehicle color. Possible values:
Enum: |
|
model |
Type: Model Vehicle model Example: |
|
transmission |
Type: Transmission Transmission type Enum: |
|
year |
Type: Year Year of vehicle manufacture Example: |
|
body_number |
Type: BodyNumber Vehicle body number from vehicle registration certificate Example: |
|
mileage |
Type: Mileage Mileage Min value: Example: |
|
vin |
Type: VIN VIN (Required field for Russia) Example: |
Example
{
"model": "E-klasse",
"brand": "Mercedes-Benz",
"color": "Черный",
"year": 2019,
"transmission": "automatic",
"vin": "12345678909876543",
"body_number": "123456789",
"mileage": 5000
}
LicencePlateNumber
License plate number
Type: string
Example: Т8654Т99
RegistrationCertificate
Vehicle registration certificate (Required field for Russia)
Type: string
Example: 123456789
LicenceNumber
Taxi license number
Type: string
Example: 123456789
VehicleLicenses
|
Name |
Description |
|
licence_plate_number |
Type: LicencePlateNumber License plate number Example: |
|
licence_number |
Type: LicenceNumber Taxi license number Example: |
|
registration_certificate |
Type: RegistrationCertificate Vehicle registration certificate (Required field for Russia) Example: |
Example
{
"licence_plate_number": "Т8654Т99",
"registration_certificate": "123456789",
"licence_number": "123456789"
}
Callsign
Vehicle code name (short name)
Type: string
Example: 123456789
Status
Vehicle status. Currently possible values:
unknown— status is unknown;working— is used at the moment to complete trips;not_working— is not used at the moment to complete trips;repairing— is undergoing technical maintenance or repair works;no_driver- no driver assigned to a vehicle;pending- vehicle details processing is in progress.
Type: string
Example: working
LicenseOwnerId
ID of the license owner
Type: string
Example: 6k054dfdb9i5345ifsdfvpfu8c8cc946
IsParkProperty
Rental vehicle
Type: boolean
OwnershipType
Ownership type
Type: string
Enum: park, leasing
LeasingCompany
Leasing company
Type: string
Example: leasing company
LeasingStartDate
Leasing start date
Type: string
Example: 2022-01-01
LeasingTerm
Lease term (Number of months)
Type: integer
Min value: 0
LeasingMonthlyPayment
Monthly payment
Type: integer
Min value: 0
LeasingInterestRate
Lease interest rate
Type: string
Example: 11.7
LeasingConditions
Leasing conditions
|
Name |
Description |
|
company |
Type: LeasingCompany Leasing company Example: |
|
interest_rate |
Type: LeasingInterestRate Lease interest rate Example: |
|
monthly_payment |
Type: LeasingMonthlyPayment Monthly payment Min value: Example: |
|
start_date |
Type: LeasingStartDate Leasing start date Example: |
|
term |
Type: LeasingTerm Lease term (Number of months) Min value: Example: |
Example
{
"company": "leasing company",
"start_date": "2022-01-01",
"term": 30,
"monthly_payment": 20000,
"interest_rate": "11.7"
}
Amenities
Vehilce amenity. Possible values:
conditionerno_smokingchild_chairanimal_transportuniversalwificheckcardyamoneynewspapercouponcreditcarddont_callsmokingdeliveryvip_eventwoman_driverpost_terminalbicycleskiingpassenger_pluscargo_cleandoor_to_doorstickerlightbox
Type: string[]
Example
[
"wifi"
]
Categories
List of vehicle categories. Possible values:
econom— Economy class;comfort— Comfort;comfort_plus— Comfort+;business— business class vehicle;minivan— minivan;vip— A VIP class vehicle;wagon— multi-purpose;pool— pool class vehicle;start— Start class vehicle;standart— Standart class vehicle;ultimate— Premier;maybach— elite class vehicle;promo— promotion;premium_van— cruise van;premium_suv— premium SUV;suv— SUV;personal_driver— personal driver class vehicle;express— delivery class vehicle;cargo— a cargo vehicle.
Type: string[]
Example
[
"econom"
]
Tariff
Park tariff
Type: string
Example: example
Comment
Vehicle description
Type: string
Example: good car
FuelType
Fuel type
Type: string
Enum: petrol, methane, propane, electricity
ParkProfile
|
Name |
Description |
|
callsign |
Type: Callsign Vehicle code name (short name) Example: |
|
fuel_type |
Type: FuelType Fuel type Enum: |
|
status |
Type: Status Vehicle status. Currently possible values:
Example: |
|
amenities |
Type: Amenities Vehilce amenity. Possible values:
Example
|
|
categories |
Type: Categories List of vehicle categories. Possible values:
Example
|
|
comment |
Type: Comment Vehicle description Example: |
|
is_park_property |
Type: IsParkProperty Rental vehicle Example: |
|
leasing_conditions |
Type: LeasingConditions Leasing conditions Example
|
|
license_owner_id |
Type: LicenseOwnerId ID of the license owner Example: |
|
ownership_type |
Type: OwnershipType Ownership type Enum: |
|
tariffs |
Type: Tariffs List of park tariffs Example
|
Example
{
"callsign": "123456789",
"status": "working",
"license_owner_id": "6k054dfdb9i5345ifsdfvpfu8c8cc946",
"is_park_property": true,
"ownership_type": "park",
"leasing_conditions": {
"company": "leasing company",
"start_date": "2022-01-01",
"term": 30,
"monthly_payment": 20000,
"interest_rate": "11.7"
},
"amenities": [
"wifi"
],
"categories": [
"econom"
],
"tariffs": [
"Комфорт"
],
"comment": "good car",
"fuel_type": "petrol"
}
BoosterCount
Number of boosters
Type: integer
Min value: 0
Max value: 3
ChildSafety
|
Name |
Description |
|
booster_count |
Type: BoosterCount Number of boosters Min value: Max value: Example: |
Example
{
"booster_count": 2
}
CargoLoaders
Number of loaders. The permissible number of loaders are from 0 to 2
Type: integer
Min value: 0
CarryingCapacity
Load capacity (in kg). The permissible load capacity is from 300 to 6000 kg
Type: integer
Min value: 0
Length
Length (in cm). The permissible length value is from 170 to 601 cm
Type: integer
Min value: 0
Width
Width (in cm). The permissible width value is from 96 to 250 cm
Type: integer
Min value: 0
Height
Height (in cm). The permissible height value is from 90 to 250 cm
Type: integer
Min value: 0
Dimensions
Cargo compartment dimensions
|
Name |
Description |
|
height |
Type: Height Height (in cm). The permissible height value is from 90 to 250 cm Min value: Example: |
|
length |
Type: Length Length (in cm). The permissible length value is from 170 to 601 cm Min value: Example: |
|
width |
Type: Width Width (in cm). The permissible width value is from 96 to 250 cm Min value: Example: |
Example
{
"length": 200,
"width": 200,
"height": 150
}
Cargo
|
Name |
Description |
|
cargo_hold_dimensions |
Type: Dimensions Cargo compartment dimensions Example
|
|
cargo_loaders |
Type: CargoLoaders Number of loaders. The permissible number of loaders are from 0 to 2 Min value: Example: |
|
carrying_capacity |
Type: CarryingCapacity Load capacity (in kg). The permissible load capacity is from 300 to 6000 kg Min value: Example: |
Example
{
"cargo_loaders": 1,
"carrying_capacity": 500,
"cargo_hold_dimensions": {
"length": 200,
"width": 200,
"height": 150
}
}
Responses
200 OK
OK
400 Bad Request
Invalid request parameters Error examples:
-
cannot_edit_required_fields_when_dkk_passed - Forbidden to change the following fields the car after verification:
-
vehicle_specifications.brand
-
vehicle_specifications.model
-
vehicle_specifications.color
-
vehicle_specifications.year
-
vehicle_licenses.licence_plate_number
-
vehicle_licenses.registration_certificate
-
vehicle_specifications.body_number
-
vehicle_specifications.vin
-
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
404 Not Found
Requested resource was not found
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "example",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code Example: |