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.1.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 4900
{
"cart": [
{
"amount": 19,
"persons": 16,
"gram": 19,
"comment": "...",
"product_id": 17,
"product_price_id": 11,
"shop_id": 18,
"option_ids": [
19,
19,
10
],
"uploads": [
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 14
},
{
"upload": {
"id": 15,
"url": "https://example.com"
},
"optionset_id": 11
},
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 16
}
],
"code": "..."
},
{
"amount": 11,
"persons": 13,
"gram": 14,
"comment": "...",
"product_id": 17,
"product_price_id": 18,
"shop_id": 11,
"option_ids": [
16,
10,
17
],
"uploads": [
{
"upload": {
"id": 14,
"url": "https://example.com"
},
"optionset_id": 12
},
{
"upload": {
"id": 13,
"url": "https://example.com"
},
"optionset_id": 16
},
{
"upload": {
"id": 14,
"url": "https://example.com"
},
"optionset_id": 14
}
],
"code": "..."
},
{
"amount": 18,
"persons": 16,
"gram": 11,
"comment": "...",
"product_id": 12,
"product_price_id": 19,
"shop_id": 18,
"option_ids": [
14,
11,
12
],
"uploads": [
{
"upload": {
"id": 11,
"url": "https://example.com"
},
"optionset_id": 12
},
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 10
},
{
"upload": {
"id": 11,
"url": "https://example.com"
},
"optionset_id": 18
}
],
"code": "..."
}
],
"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": 11,
"date": "2019-01-31",
"time": "12:00"
}
}
},
"latch": {
"latch_id": 18,
"telephone": "+32 475 00 00 00",
"date": "2019-01-31",
"time": "12:00",
"notification_method": "email"
},
"isop": {
"origin": "in-store",
"customer_id": 14,
"employee_id": 10
},
"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": "..."
}
]
},
"month": 14,
"year": 19
}
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: 5894
[
{
"shop_id": 17,
"month": 13,
"year": 19,
"messages": [
"...",
"...",
"..."
],
"days": [
{
"disabled": true,
"day_of_week": 19,
"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": 19,
"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": 10,
"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": 16,
"month": 16,
"year": 14,
"messages": [
"...",
"...",
"..."
],
"days": [
{
"disabled": false,
"day_of_week": 14,
"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": 10,
"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": 10,
"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": 15,
"month": 11,
"year": 18,
"messages": [
"...",
"...",
"..."
],
"days": [
{
"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"
},
{
"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": 13,
"times": [
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
},
{
"start": "12:00",
"end": "12:00"
}
],
"human": "...",
"date": "2019-01-31"
}
]
}
]