Validate the cart and checkout information and get essential information for the checkout flow

POST /checkout

Request

Optional authentication

You can use authentication for this request, but it is not required. Always provide the access_token when you have one. It may affect the response.

Header Value
Authorization Optional. Set the value to Bearer + + access_token

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
add_items [CartItem.cart] Optional. Ask the API to add these items to your existing cart (in cart). This will merge items that can be merged and is also required to provide adding suggestions in the response. If you add menu's (Products with options that reference other products) to the Cart, you can set the value of the replace_products property to remove the linked options from the cart.
add_suggestions [CartItem.cart] Optional. Same as add_items, but use this if you want to add suggested products to the cart. This affects the merging mechanism. E.g. if you have Coca Cola in your current cart and add a suggested Big Mac menu with a Cola, you also want to remove that Cola from the cart. Needs to happen via the API because the frontend can't and shouldn't know which option is linked to a product. Used in combination with suggestions in the response.
checkout Checkout.Checkout Optional.
payment_method String Optional. String enumarion of 'point_of_sale', 'paid_in_shop', 'bank_transfer', 'ideal', 'bancontact', 'sofort', 'giropay', 'creditcard', 'cartes_bancaires', 'paypal', 'eps_uberweisung', 'payconiq', 'monizze', 'edenred', 'webpay', 'credomatic', 'satispay', 'stripe_card_visa_mc', 'stripe_card_amex', 'stripe_apple_pay', 'stripe_google_pay', 'payu_romania_visa', 'payu_romania_mc', 'payu_romania_visa_electron', 'payu_romania_maestro', 'payu_brazil_amex', 'payu_brazil_boleto_bancario', 'payu_brazil_diners', 'payu_brazil_elo', 'payu_brazil_hipercard', 'payu_brazil_mc', 'payu_brazil_visa', 'payu_sp_maestro', 'payu_sp_mc', 'payu_sp_payment_wall', 'payu_sp_pbl', 'payu_sp_visa', 'pesopay_gcash', 'pesopay_visa', 'pesopay_mc'

Example request 1 Simple cart item

