Get the calendar information for a given checkout and cart

POST /checkout/calendar

Request

Body

Pass the following properties via application/json or form encoding in the body of the request.

A dictionary with fields

Field Type Description
cart [CartItem.cart] Array of CartItem.cart
checkout Checkout.Checkout
month Int An integer value
year Int An integer value

Example request 1 Simple takeout

POST /checkout/calendar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 357
{
    "cart": [
        {
            "product_id": 6639,
            "options": [],
            "product_price_id": null,
            "shop_id": 2849,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout"
    },
    "year": 2021,
    "month": 4
}

Example request 2 Weekday not available messages

POST /checkout/calendar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 357
{
    "cart": [
        {
            "product_id": 6640,
            "options": [],
            "product_price_id": null,
            "shop_id": 2849,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout"
    },
    "year": 2021,
    "month": 4
}

Example request 3 Simple delivery

POST /checkout/calendar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 358
{
    "cart": [
        {
            "product_id": 6639,
            "options": [],
            "product_price_id": null,
            "shop_id": 2849,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "delivery"
    },
    "year": 2021,
    "month": 4
}

Example request 4 Simple latch

POST /checkout/calendar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 413
{
    "cart": [
        {
            "product_id": 6639,
            "options": [],
            "product_price_id": null,
            "shop_id": 2849,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "latch",
        "latch": {
            "latch_id": 344
        }
    },
    "year": 2021,
    "month": 4
}

Example request 5 Latch id is required for latch

POST /checkout/calendar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 355
{
    "cart": [
        {
            "product_id": 6639,
            "options": [],
            "product_price_id": null,
            "shop_id": 2849,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "latch"
    },
    "year": 2021,
    "month": 4
}

Response

Array of CalendarMonth: [CalendarMonth]

CalendarMonth

Gives an overview of all the available dates and times in a month with the current checkout settings

Field Type Description
shop_id Int? Nullable. An integer value
month Int An integer value
year Int An integer value
messages [String] Array of String
days [CalendarDay] Array of CalendarDay

Example response 1 Simple takeout

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 12889

[
    {
        "shop_id": 2849,
        "month": 4,
        "year": 2021,
        "messages": [],
        "days": [
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  1 April",
                "date": "2021-04-01"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  2 April",
                "date": "2021-04-02"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday  3 April",
                "date": "2021-04-03"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday  4 April",
                "date": "2021-04-04"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday  5 April",
                "date": "2021-04-05"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday  6 April",
                "date": "2021-04-06"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday  7 April",
                "date": "2021-04-07"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  8 April",
                "date": "2021-04-08"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  9 April",
                "date": "2021-04-09"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 10 April",
                "date": "2021-04-10"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 11 April",
                "date": "2021-04-11"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 12 April",
                "date": "2021-04-12"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday 13 April",
                "date": "2021-04-13"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 14 April",
                "date": "2021-04-14"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 15 April",
                "date": "2021-04-15"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 16 April",
                "date": "2021-04-16"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 17 April",
                "date": "2021-04-17"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 18 April",
                "date": "2021-04-18"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 19 April",
                "date": "2021-04-19"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "2137",
                "date": "2021-04-20"
            },
            {
                "disabled": false,
                "day_of_week": 3,
                "times": [
                    {
                        "start": "10:45",
                        "end": "11:30"
                    },
                    {
                        "start": "14:00",
                        "end": "14:45"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    },
                    {
                        "start": "14:00",
                        "end": "14:45"
                    }
                ],
                "human": "2136",
                "date": "2021-04-21"
            },
            {
                "disabled": false,
                "day_of_week": 4,
                "times": [
                    {
                        "start": "10:45",
                        "end": "11:30"
                    },
                    {
                        "start": "14:00",
                        "end": "14:45"
                    }
                ],
                "human": "2138",
                "date": "2021-04-22"
            },
            {
                "disabled": false,
                "day_of_week": 5,
                "times": [
                    {
                        "start": "16:45",
                        "end": "17:00"
                    },
                    {
                        "start": "17:30",
                        "end": "18:00"
                    },
                    {
                        "start": "18:00",
                        "end": "18:30"
                    },
                    {
                        "start": "18:30",
                        "end": "18:45"
                    },
                    {
                        "start": "19:00",
                        "end": "19:15"
                    },
                    {
                        "start": "19:30",
                        "end": "20:00"
                    },
                    {
                        "start": "16:45",
                        "end": "17:00"
                    },
                    {
                        "start": "17:30",
                        "end": "18:00"
                    },
                    {
                        "start": "18:00",
                        "end": "18:30"
                    },
                    {
                        "start": "18:30",
                        "end": "18:45"
                    },
                    {
                        "start": "19:00",
                        "end": "19:15"
                    },
                    {
                        "start": "19:30",
                        "end": "20:00"
                    }
                ],
                "human": "Friday",
                "date": "2021-04-23"
            },
            {
                "disabled": false,
                "day_of_week": 6,
                "times": [
                    {
                        "start": "16:45",
                        "end": "17:00"
                    },
                    {
                        "start": "17:30",
                        "end": "18:00"
                    },
                    {
                        "start": "18:00",
                        "end": "18:30"
                    },
                    {
                        "start": "18:30",
                        "end": "18:45"
                    },
                    {
                        "start": "19:00",
                        "end": "19:15"
                    },
                    {
                        "start": "19:30",
                        "end": "20:00"
                    }
                ],
                "human": "Saturday",
                "date": "2021-04-24"
            },
            {
                "disabled": false,
                "day_of_week": 7,
                "times": [
                    {
                        "start": "06:00",
                        "end": "06:45"
                    },
                    {
                        "start": "07:45",
                        "end": "08:15"
                    },
                    {
                        "start": "08:15",
                        "end": "09:00"
                    },
                    {
                        "start": "09:00",
                        "end": "09:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "11:00",
                        "end": "11:45"
                    }
                ],
                "human": "Sunday",
                "date": "2021-04-25"
            },
            {
                "disabled": false,
                "day_of_week": 1,
                "times": [
                    {
                        "start": "14:00",
                        "end": "19:30"
                    },
                    {
                        "start": "14:00",
                        "end": "19:30"
                    }
                ],
                "human": "Monday",
                "date": "2021-04-26"
            },
            {
                "disabled": false,
                "day_of_week": 2,
                "times": [
                    {
                        "start": "14:00",
                        "end": "19:30"
                    }
                ],
                "human": "Tuesday",
                "date": "2021-04-27"
            },
            {
                "disabled": false,
                "day_of_week": 3,
                "times": [
                    {
                        "start": "10:45",
                        "end": "11:30"
                    },
                    {
                        "start": "14:00",
                        "end": "14:45"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    },
                    {
                        "start": "14:00",
                        "end": "14:45"
                    }
                ],
                "human": "Wednesday 28 April",
                "date": "2021-04-28"
            },
            {
                "disabled": false,
                "day_of_week": 4,
                "times": [
                    {
                        "start": "10:45",
                        "end": "11:30"
                    },
                    {
                        "start": "14:00",
                        "end": "14:45"
                    }
                ],
                "human": "Thursday 29 April",
                "date": "2021-04-29"
            },
            {
                "disabled": false,
                "day_of_week": 5,
                "times": [
                    {
                        "start": "16:45",
                        "end": "17:00"
                    },
                    {
                        "start": "17:30",
                        "end": "18:00"
                    },
                    {
                        "start": "18:00",
                        "end": "18:30"
                    },
                    {
                        "start": "18:30",
                        "end": "18:45"
                    },
                    {
                        "start": "19:00",
                        "end": "19:15"
                    },
                    {
                        "start": "19:30",
                        "end": "20:00"
                    },
                    {
                        "start": "16:45",
                        "end": "17:00"
                    },
                    {
                        "start": "17:30",
                        "end": "18:00"
                    },
                    {
                        "start": "18:00",
                        "end": "18:30"
                    },
                    {
                        "start": "18:30",
                        "end": "18:45"
                    },
                    {
                        "start": "19:00",
                        "end": "19:15"
                    },
                    {
                        "start": "19:30",
                        "end": "20:00"
                    }
                ],
                "human": "Friday 30 April",
                "date": "2021-04-30"
            }
        ]
    }
]

Example response 2 Weekday not available messages

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 6500

[
    {
        "shop_id": 2849,
        "month": 4,
        "year": 2021,
        "messages": [
            "Keizer grof: 1990: <strong>2126</strong>"
        ],
        "days": [
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  1 April",
                "date": "2021-04-01"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  2 April",
                "date": "2021-04-02"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday  3 April",
                "date": "2021-04-03"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday  4 April",
                "date": "2021-04-04"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday  5 April",
                "date": "2021-04-05"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday  6 April",
                "date": "2021-04-06"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday  7 April",
                "date": "2021-04-07"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  8 April",
                "date": "2021-04-08"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  9 April",
                "date": "2021-04-09"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 10 April",
                "date": "2021-04-10"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 11 April",
                "date": "2021-04-11"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 12 April",
                "date": "2021-04-12"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday 13 April",
                "date": "2021-04-13"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 14 April",
                "date": "2021-04-14"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 15 April",
                "date": "2021-04-15"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 16 April",
                "date": "2021-04-16"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 17 April",
                "date": "2021-04-17"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 18 April",
                "date": "2021-04-18"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 19 April",
                "date": "2021-04-19"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "2137",
                "date": "2021-04-20"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "2136",
                "date": "2021-04-21"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "2138",
                "date": "2021-04-22"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday",
                "date": "2021-04-23"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday",
                "date": "2021-04-24"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday",
                "date": "2021-04-25"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday",
                "date": "2021-04-26"
            },
            {
                "disabled": false,
                "day_of_week": 2,
                "times": [
                    {
                        "start": "14:00",
                        "end": "19:30"
                    }
                ],
                "human": "Tuesday",
                "date": "2021-04-27"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 28 April",
                "date": "2021-04-28"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 29 April",
                "date": "2021-04-29"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 30 April",
                "date": "2021-04-30"
            }
        ]
    }
]

Example response 3 Simple delivery

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 12007

[
    {
        "shop_id": null,
        "month": 4,
        "year": 2021,
        "messages": [],
        "days": [
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  1 April",
                "date": "2021-04-01"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  2 April",
                "date": "2021-04-02"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday  3 April",
                "date": "2021-04-03"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday  4 April",
                "date": "2021-04-04"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday  5 April",
                "date": "2021-04-05"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday  6 April",
                "date": "2021-04-06"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday  7 April",
                "date": "2021-04-07"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  8 April",
                "date": "2021-04-08"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  9 April",
                "date": "2021-04-09"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 10 April",
                "date": "2021-04-10"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 11 April",
                "date": "2021-04-11"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 12 April",
                "date": "2021-04-12"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday 13 April",
                "date": "2021-04-13"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 14 April",
                "date": "2021-04-14"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 15 April",
                "date": "2021-04-15"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 16 April",
                "date": "2021-04-16"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 17 April",
                "date": "2021-04-17"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 18 April",
                "date": "2021-04-18"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 19 April",
                "date": "2021-04-19"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "2137",
                "date": "2021-04-20"
            },
            {
                "disabled": false,
                "day_of_week": 3,
                "times": [
                    {
                        "start": "05:00",
                        "end": "06:00"
                    },
                    {
                        "start": "07:15",
                        "end": "07:45"
                    },
                    {
                        "start": "08:00",
                        "end": "08:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    }
                ],
                "human": "2136",
                "date": "2021-04-21"
            },
            {
                "disabled": false,
                "day_of_week": 4,
                "times": [
                    {
                        "start": "05:00",
                        "end": "06:00"
                    },
                    {
                        "start": "07:15",
                        "end": "07:45"
                    },
                    {
                        "start": "08:00",
                        "end": "08:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    }
                ],
                "human": "2138",
                "date": "2021-04-22"
            },
            {
                "disabled": false,
                "day_of_week": 5,
                "times": [
                    {
                        "start": "05:00",
                        "end": "06:00"
                    },
                    {
                        "start": "07:15",
                        "end": "07:45"
                    },
                    {
                        "start": "08:00",
                        "end": "08:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    }
                ],
                "human": "Friday",
                "date": "2021-04-23"
            },
            {
                "disabled": false,
                "day_of_week": 6,
                "times": [
                    {
                        "start": "06:00",
                        "end": "08:15"
                    },
                    {
                        "start": "08:30",
                        "end": "09:00"
                    }
                ],
                "human": "Saturday",
                "date": "2021-04-24"
            },
            {
                "disabled": false,
                "day_of_week": 7,
                "times": [
                    {
                        "start": "06:00",
                        "end": "08:15"
                    },
                    {
                        "start": "08:30",
                        "end": "09:00"
                    }
                ],
                "human": "Sunday",
                "date": "2021-04-25"
            },
            {
                "disabled": false,
                "day_of_week": 1,
                "times": [
                    {
                        "start": "14:00",
                        "end": "14:15"
                    },
                    {
                        "start": "14:45",
                        "end": "16:00"
                    },
                    {
                        "start": "16:00",
                        "end": "16:30"
                    },
                    {
                        "start": "16:45",
                        "end": "17:15"
                    },
                    {
                        "start": "17:30",
                        "end": "17:45"
                    }
                ],
                "human": "Monday",
                "date": "2021-04-26"
            },
            {
                "disabled": false,
                "day_of_week": 2,
                "times": [
                    {
                        "start": "14:00",
                        "end": "14:15"
                    },
                    {
                        "start": "14:45",
                        "end": "16:00"
                    },
                    {
                        "start": "16:00",
                        "end": "16:30"
                    },
                    {
                        "start": "16:45",
                        "end": "17:15"
                    },
                    {
                        "start": "17:30",
                        "end": "17:45"
                    }
                ],
                "human": "Tuesday",
                "date": "2021-04-27"
            },
            {
                "disabled": false,
                "day_of_week": 3,
                "times": [
                    {
                        "start": "05:00",
                        "end": "06:00"
                    },
                    {
                        "start": "07:15",
                        "end": "07:45"
                    },
                    {
                        "start": "08:00",
                        "end": "08:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    }
                ],
                "human": "Wednesday 28 April",
                "date": "2021-04-28"
            },
            {
                "disabled": false,
                "day_of_week": 4,
                "times": [
                    {
                        "start": "05:00",
                        "end": "06:00"
                    },
                    {
                        "start": "07:15",
                        "end": "07:45"
                    },
                    {
                        "start": "08:00",
                        "end": "08:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    }
                ],
                "human": "Thursday 29 April",
                "date": "2021-04-29"
            },
            {
                "disabled": false,
                "day_of_week": 5,
                "times": [
                    {
                        "start": "05:00",
                        "end": "06:00"
                    },
                    {
                        "start": "07:15",
                        "end": "07:45"
                    },
                    {
                        "start": "08:00",
                        "end": "08:30"
                    },
                    {
                        "start": "10:15",
                        "end": "10:30"
                    },
                    {
                        "start": "10:45",
                        "end": "11:30"
                    }
                ],
                "human": "Friday 30 April",
                "date": "2021-04-30"
            }
        ]
    }
]

Example response 4 Simple latch

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 6845

[
    {
        "shop_id": 2849,
        "month": 4,
        "year": 2021,
        "messages": [],
        "days": [
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  1 April",
                "date": "2021-04-01"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  2 April",
                "date": "2021-04-02"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday  3 April",
                "date": "2021-04-03"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday  4 April",
                "date": "2021-04-04"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday  5 April",
                "date": "2021-04-05"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday  6 April",
                "date": "2021-04-06"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday  7 April",
                "date": "2021-04-07"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  8 April",
                "date": "2021-04-08"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  9 April",
                "date": "2021-04-09"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 10 April",
                "date": "2021-04-10"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 11 April",
                "date": "2021-04-11"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 12 April",
                "date": "2021-04-12"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday 13 April",
                "date": "2021-04-13"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 14 April",
                "date": "2021-04-14"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 15 April",
                "date": "2021-04-15"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 16 April",
                "date": "2021-04-16"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 17 April",
                "date": "2021-04-17"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 18 April",
                "date": "2021-04-18"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 19 April",
                "date": "2021-04-19"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "2137",
                "date": "2021-04-20"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "2136",
                "date": "2021-04-21"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "2138",
                "date": "2021-04-22"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday",
                "date": "2021-04-23"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [
                    {
                        "start": "10:30",
                        "end": "12:15"
                    }
                ],
                "human": "Saturday",
                "date": "2021-04-24"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday",
                "date": "2021-04-25"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [
                    {
                        "start": "16:30",
                        "end": "17:30"
                    }
                ],
                "human": "Monday",
                "date": "2021-04-26"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [
                    {
                        "start": "14:30",
                        "end": "17:30"
                    },
                    {
                        "start": "10:30",
                        "end": "12:15"
                    }
                ],
                "human": "Tuesday",
                "date": "2021-04-27"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 28 April",
                "date": "2021-04-28"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 29 April",
                "date": "2021-04-29"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 30 April",
                "date": "2021-04-30"
            }
        ]
    }
]

Example response 5 Latch id is required for latch

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Length: 138

{
    "code": "missing_field",
    "message": "Latch field needs to be set when checkout method is latch",
    "field": "checkout.latch"
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable