Delivery zones
Method for retrieving delivery zones (with coordinates).
This method is executed at a scheduled time, usually once
per day. Supports creation of zones with exclusions (holes).
Request
GET
/place-info/v1/zones
Query parameters
|
Name |
Description |
|
origin_id* |
Type: string Identifier of the store in the Partner’s system. |
Headers
|
Name |
Description |
|
Authorization* |
Type: string Token received in response to the |
Responses
200 OK
Zones retrieved successfully.
Body
application/json
{
"zones": [
{
"coordinates": [
[
{
"lt": 56.473673,
"lg": 35.918658
}
]
],
"meta": {
"zone_id": "123",
"is_active": false,
"intervals": [
{
"weekday": "tuesday",
"from": "08:00",
"to": "20:00"
}
],
"average_delivery_time": 20,
"thresholds": [
{
"order_cost": {
"currency": "RUB",
"value": "350"
},
"delivery_cost": {
"currency": "RUB",
"value": "350"
}
}
]
}
}
]
}
|
Name |
Description |
|
zones* |
Type: ZoneV1[] List of the store’s delivery zones. |
ZoneV1
Delivery zone.
|
Name |
Description |
|
coordinates* |
Type: PointV1[][] Polygon coordinates. Min items: |
|
meta* |
Type: ZoneMetaV1 Additional delivery zone data. |
PointV1
Delivery zone coordinate point.
|
Name |
Description |
|
lg* |
Type: number Example: |
|
lt* |
Type: number Example: |
ZoneMetaV1
Additional delivery zone data.
|
Name |
Description |
|
average_delivery_time* |
Type: integer Average expected delivery time. Example: Min value: Max value: |
|
intervals* |
Type: IntervalV1[] Delivery zone operating hours. |
|
is_active* |
Type: boolean Delivery zone activity flag. If the response contains |
|
zone_id* |
Type: string Delivery zone ID in the Partner’s system. Example: Min length: Max length: |
|
thresholds |
Type: ThresholdV1[] Delivery conditions A complex example of delivery conditions with multiple thresholds, where delivery cost depends on basket size.
Min items: Max items: |
IntervalV1
|
Name |
Description |
|
from* |
Type: string Beginning of interval (H:i format) Example: |
|
to* |
Type: string End of interval (H:i format) Example: |
|
weekday* |
Type: string Day of week Example: Enum: |
ThresholdV1
Delivery conditions.
|
Name |
Description |
|
delivery_cost* |
Type: MoneyV1 Monetary value representation. |
|
order_cost* |
Type: MoneyV1 Monetary value representation. |
MoneyV1
Monetary value representation.
|
Name |
Description |
|
currency* |
Type: string Three-letter ISO 4217 currency code. Example: Min length: Max length: |
|
value* |
Type: string Value in the specified currency (no cents/decimal/comma). Example: |
400 Bad Request
Client-side error.
Body
application/json
{
"message": "string",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code* |
Type: integer Error code. |
|
message* |
Type: string Error message. |
|
details |
Type: object |
401 Unauthorized
Authorisation failed.
Body
application/json
{
"message": "string",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code* |
Type: integer Error code. |
|
message* |
Type: string Error message. |
|
details |
Type: object |
500 Internal Server Error
Server-side error.
Body
application/json
{
"message": "string",
"code": 0,
"details": {}
}
|
Name |
Description |
|
code* |
Type: integer Error code. |
|
message* |
Type: string Error message. |
|
details |
Type: object |
No longer supported, please use an alternative and newer version.