Gets route info
Gets a list of route info and its orders.
HTTP Request
GET https://courier.yandex.ru/api/v1/companies/{company_id}/route-info\
?date={string}\
&depot_id={integer}\
&route_id={integer}\
&with_prolongation={boolean}\
&page={integer}\
&per_page={integer}
Path Parameters
company_id * | integer The ID of the company that is used in requests to the Track & Trace API. |
company_id * | integer The ID of the company that is used in requests to the Track & Trace API. |
* Required parameter
Query Parameters
date | string Date when route is active (started and not finished) in YYYY-MM-DD format. |
depot_id | integer The ID of the depot that is used in requests to the Track & Trace API. Minimum value: |
route_id | integer The ID of the route that is used in requests to the Track & Trace API. Minimum value: |
with_prolongation | boolean
|
page | integer Page number where the entity is stored in the database. Each page contains per_page entities arranged in ascending route. Minimum value: |
per_page | integer Number of routes per page. Minimum value: |
date | string Date when route is active (started and not finished) in YYYY-MM-DD format. |
depot_id | integer The ID of the depot that is used in requests to the Track & Trace API. Minimum value: |
route_id | integer The ID of the route that is used in requests to the Track & Trace API. Minimum value: |
with_prolongation | boolean
|
page | integer Page number where the entity is stored in the database. Each page contains per_page entities arranged in ascending route. Minimum value: |
per_page | integer Number of routes per page. Minimum value: |
* Required parameter
Responses
Code 200
Returns a list of route info and its orders.
[ { "meta": { "company_id": string, "courier": { "deleted": boolean, "id": string, "name": string, "number": string }, "courier_position": { "node": { "next": integer, "prev": integer } }, "date": string, "id": string, "last_update_info": { "courier_position": { "lat": number, "lon": number }, "update_time": { "text": string, "value": number } }, "number": string, "planning_area": { "id": string, "time_zone": string, "type": string }, "routing_mode": string, "total_transit_distance_m": number }, "nodes": [ { "type": string, "types": [ string ] } ] } ]
Copied to clipboard
Representation
Fields
meta | object |
meta. | string The ID of the company that is used in requests to the Track & Trace API. |
meta. | object |
meta. | boolean Flag shows that courier is deleted. |
meta. | string Courier identifier. |
meta. | string Courier name. |
meta. | string Courier number. |
meta. | object |
meta. | object Courier position in prev and next node index. |
meta. | integer Index of route node courier must visit next. |
meta. | integer Index of route node last visited by courier. |
meta. | string The route's date in YYYY-MM-DD format. |
meta. | string Route identifier. |
meta. | object |
meta. | object |
meta. | number Location latitude. |
meta. | number Location longitude. |
meta. | object |
meta. | string Localized text. |
meta. | number Numeric representation of a value. |
meta. | string Route number. |
meta. | object |
meta. | string Planning area identifier. |
meta. | string Time zone of planning area. |
meta. | string Planning area type. |
meta. | string Transportation method. Possible values:
|
meta. | number Total transit distance, meters. |
nodes[] | array |
nodes[]. | string Node type. Possible values:
|
nodes[]. | array Node type and subtypes in a list of strings. Most accurate last. Possible types:
|
nodes[]. | object Description of the route node. Content depends on a node type. |
nodes[]. | number The distance in meters that the courier has to travel to the point of order. Minimum value: |
nodes[]. | object |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Depot identifier. |
nodes[]. | string Depot number. |
nodes[]. | object |
nodes[]. | number Location latitude. |
nodes[]. | number Location longitude. |
nodes[]. | array |
nodes[]. | string The action performed on the order:
|
nodes[]. | string Order ID. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | number The distance in meters that the courier has to travel to the point of order. Minimum value: |
nodes[]. | object |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Garage identifier. |
nodes[]. | string Garage number. |
nodes[]. | object |
nodes[]. | number Location latitude. |
nodes[]. | number Location longitude. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | number The distance in meters that the courier has to travel to the point of order. Minimum value: |
nodes[]. | object |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Order identifier. |
nodes[]. | string Order number. |
nodes[]. | object |
nodes[]. | number Location latitude. |
nodes[]. | number Location longitude. |
nodes[]. | array |
nodes[]. | string The action performed on the order:
|
nodes[]. | string Order ID. |
nodes[]. | string Order status. |
nodes[]. | array Array of order's time windows. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Time zone of order in tz database format, for example Europe/Moscow, Europe/Berlin, Asia/Irkutsk, Asia/Istanbul. Visit https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for more examples. It's calculated based on orders coordinates. |
meta | object |
meta. | string The ID of the company that is used in requests to the Track & Trace API. |
meta. | object |
meta. | boolean Flag shows that courier is deleted. |
meta. | string Courier identifier. |
meta. | string Courier name. |
meta. | string Courier number. |
meta. | object |
meta. | object Courier position in prev and next node index. |
meta. | integer Index of route node courier must visit next. |
meta. | integer Index of route node last visited by courier. |
meta. | string The route's date in YYYY-MM-DD format. |
meta. | string Route identifier. |
meta. | object |
meta. | object |
meta. | number Location latitude. |
meta. | number Location longitude. |
meta. | object |
meta. | string Localized text. |
meta. | number Numeric representation of a value. |
meta. | string Route number. |
meta. | object |
meta. | string Planning area identifier. |
meta. | string Time zone of planning area. |
meta. | string Planning area type. |
meta. | string Transportation method. Possible values:
|
meta. | number Total transit distance, meters. |
nodes[] | array |
nodes[]. | string Node type. Possible values:
|
nodes[]. | array Node type and subtypes in a list of strings. Most accurate last. Possible types:
|
nodes[]. | object Description of the route node. Content depends on a node type. |
nodes[]. | number The distance in meters that the courier has to travel to the point of order. Minimum value: |
nodes[]. | object |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Depot identifier. |
nodes[]. | string Depot number. |
nodes[]. | object |
nodes[]. | number Location latitude. |
nodes[]. | number Location longitude. |
nodes[]. | array |
nodes[]. | string The action performed on the order:
|
nodes[]. | string Order ID. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | number The distance in meters that the courier has to travel to the point of order. Minimum value: |
nodes[]. | object |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Garage identifier. |
nodes[]. | string Garage number. |
nodes[]. | object |
nodes[]. | number Location latitude. |
nodes[]. | number Location longitude. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | number The distance in meters that the courier has to travel to the point of order. Minimum value: |
nodes[]. | object |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Order identifier. |
nodes[]. | string Order number. |
nodes[]. | object |
nodes[]. | number Location latitude. |
nodes[]. | number Location longitude. |
nodes[]. | array |
nodes[]. | string The action performed on the order:
|
nodes[]. | string Order ID. |
nodes[]. | string Order status. |
nodes[]. | array Array of order's time windows. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | object |
nodes[]. | string Localized text. |
nodes[]. | number Numeric representation of a value. |
nodes[]. | string Time zone of order in tz database format, for example Europe/Moscow, Europe/Berlin, Asia/Irkutsk, Asia/Istanbul. Visit https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for more examples. It's calculated based on orders coordinates. |
* Required parameter
Code 401
Authorization failed. Send the correct OAuth token in the authorization header.
Code 403
You do not have access to this object.
Code 404
Provided route_id does not exist.
Code 422
Incorrect input.