Создание автомобиля
Создание автомобиля
Request
POST
https://fleet-api.taxi.yandex.net/v2/parks/vehicles/car
Headers
Name |
Description |
X-API-Key* |
Type: string API-ключ Example: Min length: |
X-Client-ID* |
Type: string Идентификатор клиента Example: Min length: |
X-Idempotency-Token* |
Type: string Токен идемпотентности запроса.
Должен состоять только из печатных ASCII символов Example: Min length: Max length: |
X-Park-ID* |
Type: string Идентификатор партнера 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": false,
"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 |
vehicle_licenses* |
Type: VehicleLicenses |
vehicle_specifications* |
Type: VehicleSpecifications |
cargo |
Type: Cargo |
child_safety |
Type: ChildSafety |
ParkProfile
Name |
Description |
callsign* |
Type: string Позывной Example: |
fuel_type* |
Type: FuelType Тип топлива Enum: |
status* |
Type: string Статус ТС. Текущие статусы:
Example: |
amenities |
Type: string[] Удобства в ТС. Допустимые значения:
Example: Enum: |
categories |
Type: string[] Список категорий ТС. Допустимые значения:
Example: Enum: |
comment |
Type: string Описание ТС Example: |
is_park_property |
Type: boolean Парковая машина |
leasing_conditions |
Type: LeasingConditions Условия лизинга |
license_owner_id |
Type: string Идентификатор собственника лицензии Example: |
ownership_type |
Type: OwnershipType Тип собственности Example: Enum: |
tariffs |
Type: string[] Список тарифов парка Example: |
VehicleLicenses
Name |
Description |
licence_plate_number* |
Type: string Государственный регистрационный номер Example: |
licence_number |
Type: string Номер лицензии на такси Example: |
registration_certificate |
Type: string Номер свидетельства о регистрации ТС (Обязательное поле для России) Example: |
VehicleSpecifications
Name |
Description |
brand* |
Type: string Марка ТС Example: |
color* |
Type: ColorEnum Цвет ТС Example: Enum: |
model* |
Type: string Модель ТС Example: |
transmission* |
Type: Transmission Тип коробки передач Example: Enum: |
year* |
Type: integer Год выпуска ТС Example: |
body_number |
Type: string Номер кузова из СТС ТС Example: |
mileage |
Type: integer Пробег Example: Min value: |
vin |
Type: string VIN (Обязательное поле для России) Example: |
Cargo
Name |
Description |
cargo_hold_dimensions |
Type: Dimensions Размеры грузового отсека |
cargo_loaders |
Type: integer Число грузчиков. Допустимое количество грузчиков от 0 до 2 Example: Min value: |
carrying_capacity |
Type: integer Грузоподъемность (в кг). Допустимое значение грузоподъемности от 300 до 6000 кг Example: Min value: |
ChildSafety
Name |
Description |
booster_count* |
Type: integer Количество бустеров Example: Min value: Max value: |
LeasingConditions
Условия лизинга
Name |
Description |
company* |
Type: string Лизинговая компания Example: |
interest_rate* |
Type: string Процентная ставка лизинга Example: |
monthly_payment* |
Type: integer Ежемесячный платеж Example: Min value: |
start_date* |
Type: string Дата начала лизинга Example: |
term* |
Type: integer Срок лизинга (Количество месяцев) Example: Min value: |
ColorEnum
Цвет ТС
Type |
Description |
Example: Enum: |
Transmission
Тип коробки передач
Type |
Description |
Example: Enum: |
Dimensions
Размеры грузового отсека
Name |
Description |
height* |
Type: integer Высота (в см). Допустимое значение высоты от 90 до 250 см Example: Min value: |
length* |
Type: integer Длина (в см). Допустимое значение длины от 170 до 601 см Example: Min value: |
width* |
Type: integer Ширина (в см). Допустимое значение ширины от 96 до 250 см Example: Min value: |
Responses
200 OK
Создание автомобиля
Body
application/json
{
"vehicle_id": "2111ade6gk054dfdb9iu8c8cc9460mks"
}
Name |
Description |
vehicle_id* |
Type: string Идентификатор ТС Example: |
400 Bad Request
Некорректные параметры запроса
Body
application/json
{
"code": "string",
"message": "Текстовое описание ошибки"
}
Name |
Description |
message* |
Type: string Человекочитаемое сообщение об ошибке Example: |
code |
Type: string Машиночитаемый код ошибки |
401 Unauthorized
Отсутствуют параметры авторизации запроса
Body
application/json
{
"code": "string",
"message": "Текстовое описание ошибки"
}
Name |
Description |
message* |
Type: string Человекочитаемое сообщение об ошибке Example: |
code |
Type: string Машиночитаемый код ошибки |
403 Forbidden
Недостаточно прав для выполнения запроса
Body
application/json
{
"code": "string",
"message": "Текстовое описание ошибки"
}
Name |
Description |
message* |
Type: string Человекочитаемое сообщение об ошибке Example: |
code |
Type: string Машиночитаемый код ошибки |
429 Too Many Requests
Превышено допустимое число запросов
Body
application/json
{
"code": "string",
"message": "Текстовое описание ошибки"
}
Name |
Description |
message* |
Type: string Человекочитаемое сообщение об ошибке Example: |
code |
Type: string Машиночитаемый код ошибки |
500 Internal Server Error
Внутренняя ошибка сервера
Body
application/json
{
"code": "string",
"message": "Текстовое описание ошибки"
}
Name |
Description |
message* |
Type: string Человекочитаемое сообщение об ошибке Example: |
code |
Type: string Машиночитаемый код ошибки |
No longer supported, please use an alternative and newer version.