Getting list of orders
Getting list of orders
Request
POST
https://fleet-api.taxi.yandex.net/v1/parks/orders/list
Headers
|
Name |
Description |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Client-ID* |
Type: string Client ID 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 Upper limit of the number of orders per response Example: Min value: Max value: |
|
query* |
Type: OrdersListQuery |
|
cursor |
Type: string Cursor for obtaining the next data chunk, the value must be taken from the response to the previous request Min length: |
OrdersListQuery
|
Name |
Description |
|
park* |
Type: OrdersListQueryPark |
OrdersListQueryPark
|
Name |
Description |
|
id* |
Type: string Partner ID Example: Min length: Max length: |
|
order* |
Type: OrdersListQueryParkOrder Either booked_at or ended_at is required |
|
car |
Type: OrdersListQueryParkCar |
|
driver_profile |
OrdersListQueryParkOrder
Either booked_at or ended_at is required
|
Name |
Description |
|
booked_at |
Type: DateTimeInterval |
|
categories |
Type: string[] List of vehicle categories. Possible values:
Example:
Enum: |
|
ended_at |
Type: DateTimeInterval |
|
ids |
Type: string[] Order ID Example: Min length: Max length: Min items: Max items: |
|
payment_methods |
Type: PaymentMethod[] Payment method. Possible values:
Example: Enum: Min items: |
|
price |
Type: PriceInterval |
|
providers |
Type: Provider[] Example: Enum: Min items: |
|
short_ids |
Type: integer[] Index number of the order (with canceled orders taken into account) Example: Min value: Min items: Max items: |
|
statuses |
Type: OrderStatus[] Order status. Possible values:
Example: Enum: Min items: |
|
type |
Type: QueryParkOrderType |
OrdersListQueryParkCar
|
Name |
Description |
|
id* |
Type: string Vehicle ID Example: Min length: Max length: |
OrdersListQueryParkDriverProfile
|
Name |
Description |
|
id* |
Type: string Driver ID Example: Min length: Max length: |
DateTimeInterval
|
Name |
Description |
|
from* |
Type: string<date-time> ISO 8601 with time zone Example: |
|
to* |
Type: string<date-time> ISO 8601 with time zone Example: |
PaymentMethod
Payment method. Possible values:
cash— cash;cashless— non-cash;card— card;internal— internal;other— other;corp— corporate account;prepaid— advance payment.
|
Type |
Description |
|
Example: Enum: |
PriceInterval
|
Name |
Description |
|
from |
Type: string Fixed-point sum Example: Max length: |
|
to |
Type: string Fixed-point sum Example: Max length: |
Provider
|
Type |
Description |
|
Example: Enum: |
OrderStatus
Order status. Possible values:
none— no status;driving— en route;waiting— is waiting for the client;transporting— is on the ride now;complete— order completed;cancelled— cancelled;calling— status for a technical error;expired— status for a technical error;failed— status for a technical error;
|
Type |
Description |
|
Example: Enum: |
QueryParkOrderType
|
Name |
Description |
|
ids* |
Type: string[] Order type ID Example: Min length: Min items: Max items: |
Responses
200 OK
List of orders
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 Liberty Street",
"lat": 55.762235,
"lon": 37.609651
},
"route_points": [
{
"address": "8 Liberty Street",
"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": "Smith, John Richard"
},
"car": {
"id": "5011ade6ba054dfdb7143c8cc9460dbc",
"brand_model": "BMW 5er",
"license": {
"number": "AA01234567"
},
"callsign": "123456789"
},
"type": {
"id": "4964b852670045b196e526d59915b777",
"name": "Yandex.Cashless"
},
"price": "12345.1434",
"driver_work_rule": {
"id": "e26a3cf21acfe01198d50030487e046b",
"name": "Rental"
},
"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 Upper limit of the number of orders per response Example: Min value: Max value: |
|
orders* |
Type: Order[] |
|
cursor |
Type: string Cursor for obtaining the next data chunk Example: `` |
Order
|
Name |
Description |
||||
|
address_from* |
Type: AddressInfo |
||||
|
amenities* |
Type: string[] Vehilce amenity. Possible values:
Example:
Enum: |
||||
|
booked_at* |
Type: string<date-time> ISO 8601 with time zone Example: |
||||
|
created_at* |
Type: string<date-time> ISO 8601 with time zone Example: |
||||
|
events* |
Type: Event[] |
||||
|
id* |
Type: string Order ID Example: Min length: Max length: |
||||
|
provider* |
Type: Provider Example: Enum: |
||||
|
route_points* |
Type: AddressInfo[] |
||||
|
short_id* |
Type: integer Index number of the order (with canceled orders taken into account) Example: Min value: |
||||
|
status* |
Type: OrderStatus Order status. Possible values:
Example: Enum: |
||||
|
cancellation_description |
Type: string |
||||
|
car |
Type: OrdersListCar |
||||
|
category |
Type: Category Vehicle category. Possible values:
Example: Enum: |
||||
|
driver_profile |
Type: object
|
||||
|
driver_work_rule |
Type: object
Driver's working condition |
||||
|
ended_at |
Type: string<date-time> ISO 8601 with time zone Example: |
||||
|
mileage |
Type: string |
||||
|
park_details |
Type: ParkDetails |
||||
|
payment_method |
Type: PaymentMethod Payment method. Possible values:
Example: Enum: |
||||
|
price |
Type: string Fixed-point sum Example: Max length: |
||||
|
type |
Type: OrderType |
AddressInfo
|
Name |
Description |
|
address* |
Type: string Order address Example: |
|
lat* |
Type: number Geographic latitude Example: |
|
lon* |
Type: number Geographic longitude Example: |
Event
|
Name |
Description |
|
event_at* |
Type: string<date-time> ISO 8601 with time zone Example: |
|
order_status* |
Type: OrderStatus Order status. Possible values:
Example: Enum: |
OrdersListCar
|
Name |
Description |
|
brand_model |
Type: string Vehicle make and model Example: |
|
callsign |
Type: string Vehicle code name (short name) Example: |
|
id |
Type: string Vehicle ID Example: Min length: Max length: |
|
license |
Type: License |
Category
Vehicle category. 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;child_tariff— Kids service class;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 |
Description |
|
Example: Enum: |
ParkDetails
|
Name |
Description |
|
company |
Type: Company |
|
passenger |
Type: Passenger |
|
tariff |
Type: OrderTariff Taxi company's service classes |
OrderType
|
Name |
Description |
|
id* |
Type: string Order type ID Example: Min length: |
|
name* |
Type: string Order type name Example: |
License
|
Name |
Description |
|
number* |
Type: string Vehicle registration number 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
Taxi company's service classes
|
Name |
Description |
|
id* |
Type: string |
|
name* |
Type: string |
400 Bad Request
Invalid request parameters
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
No longer supported, please use an alternative and newer version.