Gets route plan info
Gets a list of routes with plan metrics.
HTTP Request
GET https://courier.yandex.ru/api/v1/companies/{company_id}/route-plan-info\
?start_date={string}\
&end_date={string}\
&depot_id={integer}\
&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
start_date | string Filter routes by date. Routes with a date greater than or equal to the specified date will be included in the output. Format YYYY-MM-DD. |
end_date | string Filter routes by date. Routes with a date less than or equal to the specified date will be included in the output. Format YYYY-MM-DD. |
depot_id | integer Filter routes by depot ID. Minimum value: |
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: |
start_date | string Filter routes by date. Routes with a date greater than or equal to the specified date will be included in the output. Format YYYY-MM-DD. |
end_date | string Filter routes by date. Routes with a date less than or equal to the specified date will be included in the output. Format YYYY-MM-DD. |
depot_id | integer Filter routes by depot ID. Minimum value: |
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 routes with plan metrics.
[ { "date": string, "id": integer, "number": string, "plan_metrics": { "orders_count": number, "total_duration": { "text": string, "value": number }, "total_transit_distance_m": number } } ]
Copied to clipboard
Representation
Fields
date | string The date of the route in YYYY-MM-DD format. |
id | integer Route ID used in requests to the Track & Trace API. |
number | string Route number. |
plan_metrics | object |
plan_metrics. | number Number of orders in the route. |
plan_metrics. | object |
plan_metrics. | string Localized text. |
plan_metrics. | number Numeric representation of a value. |
plan_metrics. | number Total transit distance, meters. |
date | string The date of the route in YYYY-MM-DD format. |
id | integer Route ID used in requests to the Track & Trace API. |
number | string Route number. |
plan_metrics | object |
plan_metrics. | number Number of orders in the route. |
plan_metrics. | object |
plan_metrics. | string Localized text. |
plan_metrics. | number Numeric representation of a value. |
plan_metrics. | number Total transit distance, meters. |
* Required parameter
Code 401
Authorization error. Make sure that the request header contains the correct OAuth token.
Code 403
You do not have access to this object.
Code 404
Provided depot_id does not exist.
Code 422
Incorrect input. The operation can't be performed.