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

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

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

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: 410
{
    "cart": [
        {
            "product_id": 301,
            "options": [],
            "product_price_id": null,
            "shop_id": 116,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "latch",
        "latch": {
            "latch_id": 13
        }
    },
    "year": 2020,
    "month": 6
}

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

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

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

Example response 2 Weekday not available messages

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

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

Example response 3 Simple delivery

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

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

Example response 4 Simple latch

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

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