POST /checkout/calendar
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 |
POST /checkout/calendar HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.2
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 3619
{
"cart": [
{
"amount": 12,
"persons": 18,
"gram": 16,
"comment": "...",
"product_id": 18,
"product_price_id": 11,
"shop_id": 16,
"options": [
{
"option_id": 17,
"upload_id": 13
},
{
"option_id": 14,
"upload_id": 14
},
{
"option_id": 16,
"upload_id": 16
}
]
},
{
"amount": 11,
"persons": 16,
"gram": 12,
"comment": "...",
"product_id": 11,
"product_price_id": 10,
"shop_id": 19,
"options": [
{
"option_id": 13,
"upload_id": 15
},
{
"option_id": 11,
"upload_id": 13
},
{
"option_id": 12,
"upload_id": 19
}
]
},
{
"amount": 14,
"persons": 13,
"gram": 16,
"comment": "...",
"product_id": 13,
"product_price_id": 11,
"shop_id": 18,
"options": [
{
"option_id": 16,
"upload_id": 15
},
{
"option_id": 15,
"upload_id": 10
},
{
"option_id": 19,
"upload_id": 11
}
]
}
],
"checkout": {
"method": "delivery",
"delivery": {
"date": "2019-01-31",
"time": "12:00",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"notes": "...",
"end_time": "12:00"
},
"takeout": {
"shops": {
"...": {
"id": 12,
"date": "2019-01-31",
"time": "12:00",
"end_time": "12:00"
}
}
},
"latch": {
"latch_id": 10,
"telephone": "+32 475 00 00 00",
"date": "2019-01-31",
"time": "12:00",
"notification_method": "email"
},
"isop": {
"origin": "in-store",
"customer_id": 17,
"employee_id": 14
},
"warranty": {
"bank": "ING. Bank"
},
"invoice": {
"company": {
"name": "...",
"vat": "BE0123456789",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
}
},
"config": {
"askInvoice": true,
"askIsop": true
},
"coupons": [
{
"code": "..."
},
{
"code": "..."
},
{
"code": "..."
}
],
"note_from_customer": "..."
},
"month": 16,
"year": 11
}
Array of 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 |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 5896
[
{
"shop_id": 14,
"month": 18,
"year": 11,
"messages": [
"...",
"...",
"..."
],
"days": [
{
"disabled": true,
"day_of_week": 17,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
},
{
"disabled": false,
"day_of_week": 17,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
},
{
"disabled": true,
"day_of_week": 16,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
}
]
},
{
"shop_id": 14,
"month": 14,
"year": 17,
"messages": [
"...",
"...",
"..."
],
"days": [
{
"disabled": false,
"day_of_week": 17,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
},
{
"disabled": false,
"day_of_week": 16,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
},
{
"disabled": true,
"day_of_week": 12,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
}
]
},
{
"shop_id": 10,
"month": 10,
"year": 10,
"messages": [
"...",
"...",
"..."
],
"days": [
{
"disabled": true,
"day_of_week": 15,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
},
{
"disabled": false,
"day_of_week": 17,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
},
{
"disabled": false,
"day_of_week": 15,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
}
]
}
]