Получение списка заказов
Получение списка заказов
Request
POST
https://fleet-api.taxi.yandex.net/v1/parks/orders/list
Headers
Name |
Description |
X-API-Key* |
Type: string API-ключ Example: Min length: |
X-Client-ID* |
Type: string Идентификатор клиента Example: Min length: |
Body
application/json
{
"query": {
"park": {
"id": "ee6f33c4562b4e1f8646d157bd70b2c4",
"order": {
"ids": [
"c8d40acf182b4b32af72f6ad2029031b"
],
"short_ids": [
248
],
"booked_at": {
"from": "2019-08-08T11:58:01+03:00",
"to": "2019-08-08T11:58:01+03:00"
},
"ended_at": {
"from": "2019-08-08T11:58:01+03:00",
"to": "2019-08-08T11:58:01+03:00"
},
"type": {
"ids": [
"4964b852670045b196e526d59915b777"
]
},
"statuses": [
"complete"
],
"payment_methods": [
"card"
],
"providers": [
"platform"
],
"categories": [
[
"econom"
]
],
"price": {
"from": "12345.1434",
"to": "12345.1434"
}
},
"driver_profile": {
"id": "33de650c6a1a40bfa78dd981817da866"
},
"car": {
"id": "5011ade6ba054dfdb7143c8cc9460dbc"
}
}
},
"limit": 100,
"cursor": "string"
}
Name |
Description |
limit* |
Type: integer Ограничение сверху на число заказов в ответе Example: Min value: Max value: |
query* |
Type: OrdersListQuery |
cursor |
Type: string Курсор для получения следующий порции данных, значение должно быть взято из ответа на предыдущий запрос Min length: |
OrdersListQuery
Name |
Description |
park* |
Type: OrdersListQueryPark |
OrdersListQueryPark
Name |
Description |
id* |
Type: string Идентификатор партнёра Example: Min length: Max length: |
order* |
Type: OrdersListQueryParkOrder Обязательно наличие одного из booked_at или ended_at |
car |
Type: OrdersListQueryParkCar |
driver_profile |
OrdersListQueryParkOrder
Обязательно наличие одного из booked_at или ended_at
Name |
Description |
booked_at |
Type: DateTimeInterval |
categories |
Type: string[] Список категорий ТС. Допустимые значения:
Example: Enum: |
ended_at |
Type: DateTimeInterval |
ids |
Type: string[] Идентификатор заказа Example: Min length: Max length: Min items: Max items: |
payment_methods |
Type: PaymentMethod[] Способ оплаты. Допустимые значения:
Example: Enum: Min items: |
price |
Type: PriceInterval |
providers |
Type: Provider[] Example: Enum: Min items: |
short_ids |
Type: integer[] Порядковый номер заказ (с учётом несостоявшихся заказов) Example: Min value: Min items: Max items: |
statuses |
Type: OrderStatus[] Статус заказа. Допустимые значения:
Example: Enum: Min items: |
type |
Type: QueryParkOrderType |
OrdersListQueryParkCar
Name |
Description |
id* |
Type: string Идентификатор автомобиля Example: Min length: Max length: |
OrdersListQueryParkDriverProfile
Name |
Description |
id* |
Type: string Идентификатор водителя Example: Min length: Max length: |
DateTimeInterval
Name |
Description |
from* |
Type: string<date-time> ISO 8601 с временной зоной Example: |
to* |
Type: string<date-time> ISO 8601 с временной зоной Example: |
PaymentMethod
Способ оплаты. Допустимые значения:
cash
- наличные;cashless
- безнал;card
- карта;internal
- внутренний;other
- другое;corp
- корп. счёт;prepaid
- предоплата.
Type |
Description |
Example: Enum: |
PriceInterval
Name |
Description |
from |
Type: string Сумма с фиксированной точностью Example: Max length: |
to |
Type: string Сумма с фиксированной точностью Example: Max length: |
Provider
Type |
Description |
Example: Enum: |
OrderStatus
Статус заказа. Допустимые значения:
none
- без статуса;driving
- в пути;waiting
- ждёт клиента;transporting
- везёт клиента;complete
- выполнен;cancelled
- отменён;calling
- ошибка, технический статус;expired
- ошибка, технический статус;failed
- ошибка, технический статус.
Type |
Description |
Example: Enum: |
QueryParkOrderType
Name |
Description |
ids* |
Type: string[] Идентификатор типа заказа Example: Min length: Min items: Max items: |
Responses
200 OK
Список заказов
Body
application/json
{
"orders": [
{
"id": "c8d40acf182b4b32af72f6ad2029031b",
"short_id": 248,
"status": "complete",
"created_at": "2019-08-08T11:58:01+03:00",
"booked_at": "2019-08-08T11:58:01+03:00",
"provider": "platform",
"category": "econom",
"amenities": [
[
"wifi"
]
],
"address_from": {
"address": "Тверская улица, 8",
"lat": 55.762235,
"lon": 37.609651
},
"route_points": [
{
"address": "Тверская улица, 8",
"lat": 55.762235,
"lon": 37.609651
}
],
"events": [
{
"event_at": "2019-08-08T11:58:01+03:00",
"order_status": "complete"
}
],
"ended_at": "2019-08-08T11:58:01+03:00",
"payment_method": "card",
"driver_profile": {
"id": "33de650c6a1a40bfa78dd981817da866",
"name": "Иванов Пётр Николаевич"
},
"car": {
"id": "5011ade6ba054dfdb7143c8cc9460dbc",
"brand_model": "BMW 5er",
"license": {
"number": "AA01234567"
},
"callsign": "123456789"
},
"type": {
"id": "4964b852670045b196e526d59915b777",
"name": "Яндекс.Безналичный"
},
"price": "12345.1434",
"driver_work_rule": {
"id": "e26a3cf21acfe01198d50030487e046b",
"name": "Аренда"
},
"mileage": "string",
"cancellation_description": "string",
"park_details": {
"tariff": {
"id": "string",
"name": "string"
},
"passenger": {
"name": "string",
"phones": [
"string"
]
},
"company": {
"id": "string",
"name": "string",
"slip": "string",
"comment": "string"
}
}
}
],
"limit": 100,
"cursor": "string"
}
Name |
Description |
limit* |
Type: integer Ограничение сверху на число заказов в ответе Example: Min value: Max value: |
orders* |
Type: Order[] |
cursor |
Type: string Курсор для получения следующий порции данных Example: `` |
Order
Name |
Description |
address_from* |
Type: AddressInfo |
amenities* |
Type: string[] Удобства в ТС. Допустимые значения:
Example: Enum: |
booked_at* |
Type: string<date-time> ISO 8601 с временной зоной Example: |
created_at* |
Type: string<date-time> ISO 8601 с временной зоной Example: |
events* |
Type: Event[] |
id* |
Type: string Идентификатор заказа Example: Min length: Max length: |
provider* |
Type: Provider Example: Enum: |
route_points* |
Type: AddressInfo[] |
short_id* |
Type: integer Порядковый номер заказ (с учётом несостоявшихся заказов) Example: Min value: |
status* |
Type: OrderStatus Статус заказа. Допустимые значения:
Example: Enum: |
cancellation_description |
Type: string |
car |
Type: OrdersListCar |
category |
Type: Category Категория ТС. Допустимые значения:
Example: Enum: |
driver_profile |
Type: object |
driver_work_rule |
Type: object Условие работы водителя |
ended_at |
Type: string<date-time> ISO 8601 с временной зоной Example: |
mileage |
Type: string |
park_details |
Type: ParkDetails |
payment_method |
Type: PaymentMethod Способ оплаты. Допустимые значения:
Example: Enum: |
price |
Type: string Сумма с фиксированной точностью Example: Max length: |
type |
Type: OrderType |
AddressInfo
Name |
Description |
address* |
Type: string Адрес заказа Example: |
lat* |
Type: number Географическая широта Example: |
lon* |
Type: number Географическая долгота Example: |
Event
Name |
Description |
event_at* |
Type: string<date-time> ISO 8601 с временной зоной Example: |
order_status* |
Type: OrderStatus Статус заказа. Допустимые значения:
Example: Enum: |
OrdersListCar
Name |
Description |
brand_model |
Type: string Марка и модель автомобиля Example: |
callsign |
Type: string Позывной Example: |
id |
Type: string Идентификатор автомобиля Example: Min length: Max length: |
license |
Type: License |
Category
Категория ТС. Допустимые значения:
econom
- эконом;comfort
- комфорт;comfort_plus
- комфорт+;business
- бизнес;minivan
- минивен;vip
- VIP;wagon
- универсальный;pool
- pool;start
- старт;standart
- стандарт;child_tariff
- детский;ultimate
- премьер;maybach
- elite;promo
- промо;premium_van
- круиз;premium_suv
- премиум внедорожник;suv
- внедорожник;personal_driver
- персональный водитель;express
- доставка;cargo
- грузовой.
Type |
Description |
Example: Enum: |
ParkDetails
Name |
Description |
company |
Type: Company |
passenger |
Type: Passenger |
tariff |
Type: OrderTariff Тарифы парка |
OrderType
Name |
Description |
id* |
Type: string Идентификатор типа заказа Example: Min length: |
name* |
Type: string Название типа заказа Example: |
License
Name |
Description |
number* |
Type: string Регистрационный номер ТС Example: |
Company
Name |
Description |
comment |
Type: string |
id |
Type: string |
name |
Type: string |
slip |
Type: string |
Passenger
Name |
Description |
name |
Type: string |
phones |
Type: string[] Min length: Min items: Max items: |
OrderTariff
Тарифы парка
Name |
Description |
id* |
Type: string |
name* |
Type: string |
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.