GET /company/shops/@id/zipcode-lists/@zipcode_list_id
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Shop ID |
zipcode_list_id | Int | Zipcode list ID |
GET /company/shops/14/zipcode-lists/14 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
country | Country | 2 letter ISO representation of a country (string) |
zipcodes | [String] | Array of String |
cost | Week | Delivery cost per day of the week (in cents), e.g. make the sunday more/less expensive |
use_default_price | Bool | A boolean value |
quota_cost | Dictionary | A different cost once the value of the order reaches a certain quota. Mostly used to offer the customer cheaper delivery prices when their order contains more than ... in value. |
price_deviations | [Dictionary] | Change the price for certain periods of time. |
id | Int | An integer value |
shop_id | Int | An integer value |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 1559
{
"country": "BE",
"zipcodes": [
"...",
"...",
"..."
],
"cost": {
"d1": 18,
"d2": 12,
"d3": 14,
"d4": 11,
"d5": 15,
"d6": 18,
"d7": 16
},
"use_default_price": true,
"quota_cost": {
"enable": true,
"quota": 18,
"cost": {
"d1": 18,
"d2": 14,
"d3": 14,
"d4": 12,
"d5": 15,
"d6": 15,
"d7": 13
}
},
"price_deviations": [
{
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"cost_per_day": {
"d1": 12,
"d2": 12,
"d3": 12,
"d4": 19,
"d5": 11,
"d6": 19,
"d7": 10
}
},
{
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"cost_per_day": {
"d1": 19,
"d2": 13,
"d3": 18,
"d4": 12,
"d5": 15,
"d6": 14,
"d7": 10
}
},
{
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"cost_per_day": {
"d1": 12,
"d2": 19,
"d3": 12,
"d4": 11,
"d5": 14,
"d6": 17,
"d7": 14
}
}
],
"id": 15,
"shop_id": 18
}