Get versioned plan-fact for routes
Returns all plan-fact updates occurring after the given previous version for the routes of the company.
HTTP Request
GET https://courier.yandex.ru/api/v1/analytics/companies/{company_id}/plan-fact/versioned/routes\
?prev_version={string}\
&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
prev_version * | string Version returned by the previous call to this method. For the initial call, use the value |
page | integer Page number. Each page contains Minimum value: |
per_page | integer Count of routes per page. Minimum value: |
prev_version * | string Version returned by the previous call to this method. For the initial call, use the value |
page | integer Page number. Each page contains Minimum value: |
per_page | integer Count of routes per page. Minimum value: |
* Required parameter
Responses
Code 200
Success.
{ "data": [ { "courier": { "id": integer, "name": string, "number": string, "phone": string }, "date": string, "depot": { "address": string, "id": integer, "name": string, "number": string, "timezone": string }, "fact": { "courier_violated_route": boolean, "delivered_orders_count": integer, "has_positions": boolean, "nodes_count": integer, "orders_count": integer, "orders_with_status_comments_count": integer, "plan_violated": boolean, "processed_orders_count": integer, "total_depot_idle_count": integer, "total_depot_idle_duration_s": integer, "total_failed_time_window_count": integer, "total_no_connection_count": integer, "total_no_connection_duration_s": integer, "total_order_idle_count": integer, "total_order_idle_duration_s": integer, "total_service_duration_depots_s": integer, "total_service_duration_orders_s": integer, "total_transit_distance_m": number, "total_transit_duration_s": integer, "total_transit_idle_count": integer, "total_transit_idle_duration_s": integer }, "id": integer, "imei": integer, "number": string, "plan": { "nodes_count": integer, "orders_count": integer, "total_duration_s": integer, "total_failed_time_window_count": integer, "total_service_duration_s": integer, "total_transit_distance_m": number, "total_transit_duration_s": integer }, "version_status": string } ], "version": string }
Copied to clipboard
Representation
Fields
data[] * | array |
data[]. | object |
data[]. | integer |
data[]. | string |
data[]. | string |
data[]. | string |
data[]. | string |
data[]. | object |
data[]. | string |
data[]. | integer |
data[]. | string |
data[]. | string |
data[]. | string |
data[]. | object |
data[]. | boolean |
data[]. | integer |
data[]. | boolean |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | boolean |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | number |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | string |
data[]. | object |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | number |
data[]. | integer |
data[]. | string Change type in version. Allowed values
|
version * | string |
data[] * | array |
data[]. | object |
data[]. | integer |
data[]. | string |
data[]. | string |
data[]. | string |
data[]. | string |
data[]. | object |
data[]. | string |
data[]. | integer |
data[]. | string |
data[]. | string |
data[]. | string |
data[]. | object |
data[]. | boolean |
data[]. | integer |
data[]. | boolean |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | boolean |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | number |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | string |
data[]. | object |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | integer |
data[]. | number |
data[]. | integer |
data[]. | string Change type in version. Allowed values
|
version * | string |
* Required parameter
Code 400
Invalid parameters were passed.
Code 403
You do not have access to this object.
Code 422
Incorrect input.
Code 500
Server error during request processing.