GET /company/companies/@id/holidays
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 | The ID of the company you want the holidays from |
GET /company/companies/12/holidays HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5
Array of Holiday: [Holiday]
Field | Type | Description |
---|---|---|
shop_ids | [Int] | Shop ids this holiday applies to |
closed | Bool | Whether the shop is closed during this time or changed it's openings hours |
start_date | Date | Date of when it starts |
end_date | Date | Date of when it ends |
message | String | Message to the customer |
upfront | Dictionary | A dictionary with fields |
takeout | Dictionary | Adjusted calendar hours for takeout |
delivery | Dictionary | Adjusted calendar hours for delivery |
open | Dictionary | Adjusted opening hours |
id | Int | Id of the holiday |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 5130
[
{
"shop_ids": [
12,
11,
16
],
"closed": false,
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"message": "...",
"upfront": {
"type": "default",
"days": 14,
"time": "12:00",
"hours": 12,
"minutes": 11
},
"takeout": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"delivery": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"open": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"id": 11
},
{
"shop_ids": [
17,
13,
19
],
"closed": true,
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"message": "...",
"upfront": {
"type": "default",
"days": 18,
"time": "12:00",
"hours": 12,
"minutes": 19
},
"takeout": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"delivery": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"open": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"id": 10
},
{
"shop_ids": [
17,
19,
16
],
"closed": true,
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"message": "...",
"upfront": {
"type": "default",
"days": 10,
"time": "12:00",
"hours": 19,
"minutes": 10
},
"takeout": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"delivery": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"open": {
"action": "default",
"custom_hours": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
]
},
"id": 13
}
]