Partner delivery zones meta information
Method for retrieving meta information about delivery zones.
This method runs on a defined schedule (agreed upon with the Partner).
Request
GET
/place-info/v1/zones-meta
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
Successfully retrieved zone meta information.
Body
application/json
{
"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 |
|
meta* |
Type: ZoneMetaV1[] List of the store’s delivery zones. |
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.
ErrorItem
|
Name |
Description |
|
code* |
Type: integer Numeric error code agreed with Yango Deli. Example: |
|
description* |
Type: string Error description Example: |
500 Internal Server Error
Server-side error.
No longer supported, please use an alternative and newer version.