POST /checkout 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: 268
{
    "cart": [
        {
            "product_id": 303,
            "options": [],
            "product_price_id": null,
            "shop_id": 117,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 2 Not possible to validate an empty cart

POST /checkout 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: 18
{
    "cart": []
}

Example request 3 You can't order in multiple shops on some platforms

POST /checkout 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: 514
{
    "cart": [
        {
            "product_id": 303,
            "options": [],
            "product_price_id": null,
            "shop_id": 117,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 4 Simple takeout checkout

POST /checkout 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: 547
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout",
        "takeout": {
            "shops": {
                "shop_118": {
                    "id": 118,
                    "date": "2020-06-21",
                    "time": "12:30"
                }
            }
        }
    }
}

Example request 5 Simple delivery checkout without intervals

POST /checkout 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: 654
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "delivery",
        "delivery": {
            "date": "2020-06-22",
            "time": "16:30",
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE"
            },
            "notes": ""
        }
    }
}

Example request 6 Simple delivery checkout with intervals

POST /checkout 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: 686
{
    "cart": [
        {
            "product_id": 307,
            "options": [],
            "product_price_id": null,
            "shop_id": 119,
            "amount": 8,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "delivery",
        "delivery": {
            "date": "2020-06-22",
            "time": "16:30",
            "end_time": "17:30",
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE"
            },
            "notes": ""
        }
    }
}

Example request 7 Simple delivery checkout with invalid zipcode

POST /checkout 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: 687
{
    "cart": [
        {
            "product_id": 308,
            "options": [],
            "product_price_id": null,
            "shop_id": 120,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "delivery",
        "delivery": {
            "date": "2020-06-22",
            "time": "16:30",
            "end_time": "17:30",
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE"
            },
            "notes": ""
        }
    }
}

Example request 8 Simple delivery checkout with valid zipcode

POST /checkout 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: 687
{
    "cart": [
        {
            "product_id": 308,
            "options": [],
            "product_price_id": null,
            "shop_id": 120,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "delivery",
        "delivery": {
            "date": "2020-06-22",
            "time": "16:30",
            "end_time": "17:30",
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9200",
                "city": "Gent",
                "country": "BE"
            },
            "notes": ""
        }
    }
}

Example request 9 Maximum amount

POST /checkout 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: 268
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 11,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 10 Maximum amount for product with optionsets

POST /checkout 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: 508
{
    "cart": [
        {
            "product_id": 313,
            "options": [
                {
                    "option_id": 1076,
                    "upload_id": null
                },
                {
                    "option_id": 1078,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 21,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 11 Maximum amount for product with choices

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 311,
            "options": [],
            "product_price_id": 168,
            "shop_id": 118,
            "amount": 21,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 12 Minimum amount

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 13 Maximum weight

POST /checkout 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: 271
{
    "cart": [
        {
            "product_id": 310,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 11,
            "persons": 0,
            "gram": 5000,
            "comment": ""
        }
    ]
}

Example request 14 Minimum weight

POST /checkout 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: 269
{
    "cart": [
        {
            "product_id": 310,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 1,
            "persons": 0,
            "gram": 150,
            "comment": ""
        }
    ]
}

Example request 15 Minimum persons

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 309,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 1,
            "persons": 2,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 16 Maximum persons

POST /checkout 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: 268
{
    "cart": [
        {
            "product_id": 309,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 1,
            "persons": 11,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 17 Product with product price

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 311,
            "options": [],
            "product_price_id": 168,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 18 Product with product price of other product

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 311,
            "options": [],
            "product_price_id": 171,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 19 Product with invalid product price

POST /checkout 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: 276
{
    "cart": [
        {
            "product_id": 311,
            "options": [],
            "product_price_id": 959591313556,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 20 Product with options

POST /checkout 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: 508
{
    "cart": [
        {
            "product_id": 313,
            "options": [
                {
                    "option_id": 1076,
                    "upload_id": null
                },
                {
                    "option_id": 1078,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 21 Cart with two invalid products, and one valid should keep valid one

POST /checkout 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: 1024
{
    "cart": [
        {
            "product_id": 313,
            "options": [
                {
                    "option_id": 1076,
                    "upload_id": null
                },
                {
                    "option_id": 1078,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 7956265686869419,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 313,
            "options": [],
            "product_price_id": null,
            "shop_id": 95956536299232,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 22 Missing options

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 313,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 23 Duplicate options

POST /checkout 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: 735
{
    "cart": [
        {
            "product_id": 313,
            "options": [
                {
                    "option_id": 1076,
                    "upload_id": null
                },
                {
                    "option_id": 1078,
                    "upload_id": null
                },
                {
                    "option_id": 1076,
                    "upload_id": null
                },
                {
                    "option_id": 1078,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 24 Inactive product

POST /checkout 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: 268
{
    "cart": [
        {
            "product_id": 305,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 25 Deleted product

POST /checkout 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: 268
{
    "cart": [
        {
            "product_id": 306,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 26 Product with wrong shop

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 121,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 27 Unit product with grams

POST /checkout 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: 269
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 121,
            "amount": 1,
            "persons": 0,
            "gram": 120,
            "comment": ""
        }
    ]
}

Example request 28 Equal cart items should get combined without an error

POST /checkout 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: 757
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 3,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 29 Valid coupons usage

POST /checkout 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: 389
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "TDucsutZEg"
            }
        ]
    }
}

Example request 30 Valid coupons usage (fixed discount)

POST /checkout 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: 389
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "XMqqFNpWwe"
            }
        ]
    }
}

Example request 31 Expired coupon usage

POST /checkout 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: 389
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "AVQSb3GPeY"
            }
        ]
    }
}

Example request 32 Used coupon

POST /checkout 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: 389
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "u4KGSFtiHx"
            }
        ]
    }
}

Example request 33 Used coupon per user

POST /checkout HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer b05ef2249100e3fe280fd12b8fbd654fca4b5b92c74c91a58e0a37bbefcfa0ec33a57c460ea38902b627f99f5457a97adec018fe1b44fbd3960208df0e410b4454deed460b9ba1f5f7a679e83090dacc62570eba207dad860fb8de762ac74d9eeec4c688
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 389
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "TivEIUPQsM"
            }
        ]
    }
}

Example request 34 Used coupon per user (anonymous)

POST /checkout 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: 389
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "TivEIUPQsM"
            }
        ]
    }
}

Example request 35 Invoice

POST /checkout 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: 714
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout",
        "invoice": {
            "company": {
                "name": "Localtomorrow NV",
                "vat": "BE0543469620",
                "address": {
                    "street": "Sint-Denijslaan",
                    "nr": "96",
                    "zipcode": "9000",
                    "city": "Gent",
                    "country": "BE"
                }
            }
        }
    }
}

Example request 36 Cartes bancaires

POST /checkout HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer b05ef2249100e3fe280fd12b8fbd654fca4b5b92c74c91a58e0a37bbefcfa0ec33a57c460ea38902b627f99f5457a97adec018fe1b44fbd3960208df0e410b4454deed460b9ba1f5f7a679e83090dacc62570eba207dad860fb8de762ac74d9eeec4c688
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 589
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "method": "takeout",
        "takeout": {
            "shops": {
                "shop_118": {
                    "id": 118,
                    "date": "2020-06-21",
                    "time": "12:30"
                }
            }
        }
    },
    "payment_method": "cartes_bancaires"
}

Example request 37 Equal cart items should get combined on addition

POST /checkout 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: 537
{
    "cart": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 4,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_items": [
        {
            "product_id": 304,
            "options": [],
            "product_price_id": null,
            "shop_id": 118,
            "amount": 3,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 38 Product with uploads

POST /checkout 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: 504
{
    "cart": [
        {
            "product_id": 315,
            "options": [
                {
                    "option_id": 1080,
                    "upload_id": 10
                },
                {
                    "option_id": 1085,
                    "upload_id": 10
                }
            ],
            "product_price_id": null,
            "shop_id": 122,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 39 Suggest a formed menu and also suggest forming other menu's by adding products

POST /checkout 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: 537
{
    "cart": [
        {
            "product_id": 319,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_items": [
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 40 Coupons and discounts are taken into account for suggestions

POST /checkout 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: 657
{
    "cart": [
        {
            "product_id": 319,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "checkout": {
        "coupons": [
            {
                "code": "FREE-COLA"
            }
        ]
    },
    "add_items": [
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 41 When you add something to the cart and form a menu, suggest the menu

POST /checkout 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: 782
{
    "cart": [
        {
            "product_id": 319,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 326,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_items": [
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 42 Do not suggest a menu if it is more expensive

POST /checkout 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: 782
{
    "cart": [
        {
            "product_id": 321,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 326,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_items": [
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 43 When you only add suggestions, never provide other suggestions

POST /checkout 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: 788
{
    "cart": [
        {
            "product_id": 321,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 326,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_suggestions": [
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 44 Added suggestions are used for calculating suggestions when adding items

POST /checkout 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: 813
{
    "cart": [
        {
            "product_id": 321,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_suggestions": [
        {
            "product_id": 326,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_items": [
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 45 When you add a menu as a suggestion, replace the matching products in the cart

POST /checkout 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: 1387
{
    "cart": [
        {
            "product_id": 319,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 326,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        },
        {
            "product_id": 323,
            "options": [],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 3,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ],
    "add_suggestions": [
        {
            "product_id": 327,
            "options": [
                {
                    "option_id": 1107,
                    "upload_id": null
                },
                {
                    "option_id": 1115,
                    "upload_id": null
                },
                {
                    "option_id": 1113,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 124,
            "amount": 2,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 46 Product with offer discount

POST /checkout 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: 508
{
    "cart": [
        {
            "product_id": 317,
            "options": [
                {
                    "option_id": 1093,
                    "upload_id": null
                },
                {
                    "option_id": 1096,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 123,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 47 Category with offer discount is currently ignored

POST /checkout 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: 508
{
    "cart": [
        {
            "product_id": 316,
            "options": [
                {
                    "option_id": 1089,
                    "upload_id": null
                },
                {
                    "option_id": 1091,
                    "upload_id": null
                }
            ],
            "product_price_id": null,
            "shop_id": 123,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 48 Product price with offer discount

POST /checkout 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: 621
{
    "cart": [
        {
            "product_id": 318,
            "options": [
                {
                    "option_id": 1098,
                    "upload_id": null
                },
                {
                    "option_id": 1100,
                    "upload_id": null
                },
                {
                    "option_id": 1102,
                    "upload_id": null
                }
            ],
            "product_price_id": 173,
            "shop_id": 123,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 49 Product price without offer discount

POST /checkout 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: 621
{
    "cart": [
        {
            "product_id": 318,
            "options": [
                {
                    "option_id": 1098,
                    "upload_id": null
                },
                {
                    "option_id": 1100,
                    "upload_id": null
                },
                {
                    "option_id": 1102,
                    "upload_id": null
                }
            ],
            "product_price_id": 174,
            "shop_id": 123,
            "amount": 10,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Example request 50 Latch items

POST /checkout 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: 267
{
    "cart": [
        {
            "product_id": 331,
            "options": [],
            "product_price_id": null,
            "shop_id": 125,
            "amount": 1,
            "persons": 0,
            "gram": 0,
            "comment": ""
        }
    ]
}

Response

A dictionary with fields

Field Type Description
cart [CartItem.cart] When a cart is returned, you are required to overwrite the cart in your app with the changed cart in the response. You should display a message to the user that you did change the cart. The errors field will contain human readable errors with the changes that have been made. If no errors are set, you should default to a generic message.
suggestions [CartItemSuggestionGroup] A collection of suggested CartItems that the user could be interested in. If you present these to the user and the user adds one to the cart, make sure to add the CartItem via the add_suggestions property in the validate request.
cart_config CartConfig Optional. When available, this will return all essential information about the cart. When the cart is also set in the response, the cart_config contains information about the cart in the response, not in the request.
errors [ValidationError] Optional. Allows to return error messages while still providing a corrected cart in the cart field. Can also contain errors about the checkout. Warning: It is still possible to return the default error structure (single error, or array of errors in response, see documentation) if errors occur before a corrected cart could get generated.

Example response 1 Simple cart item

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

{
    "cart": [
        {
            "product": {
                "id": 303,
                "name": "Triomf rond",
                "price": {
                    "value": 9782,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 117,
                "name": "The Torpedough",
                "address": {
                    "street": "Antoinesteeg",
                    "nr": "82",
                    "zipcode": "6880",
                    "city": "Oudenaarde",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 9782,
                    "currency": "EUR"
                },
                "price": {
                    "value": 97820,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 97820,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 97820,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 97820,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": false,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [
            "3756"
        ],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 2 Not possible to validate an empty cart

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "empty_cart",
            "message": "7062",
            "field": "cart"
        }
    ]
}

Example response 3 You can't order in multiple shops on some platforms

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

{
    "cart": [
        {
            "product": {
                "id": 303,
                "name": "Triomf rond",
                "price": {
                    "value": 9782,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 117,
                "name": "The Torpedough",
                "address": {
                    "street": "Antoinesteeg",
                    "nr": "82",
                    "zipcode": "6880",
                    "city": "Oudenaarde",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 9782,
                    "currency": "EUR"
                },
                "price": {
                    "value": 97820,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 99830,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 99830,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 99830,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": false,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [
            "3756"
        ],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "combined_cart_not_allowed",
            "message": "This platform does not allow a combined cart. You can't add multiple shops to the same cart",
            "field": "cart"
        }
    ]
}

Example response 4 Simple takeout checkout

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 5 Simple delivery checkout without intervals

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 6 Simple delivery checkout with intervals

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

{
    "cart": [
        {
            "product": {
                "id": 307,
                "name": "Plaat Pistolet",
                "price": {
                    "value": 7237,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 8,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 119,
                "name": "Cut the Cake",
                "address": {
                    "street": "Kayastraat",
                    "nr": "44",
                    "zipcode": "5170",
                    "city": "Mortsel",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 7237,
                    "currency": "EUR"
                },
                "price": {
                    "value": 57896,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 57896,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 57896,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 57896,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": true,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 7 Simple delivery checkout with invalid zipcode

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

{
    "cart": [
        {
            "product": {
                "id": 308,
                "name": "Plastic zakje 6 x malse sandwich",
                "price": {
                    "value": 9812,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 120,
                "name": "Doughing Pains",
                "address": {
                    "street": "Desmedtweg",
                    "nr": "32",
                    "zipcode": "2970",
                    "city": "Ottignies",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 9812,
                    "currency": "EUR"
                },
                "price": {
                    "value": 98120,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 98120,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 98120,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 98120,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": true,
            "messages": [
                "3623: 3624: 9200"
            ]
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": [],
    "errors": [
        {
            "code": "delivery_address_not_allowed",
            "message": "2081",
            "field": "checkout.delivery.address"
        }
    ]
}

Example response 8 Simple delivery checkout with valid zipcode

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

{
    "cart": [
        {
            "product": {
                "id": 308,
                "name": "Plastic zakje 6 x malse sandwich",
                "price": {
                    "value": 9812,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 120,
                "name": "Doughing Pains",
                "address": {
                    "street": "Desmedtweg",
                    "nr": "32",
                    "zipcode": "2970",
                    "city": "Ottignies",
                    "country": "BE",
                    "position": {
                        "latitude": 51.260197,
                        "longitude": 4.402771
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 9812,
                    "currency": "EUR"
                },
                "price": {
                    "value": 98120,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 98120,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 98120,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 98120,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": true,
            "messages": [
                "3623: 3624: 9200"
            ]
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 9 Maximum amount

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 10 Maximum amount for product with optionsets

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

{
    "cart": [
        {
            "product": {
                "id": 313,
                "name": "Meergranen",
                "price": {
                    "value": 4007,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1076,
                        "name": "Yes please",
                        "price_change": {
                            "value": 815,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 305,
                            "name": "Please select an option",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1078,
                        "name": "Yes",
                        "price_change": {
                            "value": 685,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 306,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 20,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 5507,
                    "currency": "EUR"
                },
                "price": {
                    "value": 110140,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 110140,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 110140,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 110140,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 11 Maximum amount for product with choices

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

{
    "cart": [
        {
            "product": {
                "id": 311,
                "name": "Rund Filet Pur (+- 180g)",
                "price": {
                    "value": 5766,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "MULTIPLE_CHOICE",
                "target_price": false
            },
            "options": [],
            "product_price": {
                "id": 168,
                "name": "3 persons",
                "price": {
                    "value": 21,
                    "currency": "EUR"
                }
            },
            "persons": 0,
            "amount": 20,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 21,
                    "currency": "EUR"
                },
                "price": {
                    "value": 420,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 420,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 420,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 420,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 12 Minimum amount

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 402,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 402,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 402,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 402,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 13 Maximum weight

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

{
    "cart": [
        {
            "product": {
                "id": 310,
                "name": "Pistolet wit",
                "price": {
                    "value": 675,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    }
                ],
                "price_type": "PER_KILOGRAM",
                "target_price": true
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 2000,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 675,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1350,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": true,
        "prices": {
            "price": {
                "value": 1350,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1350,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1350,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 14 Minimum weight

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

{
    "cart": [
        {
            "product": {
                "id": 310,
                "name": "Pistolet wit",
                "price": {
                    "value": 675,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    }
                ],
                "price_type": "PER_KILOGRAM",
                "target_price": true
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 200,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 675,
                    "currency": "EUR"
                },
                "price": {
                    "value": 135,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": true,
        "prices": {
            "price": {
                "value": 135,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 135,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 135,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 15 Minimum persons

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

{
    "cart": [
        {
            "product": {
                "id": 309,
                "name": "Chocoladekoek",
                "price": {
                    "value": 26,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_PERSON",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 6,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 156,
                    "currency": "EUR"
                },
                "price": {
                    "value": 156,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 156,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 156,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 156,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 16 Maximum persons

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

{
    "cart": [
        {
            "product": {
                "id": 309,
                "name": "Chocoladekoek",
                "price": {
                    "value": 26,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_PERSON",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 10,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 260,
                    "currency": "EUR"
                },
                "price": {
                    "value": 260,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 260,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 260,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 260,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2069",
            "field": "cart.0"
        }
    ]
}

Example response 17 Product with product price

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

{
    "cart": [
        {
            "product": {
                "id": 311,
                "name": "Rund Filet Pur (+- 180g)",
                "price": {
                    "value": 5766,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "MULTIPLE_CHOICE",
                "target_price": false
            },
            "options": [],
            "product_price": {
                "id": 168,
                "name": "3 persons",
                "price": {
                    "value": 21,
                    "currency": "EUR"
                }
            },
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 21,
                    "currency": "EUR"
                },
                "price": {
                    "value": 210,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 210,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 210,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 210,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 18 Product with product price of other product

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.0"
        }
    ]
}

Example response 19 Product with invalid product price

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.0"
        }
    ]
}

Example response 20 Product with options

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

{
    "cart": [
        {
            "product": {
                "id": 313,
                "name": "Meergranen",
                "price": {
                    "value": 4007,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1076,
                        "name": "Yes please",
                        "price_change": {
                            "value": 815,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 305,
                            "name": "Please select an option",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1078,
                        "name": "Yes",
                        "price_change": {
                            "value": 685,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 306,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 5507,
                    "currency": "EUR"
                },
                "price": {
                    "value": 55070,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 55070,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 55070,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 55070,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 21 Cart with two invalid products, and one valid should keep valid one

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

{
    "cart": [
        {
            "product": {
                "id": 313,
                "name": "Meergranen",
                "price": {
                    "value": 4007,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1076,
                        "name": "Yes please",
                        "price_change": {
                            "value": 815,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 305,
                            "name": "Please select an option",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1078,
                        "name": "Yes",
                        "price_change": {
                            "value": 685,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 306,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 5507,
                    "currency": "EUR"
                },
                "price": {
                    "value": 55070,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 55070,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 55070,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 55070,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "4273",
            "field": "cart.1"
        },
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.2"
        }
    ]
}

Example response 22 Missing options

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.0"
        }
    ]
}

Example response 23 Duplicate options

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.0"
        }
    ]
}

Example response 24 Inactive product

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "6811",
            "field": "cart.0"
        }
    ]
}

Example response 25 Deleted product

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "6812",
            "field": "cart.0"
        }
    ]
}

Example response 26 Product with wrong shop

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.0"
        }
    ]
}

Example response 27 Unit product with grams

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

{
    "cart": [],
    "suggestions": [],
    "errors": [
        {
            "code": "corrected_cart",
            "message": "2068",
            "field": "cart.0"
        }
    ]
}

Example response 28 Equal cart items should get combined without an error

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 7,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1407,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1407,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1407,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1407,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 29 Valid coupons usage

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": {
                "unit_price": {
                    "value": 186,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1858,
                    "currency": "EUR"
                }
            },
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": -152,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1858,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1858,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [
            {
                "name": "4156",
                "description": "6554",
                "percentage": 7.56,
                "fixed": 0,
                "type": "coupon",
                "code": "TDucsutZEg"
            }
        ],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 30 Valid coupons usage (fixed discount)

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": -123,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1887,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1887,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [
            {
                "name": "4156",
                "description": "6555",
                "percentage": 0,
                "fixed": 123,
                "type": "coupon",
                "code": "XMqqFNpWwe"
            }
        ],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 31 Expired coupon usage

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "invalid_field",
            "message": "4162",
            "field": "checkout.coupons.0.code"
        }
    ]
}

Example response 32 Used coupon

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "invalid_field",
            "message": "4162",
            "field": "checkout.coupons.0.code"
        }
    ]
}

Example response 33 Used coupon per user

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [],
    "errors": [
        {
            "code": "invalid_field",
            "message": "4162",
            "field": "checkout.coupons.0.code"
        }
    ]
}

Example response 34 Used coupon per user (anonymous)

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": {
                "unit_price": {
                    "value": 171,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1711,
                    "currency": "EUR"
                }
            },
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": -299,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1711,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1711,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [
            {
                "name": "4156",
                "description": "6554",
                "percentage": 14.89,
                "fixed": 0,
                "type": "coupon",
                "code": "TivEIUPQsM"
            }
        ],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 35 Invoice

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 200,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2210,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": [
                "2349"
            ]
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 36 Cartes bancaires

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 2010,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2010,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2010,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2010,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 37 Equal cart items should get combined on addition

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

{
    "cart": [
        {
            "product": {
                "id": 304,
                "name": "Mini-sandwich",
                "price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 7,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 118,
                "name": "Cake Bakes",
                "address": {
                    "street": "Bourgeoissingel",
                    "nr": "44",
                    "zipcode": "1070",
                    "city": "Aat",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 201,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1407,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1407,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1407,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1407,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 38 Product with uploads

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

{
    "cart": [
        {
            "product": {
                "id": 315,
                "name": "Maya",
                "price": {
                    "value": 7586,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-hagelslag.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-hagelslag.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1080,
                        "name": "No",
                        "price_change": {
                            "value": 400,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 307,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1085,
                        "name": "No",
                        "price_change": {
                            "value": 385,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 308,
                            "name": "Extra baked?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 122,
                "name": "Chateau Dough",
                "address": {
                    "street": "Lebrunweg",
                    "nr": "95",
                    "zipcode": "9800",
                    "city": "Waregem",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 8371,
                    "currency": "EUR"
                },
                "price": {
                    "value": 83710,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 83710,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 83710,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 83710,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 39 Suggest a formed menu and also suggest forming other menu's by adding products

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

{
    "cart": [
        {
            "product": {
                "id": 319,
                "name": "Coca Cola",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1196,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1196,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1196,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [
        {
            "name": "7049",
            "suggestions": [
                {
                    "name": "Menu sugar",
                    "description": "Coca Cola + Big Mac",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -48,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 329,
                            "name": "Menu sugar",
                            "price": {
                                "value": 550,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1107,
                                    "name": "Coca Cola",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 316,
                                        "name": "Choose something to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 550,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1100,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        },
        {
            "name": "Vervolledig Menu light",
            "suggestions": [
                {
                    "name": "Water",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 151,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 199,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1111,
                                    "name": "Water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 900,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Sparkling water",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    },
                    "price_change": {
                        "value": 151,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 220,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1112,
                                    "name": "Sparkling water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                                "width": 250,
                                                "height": 223
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                                "width": 1080,
                                                "height": 962
                                            }
                                        ],
                                        "white_background": false
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 900,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        },
        {
            "name": "Vervolledig Menu",
            "suggestions": [
                {
                    "name": "Chocolate cake",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 202,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 299,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 327,
                            "name": "Menu",
                            "price": {
                                "value": 800,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1107,
                                    "name": "Coca Cola",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 316,
                                        "name": "Choose something to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1115,
                                    "name": "Chocolate cake",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 800,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1600,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Pudding",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 202,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 299,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 327,
                            "name": "Menu",
                            "price": {
                                "value": 800,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1107,
                                    "name": "Coca Cola",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 316,
                                        "name": "Choose something to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 800,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1600,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        },
        {
            "name": "Vervolledig Menu fat",
            "suggestions": [
                {
                    "name": "Chocolate cake",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 261,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 299,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1115,
                                    "name": "Chocolate cake",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Pudding",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 261,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 299,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        }
    ]
}

Example response 40 Coupons and discounts are taken into account for suggestions

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

{
    "cart": [
        {
            "product": {
                "id": 319,
                "name": "Coca Cola",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": {
                "unit_price": {
                    "value": 0,
                    "currency": "EUR"
                },
                "price": {
                    "value": 0,
                    "currency": "EUR"
                }
            },
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1196,
                "currency": "EUR"
            },
            "discount": {
                "value": -598,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 598,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 598,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [
            {
                "name": "4156",
                "description": "6553",
                "percentage": 100,
                "fixed": 0,
                "type": "coupon",
                "code": "FREE-COLA"
            }
        ],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [
        {
            "name": "Vervolledig Menu light",
            "suggestions": [
                {
                    "name": "Water",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 151,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 199,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1111,
                                    "name": "Water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 900,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Sparkling water",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    },
                    "price_change": {
                        "value": 151,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 220,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1112,
                                    "name": "Sparkling water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                                "width": 250,
                                                "height": 223
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                                "width": 1080,
                                                "height": 962
                                            }
                                        ],
                                        "white_background": false
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 900,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        },
        {
            "name": "Vervolledig Menu fat",
            "suggestions": [
                {
                    "name": "Chocolate cake",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 261,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 299,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1115,
                                    "name": "Chocolate cake",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Pudding",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 261,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 299,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        }
    ]
}

Example response 41 When you add something to the cart and form a menu, suggest the menu

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

{
    "cart": [
        {
            "product": {
                "id": 319,
                "name": "Coca Cola",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 326,
                "name": "Pudding",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1794,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1794,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1794,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [
        {
            "name": "7049",
            "suggestions": [
                {
                    "name": "Menu",
                    "description": "Coca Cola + Big Mac + Pudding",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -97,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 327,
                            "name": "Menu",
                            "price": {
                                "value": 800,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1107,
                                    "name": "Coca Cola",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 316,
                                        "name": "Choose something to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 800,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1600,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Menu sugar",
                    "description": "Coca Cola + Big Mac",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -48,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 329,
                            "name": "Menu sugar",
                            "price": {
                                "value": 550,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1107,
                                    "name": "Coca Cola",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 316,
                                        "name": "Choose something to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 550,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1100,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Menu fat",
                    "description": "Big Mac + Pudding",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -38,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        },
        {
            "name": "Vervolledig Menu light",
            "suggestions": [
                {
                    "name": "Water",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": 151,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 199,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1111,
                                    "name": "Water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 900,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Sparkling water",
                    "description": "7048",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    },
                    "price_change": {
                        "value": 151,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": {
                        "value": 220,
                        "currency": "EUR"
                    },
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1112,
                                    "name": "Sparkling water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                                "width": 250,
                                                "height": 223
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                                "width": 1080,
                                                "height": 962
                                            }
                                        ],
                                        "white_background": false
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 900,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        }
    ]
}

Example response 42 Do not suggest a menu if it is more expensive

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

{
    "cart": [
        {
            "product": {
                "id": 321,
                "name": "Water",
                "price": {
                    "value": 199,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 199,
                    "currency": "EUR"
                },
                "price": {
                    "value": 199,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 326,
                "name": "Pudding",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1395,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1395,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1395,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [
        {
            "name": "7049",
            "suggestions": [
                {
                    "name": "Menu light",
                    "description": "Water + Big Mac",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -48,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1111,
                                    "name": "Water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 1,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Menu fat",
                    "description": "Big Mac + Pudding",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -38,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        }
    ]
}

Example response 43 When you only add suggestions, never provide other suggestions

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

{
    "cart": [
        {
            "product": {
                "id": 321,
                "name": "Water",
                "price": {
                    "value": 199,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 199,
                    "currency": "EUR"
                },
                "price": {
                    "value": 199,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 326,
                "name": "Pudding",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1395,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1395,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1395,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 44 Added suggestions are used for calculating suggestions when adding items

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

{
    "cart": [
        {
            "product": {
                "id": 321,
                "name": "Water",
                "price": {
                    "value": 199,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 199,
                    "currency": "EUR"
                },
                "price": {
                    "value": 199,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 326,
                "name": "Pudding",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 1395,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 1395,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 1395,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": [
        {
            "name": "7049",
            "suggestions": [
                {
                    "name": "Menu light",
                    "description": "Water + Big Mac",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -48,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 328,
                            "name": "Menu light",
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1111,
                                    "name": "Water",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 317,
                                        "name": "Choose something healthy to drink",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 1,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 450,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 450,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                },
                {
                    "name": "Menu fat",
                    "description": "Big Mac + Pudding",
                    "image": {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    },
                    "price_change": {
                        "value": -38,
                        "currency": "EUR"
                    },
                    "price_change_without_discount": null,
                    "item": {
                        "product": {
                            "id": 330,
                            "name": "Menu fat",
                            "price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "images": [
                                {
                                    "resolutions": [
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                            "width": 300,
                                            "height": 200
                                        },
                                        {
                                            "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                            "width": 1080,
                                            "height": 720
                                        }
                                    ],
                                    "white_background": true
                                }
                            ],
                            "price_type": "PER_UNIT",
                            "target_price": false
                        },
                        "options": [
                            {
                                "option": {
                                    "id": 1113,
                                    "name": "Big Mac",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 318,
                                        "name": "Choose a burger",
                                        "code": null
                                    }
                                },
                                "upload": null
                            },
                            {
                                "option": {
                                    "id": 1116,
                                    "name": "Pudding",
                                    "price_change": {
                                        "value": 0,
                                        "currency": "EUR"
                                    },
                                    "image": {
                                        "resolutions": [
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                                "width": 300,
                                                "height": 200
                                            },
                                            {
                                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                                "width": 1080,
                                                "height": 720
                                            }
                                        ],
                                        "white_background": true
                                    },
                                    "require_image": false,
                                    "code": null,
                                    "optionset": {
                                        "id": 319,
                                        "name": "Choose a dessert",
                                        "code": null
                                    }
                                },
                                "upload": null
                            }
                        ],
                        "product_price": null,
                        "persons": 0,
                        "amount": 2,
                        "gram": 0,
                        "comment": "",
                        "shop": {
                            "id": 124,
                            "name": "Makes Scents",
                            "address": {
                                "street": "Lecocqring",
                                "nr": "18",
                                "zipcode": "6600",
                                "city": "Herstal",
                                "country": "BE",
                                "position": {
                                    "latitude": 51.05,
                                    "longitude": 3.71667
                                }
                            },
                            "allow_comments": true,
                            "currency": "EUR"
                        },
                        "calculated_prices": {
                            "unit_price": {
                                "value": 560,
                                "currency": "EUR"
                            },
                            "price": {
                                "value": 1120,
                                "currency": "EUR"
                            }
                        },
                        "discount_prices": null,
                        "amount_free": 0
                    }
                }
            ]
        }
    ]
}

Example response 45 When you add a menu as a suggestion, replace the matching products in the cart

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

{
    "cart": [
        {
            "product": {
                "id": 326,
                "name": "Pudding",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 598,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 323,
                "name": "Big Mac",
                "price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 299,
                    "currency": "EUR"
                },
                "price": {
                    "value": 299,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "product": {
                "id": 327,
                "name": "Menu",
                "price": {
                    "value": 800,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1107,
                        "name": "Coca Cola",
                        "price_change": {
                            "value": 0,
                            "currency": "EUR"
                        },
                        "image": {
                            "resolutions": [
                                {
                                    "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                    "width": 300,
                                    "height": 200
                                },
                                {
                                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                    "width": 1080,
                                    "height": 720
                                }
                            ],
                            "white_background": true
                        },
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 316,
                            "name": "Choose something to drink",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1115,
                        "name": "Chocolate cake",
                        "price_change": {
                            "value": 0,
                            "currency": "EUR"
                        },
                        "image": {
                            "resolutions": [
                                {
                                    "src": "https://bakeronline.be/uploads/tests/250x200/product-klein-bruin-boerebrood.jpg",
                                    "width": 300,
                                    "height": 200
                                },
                                {
                                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-klein-bruin-boerebrood.jpg",
                                    "width": 1080,
                                    "height": 720
                                }
                            ],
                            "white_background": true
                        },
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 319,
                            "name": "Choose a dessert",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1113,
                        "name": "Big Mac",
                        "price_change": {
                            "value": 0,
                            "currency": "EUR"
                        },
                        "image": {
                            "resolutions": [
                                {
                                    "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-vierkant.jpg",
                                    "width": 300,
                                    "height": 200
                                },
                                {
                                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-vierkant.jpg",
                                    "width": 1080,
                                    "height": 720
                                }
                            ],
                            "white_background": true
                        },
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 318,
                            "name": "Choose a burger",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 2,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 124,
                "name": "Makes Scents",
                "address": {
                    "street": "Lecocqring",
                    "nr": "18",
                    "zipcode": "6600",
                    "city": "Herstal",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 800,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1600,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 2497,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 2497,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 2497,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale",
                "bancontact",
                "creditcard",
                "ideal",
                "sofort",
                "giropay",
                "cartes_bancaires",
                "eps_uberweisung"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": true
    },
    "suggestions": []
}

Example response 46 Product with offer discount

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

{
    "cart": [
        {
            "product": {
                "id": 317,
                "name": "Krokante sandwich",
                "price": {
                    "value": 1234,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1093,
                        "name": "Yes",
                        "price_change": {
                            "value": 459,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 311,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1096,
                        "name": "Yes please",
                        "price_change": {
                            "value": 173,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 312,
                            "name": "Please select an option",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 123,
                "name": "Dough must go on",
                "address": {
                    "street": "Martensweg",
                    "nr": "58",
                    "zipcode": "4601",
                    "city": "Lommel",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 1866,
                    "currency": "EUR"
                },
                "price": {
                    "value": 18660,
                    "currency": "EUR"
                }
            },
            "discount_prices": {
                "unit_price": {
                    "value": 1679,
                    "currency": "EUR"
                },
                "price": {
                    "value": 16794,
                    "currency": "EUR"
                }
            },
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 18660,
                "currency": "EUR"
            },
            "discount": {
                "value": -1866,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 16794,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 16794,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [
            {
                "name": "Black Friday",
                "description": "4158",
                "percentage": 0,
                "fixed": 0,
                "type": "offer"
            }
        ],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 47 Category with offer discount is currently ignored

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

{
    "cart": [
        {
            "product": {
                "id": 316,
                "name": "Kampioenenbrood",
                "price": {
                    "value": 1234,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-paardevlees.jpg",
                                "width": 250,
                                "height": 223
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-paardevlees.jpg",
                                "width": 1080,
                                "height": 962
                            }
                        ],
                        "white_background": false
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1089,
                        "name": "Yes please",
                        "price_change": {
                            "value": 537,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 309,
                            "name": "Do you want a picture on your cake?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1091,
                        "name": "No thank you",
                        "price_change": {
                            "value": 405,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 310,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 123,
                "name": "Dough must go on",
                "address": {
                    "street": "Martensweg",
                    "nr": "58",
                    "zipcode": "4601",
                    "city": "Lommel",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 2176,
                    "currency": "EUR"
                },
                "price": {
                    "value": 21760,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 21760,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 21760,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 21760,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 48 Product price with offer discount

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

{
    "cart": [
        {
            "product": {
                "id": 318,
                "name": "Tijger pistolet",
                "price": {
                    "value": 1234,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "MULTIPLE_CHOICE",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1098,
                        "name": "Yes",
                        "price_change": {
                            "value": 555,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 313,
                            "name": "Extra baked?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1100,
                        "name": "Yes",
                        "price_change": {
                            "value": 976,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 314,
                            "name": "Do you want a picture on your cake?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1102,
                        "name": "Yes please",
                        "price_change": {
                            "value": 577,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 315,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": {
                "id": 173,
                "name": "6 persons",
                "price": {
                    "value": 1234,
                    "currency": "EUR"
                }
            },
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 123,
                "name": "Dough must go on",
                "address": {
                    "street": "Martensweg",
                    "nr": "58",
                    "zipcode": "4601",
                    "city": "Lommel",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 3342,
                    "currency": "EUR"
                },
                "price": {
                    "value": 33420,
                    "currency": "EUR"
                }
            },
            "discount_prices": {
                "unit_price": {
                    "value": 3008,
                    "currency": "EUR"
                },
                "price": {
                    "value": 30078,
                    "currency": "EUR"
                }
            },
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 33420,
                "currency": "EUR"
            },
            "discount": {
                "value": -3342,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 30078,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 30078,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [
            {
                "name": "Black Friday",
                "description": "4158",
                "percentage": 0,
                "fixed": 0,
                "type": "offer"
            }
        ],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 49 Product price without offer discount

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

{
    "cart": [
        {
            "product": {
                "id": 318,
                "name": "Tijger pistolet",
                "price": {
                    "value": 1234,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-wit-pannen.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-wit-pannen.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "MULTIPLE_CHOICE",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1098,
                        "name": "Yes",
                        "price_change": {
                            "value": 555,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 313,
                            "name": "Extra baked?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1100,
                        "name": "Yes",
                        "price_change": {
                            "value": 976,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 314,
                            "name": "Do you want a picture on your cake?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1102,
                        "name": "Yes please",
                        "price_change": {
                            "value": 577,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 315,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": {
                "id": 174,
                "name": "3 persons",
                "price": {
                    "value": 1234,
                    "currency": "EUR"
                }
            },
            "persons": 0,
            "amount": 10,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 123,
                "name": "Dough must go on",
                "address": {
                    "street": "Martensweg",
                    "nr": "58",
                    "zipcode": "4601",
                    "city": "Lommel",
                    "country": "BE",
                    "position": {
                        "latitude": 50.8503396,
                        "longitude": 4.3517103
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 3342,
                    "currency": "EUR"
                },
                "price": {
                    "value": 33420,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 33420,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 33420,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 33420,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": false,
            "latches": []
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}

Example response 50 Latch items

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

{
    "cart": [
        {
            "product": {
                "id": 331,
                "name": "Sandwich",
                "price": {
                    "value": 3966,
                    "currency": "EUR"
                },
                "images": [
                    {
                        "resolutions": [
                            {
                                "src": "https://bakeronline.be/uploads/tests/250x200/product-creme-bloemsuiker.jpg",
                                "width": 300,
                                "height": 200
                            },
                            {
                                "src": "https://bakeronline.be/uploads/tests/1080x720/product-creme-bloemsuiker.jpg",
                                "width": 1080,
                                "height": 720
                            }
                        ],
                        "white_background": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [],
            "product_price": null,
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "shop": {
                "id": 125,
                "name": "Slow Dough",
                "address": {
                    "street": "Michielsweg",
                    "nr": "58",
                    "zipcode": "5590",
                    "city": "Torhout",
                    "country": "BE",
                    "position": {
                        "latitude": 51.05,
                        "longitude": 3.71667
                    }
                },
                "allow_comments": true,
                "currency": "EUR"
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 3966,
                    "currency": "EUR"
                },
                "price": {
                    "value": 3966,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ],
    "cart_config": {
        "target_price": false,
        "prices": {
            "price": {
                "value": 3966,
                "currency": "EUR"
            },
            "discount": {
                "value": 0,
                "currency": "EUR"
            },
            "price_with_discount": {
                "value": 3966,
                "currency": "EUR"
            },
            "warranty": {
                "value": 0,
                "currency": "EUR"
            },
            "delivery_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "invoice_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "sms_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "transaction_cost": {
                "value": 0,
                "currency": "EUR"
            },
            "price_to_pay": {
                "value": 3966,
                "currency": "EUR"
            }
        },
        "payment": {
            "methods": [
                "point_of_sale"
            ],
            "messages": []
        },
        "takeout": {
            "allowed": true
        },
        "delivery": {
            "allowed": true,
            "use_intervals": false,
            "messages": []
        },
        "latch": {
            "allowed": true,
            "latches": [
                {
                    "id": 14,
                    "address": {
                        "street": "Claessensboulevard",
                        "nr": "32",
                        "zipcode": "3960",
                        "city": "Waver",
                        "country": "BE",
                        "position": {
                            "latitude": 51.05,
                            "longitude": 3.71667
                        }
                    },
                    "name": "Ethan Heymans"
                }
            ]
        },
        "checkout_method_messages": [],
        "warranty": false,
        "discounts": [],
        "allow_combined_cart": false,
        "invoice": {
            "messages": []
        },
        "allow_discount_codes": false
    },
    "suggestions": []
}
1.5.0 stable