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: 359
{
    "cart": [
        {
            "product_id": 189428,
            "options": [],
            "product_price_id": null,
            "shop_id": 2068,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout"
    },
    "year": 2020,
    "month": 7
}

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: 359
{
    "cart": [
        {
            "product_id": 189432,
            "options": [],
            "product_price_id": null,
            "shop_id": 2068,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout"
    },
    "year": 2020,
    "month": 7
}

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: 360
{
    "cart": [
        {
            "product_id": 189428,
            "options": [],
            "product_price_id": null,
            "shop_id": 2068,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "delivery"
    },
    "year": 2020,
    "month": 7
}

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: 415
{
    "cart": [
        {
            "product_id": 189428,
            "options": [],
            "product_price_id": null,
            "shop_id": 2068,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "latch",
        "latch": {
            "latch_id": 135
        }
    },
    "year": 2020,
    "month": 7
}

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: 357
{
    "cart": [
        {
            "product_id": 189428,
            "options": [],
            "product_price_id": null,
            "shop_id": 2068,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "latch"
    },
    "year": 2020,
    "month": 7
}

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: 12204

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

Example response 2 Weekday not available messages

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

[
    {
        "shop_id": 2068,
        "month": 7,
        "year": 2020,
        "messages": [
            "Croissant: Only available on: <strong>Tuesday</strong>"
        ],
        "days": [
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday  1 July",
                "date": "2020-07-01"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  2 July",
                "date": "2020-07-02"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday  3 July",
                "date": "2020-07-03"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday  4 July",
                "date": "2020-07-04"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday  5 July",
                "date": "2020-07-05"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday  6 July",
                "date": "2020-07-06"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday  7 July",
                "date": "2020-07-07"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday  8 July",
                "date": "2020-07-08"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday  9 July",
                "date": "2020-07-09"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 10 July",
                "date": "2020-07-10"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 11 July",
                "date": "2020-07-11"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 12 July",
                "date": "2020-07-12"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 13 July",
                "date": "2020-07-13"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Tuesday 14 July",
                "date": "2020-07-14"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 15 July",
                "date": "2020-07-15"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 16 July",
                "date": "2020-07-16"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 17 July",
                "date": "2020-07-17"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday 18 July",
                "date": "2020-07-18"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday 19 July",
                "date": "2020-07-19"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday 20 July",
                "date": "2020-07-20"
            },
            {
                "disabled": true,
                "day_of_week": 2,
                "times": [],
                "human": "Yesterday",
                "date": "2020-07-21"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Today",
                "date": "2020-07-22"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Tomorrow",
                "date": "2020-07-23"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday",
                "date": "2020-07-24"
            },
            {
                "disabled": true,
                "day_of_week": 6,
                "times": [],
                "human": "Saturday",
                "date": "2020-07-25"
            },
            {
                "disabled": true,
                "day_of_week": 7,
                "times": [],
                "human": "Sunday",
                "date": "2020-07-26"
            },
            {
                "disabled": true,
                "day_of_week": 1,
                "times": [],
                "human": "Monday",
                "date": "2020-07-27"
            },
            {
                "disabled": false,
                "day_of_week": 2,
                "times": [
                    {
                        "start": "06:45",
                        "end": "09:00"
                    },
                    {
                        "start": "10:00",
                        "end": "11:15"
                    },
                    {
                        "start": "11:45",
                        "end": "13:15"
                    },
                    {
                        "start": "13:30",
                        "end": "13:45"
                    }
                ],
                "human": "Tuesday",
                "date": "2020-07-28"
            },
            {
                "disabled": true,
                "day_of_week": 3,
                "times": [],
                "human": "Wednesday 29 July",
                "date": "2020-07-29"
            },
            {
                "disabled": true,
                "day_of_week": 4,
                "times": [],
                "human": "Thursday 30 July",
                "date": "2020-07-30"
            },
            {
                "disabled": true,
                "day_of_week": 5,
                "times": [],
                "human": "Friday 31 July",
                "date": "2020-07-31"
            }
        ]
    }
]

Example response 3 Simple delivery

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

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

Example response 4 Simple latch

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

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

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"
}
1.5.0 stable