Gets multiple depots
Returns information about depots from the database.
HTTP Request
GET https://courier.yandex.ru/api/v1/companies/{company_id}/depots\
?number={string}\
&page={integer}
Path Parameters
company_id * | integer Company ID used in requests to the Track & Trace API. |
company_id * | integer Company ID used in requests to the Track & Trace API. |
* Required parameter
Query Parameters
number | string Unique depot number that matches the number in the delivery company's database. |
page | integer Page number where the entity is stored in the database. Each page contains 1000 entities arranged in ascending order. Minimum value: |
number | string Unique depot number that matches the number in the delivery company's database. |
page | integer Page number where the entity is stored in the database. Each page contains 1000 entities arranged in ascending order. Minimum value: |
* Required parameter
Responses
Code 200
The depot list was received.
[ { "address": string, "allow_manual_depot_detection": boolean, "allow_manual_order_detection": boolean, "allow_route_editing": boolean, "description": string, "id": integer, "lat": number, "lon": number, "mark_delivered_radius": number, "mark_route_started_radius": integer, "name": string, "number": string, "order_service_duration_s": integer, "service_duration_s": integer, "time_interval": string, "time_zone": string } ]
Copied to clipboard
Representation
Fields
address | string Depot address in text format. |
allow_manual_depot_detection | boolean Indicates whether manual depot visit detection allowed for depot. |
allow_manual_order_detection | boolean Indicates whether manual depot visit detection allowed for depot. |
allow_route_editing | boolean A flag that indicates that couriers are able to edit their routes. |
description | string Depot description. |
id | integer Depot ID used in requests to the Track & Trace API. |
lat | number Latitude of depot location. |
lon | number Longitude of depot location. The request for new depot must contain both lat and lon parameters. The requests to update the depot can omit both lat and lon parameters, but not one of them. |
mark_delivered_radius | number Radius in meters. If Minimum value: |
mark_route_started_radius | integer The minimal distance between a courier and the depot at which a shift start sms is sent. |
name | string Depot name. |
number | string Depot number. Used for syncing with the delivery company's system. |
order_service_duration_s | integer Additional time spent to dispatch a particular order in the depot, in seconds. Total service duration is calculated by adding |
service_duration_s | integer Time spent dispatching goods in the depot, in seconds. This time is independent from the time required to load orders. Total service duration is calculated by adding |
time_interval | string Depot opening hours, in "T - T" or "T-T" time format, where T represents time in HH, HH:MM, HH:MM:SS or [d.]HH:MM:SS format. |
time_zone | string Time zone of depot 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. By default, the depot time zone is calculated based on its coordinates. |
address | string Depot address in text format. |
allow_manual_depot_detection | boolean Indicates whether manual depot visit detection allowed for depot. |
allow_manual_order_detection | boolean Indicates whether manual depot visit detection allowed for depot. |
allow_route_editing | boolean A flag that indicates that couriers are able to edit their routes. |
description | string Depot description. |
id | integer Depot ID used in requests to the Track & Trace API. |
lat | number Latitude of depot location. |
lon | number Longitude of depot location. The request for new depot must contain both lat and lon parameters. The requests to update the depot can omit both lat and lon parameters, but not one of them. |
mark_delivered_radius | number Radius in meters. If Minimum value: |
mark_route_started_radius | integer The minimal distance between a courier and the depot at which a shift start sms is sent. |
name | string Depot name. |
number | string Depot number. Used for syncing with the delivery company's system. |
order_service_duration_s | integer Additional time spent to dispatch a particular order in the depot, in seconds. Total service duration is calculated by adding |
service_duration_s | integer Time spent dispatching goods in the depot, in seconds. This time is independent from the time required to load orders. Total service duration is calculated by adding |
time_interval | string Depot opening hours, in "T - T" or "T-T" time format, where T represents time in HH, HH:MM, HH:MM:SS or [d.]HH:MM:SS format. |
time_zone | string Time zone of depot 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. By default, the depot time zone is calculated based on its coordinates. |
* 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 422
Incorrect input. The operation can't be performed.
Code 504
Error working with the API. Repeat the request.