Return all favourites the current user has in a shop

GET /shops/@shop/favourites

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
shop Int An integer value

Example request 1 Return all favourites without inactive categories and products

GET /shops/139/favourites HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer e58a5509cf4f62dc21bfb402e7aa3a11fe9b85fb96af1beade3395bcbfbcc8eaf9c159a21ba7156351b5f69da95fc86efca848df6b7576737aee5fd07fa1ae517f7029916da63996357b1301edf76862c9c2b4d5d36ffa4541b040400296ab426c050bcc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Array of Product.detailed: [Product.detailed]

Product.detailed

Field Type Description
id Int Id of the product
name String Name of the product (translated)
images [Image] Array of Image
price_type PriceType A product has a price type that defines the price calculations and the way consumers can order the product.
target_price Bool Is true when the price of the product can change on takeout (e.g. not exact weight)
price Price Price of the product (cents). It only makes sense to use this property when price_type is not multiple choice. Please also check if the shop where you want to order has an offer with a discount for this product available.
subtitle String? Nullable. Important text you need to display under the product name
description String Description of the product (translated)
allergens [Allergen]? Nullable. The allergens of this product. An empty array means no allergens. Null means no allergens specified (= can have allergens, ask in shop)
url URL? Nullable. An URL field starting with http:// or https://
url_type String String enumarion of 'none', 'recipe', 'website'
specialty Bool A boolean value
favourite Bool? Nullable. A boolean value
product_prices [ProductPrice.detailed] Array of ProductPrice.detailed
optionsets [OptionSet.detailed] Array of OptionSet.detailed
min_max MinMaxSummary An overview of the minimum and maximum values for all amount types.
info [Message] A list of messages with information you need to display on the product page.
offer OfferItem? Nullable. Specificies where a discount should get appllied. A shop can give a complete category a discount, or only a certain product, or only a fixed product price. When calculating the discount, always round the price to 1 cent before multiplying it with an amount, persons or kilograms.

Example response 1 Return all favourites without inactive categories and products

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

[
    {
        "id": 374,
        "name": "Chocoladebroodje",
        "price": {
            "value": 7700,
            "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_KILOGRAM",
        "target_price": true,
        "subtitle": null,
        "description": "Random product description",
        "allergens": [
            {
                "id": 1,
                "name": "1319"
            },
            {
                "id": 2,
                "name": "1320"
            },
            {
                "id": 4,
                "name": "1322"
            },
            {
                "id": 10,
                "name": "1328"
            },
            {
                "id": 11,
                "name": "1329"
            },
            {
                "id": 12,
                "name": "1330"
            },
            {
                "id": 14,
                "name": "1332"
            }
        ],
        "url": "http://www.janssens.net/recusandae-repudiandae-quisquam-sit-velit",
        "url_type": "website",
        "specialty": false,
        "favourite": true,
        "product_prices": [],
        "optionsets": [
            {
                "id": 386,
                "name": "Please select an option",
                "code": null,
                "options": [
                    {
                        "id": 1353,
                        "name": "No",
                        "price_change": {
                            "value": 460,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1354,
                        "name": "Yes",
                        "price_change": {
                            "value": 613,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    }
                ]
            }
        ],
        "min_max": {
            "amount": {
                "suggested": 1,
                "minimum": 1,
                "maximum": null
            },
            "weight": {
                "suggested": 100,
                "minimum": 1,
                "maximum": null
            },
            "persons": {
                "suggested": 1,
                "minimum": 1,
                "maximum": null
            }
        },
        "info": [
            {
                "name": "description",
                "title": "3879",
                "text": "Random product description",
                "type": "PLAIN"
            },
            {
                "name": "availability-takeout",
                "title": "6736",
                "text": "<p>3841</p>",
                "type": "HTML"
            },
            {
                "name": "availability-delivery",
                "title": "5674",
                "text": "<p>3841</p>",
                "type": "HTML"
            },
            {
                "name": "ingredients",
                "title": "3881",
                "text": "A list of ingredients here",
                "type": "PLAIN"
            },
            {
                "name": "allergens",
                "title": "3882",
                "text": "3883",
                "type": "PLAIN"
            }
        ],
        "offer": {
            "type": "percentage",
            "x": null,
            "y": null,
            "percentage": 1000,
            "minimum": null,
            "offer": {
                "id": 14,
                "name": "Black Friday"
            }
        }
    },
    {
        "id": 375,
        "name": "Mini worstje (1 stuk op stokje)",
        "price": {
            "value": 7833,
            "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,
        "subtitle": null,
        "description": "",
        "allergens": [
            {
                "id": 2,
                "name": "1320"
            },
            {
                "id": 4,
                "name": "1322"
            },
            {
                "id": 5,
                "name": "1323"
            },
            {
                "id": 7,
                "name": "1325"
            },
            {
                "id": 10,
                "name": "1328"
            },
            {
                "id": 11,
                "name": "1329"
            },
            {
                "id": 13,
                "name": "1331"
            },
            {
                "id": 14,
                "name": "1332"
            },
            {
                "id": 15,
                "name": "1333"
            }
        ],
        "url": "https://raes.net/sunt-ut-sit-vitae-dolores-nesciunt.html",
        "url_type": "recipe",
        "specialty": false,
        "favourite": true,
        "product_prices": [
            {
                "id": 211,
                "name": "5 persons",
                "price": {
                    "value": 20,
                    "currency": "EUR"
                },
                "offer": {
                    "type": "percentage",
                    "x": null,
                    "y": null,
                    "percentage": 2000,
                    "minimum": null,
                    "offer": {
                        "id": 14,
                        "name": "Black Friday"
                    }
                }
            },
            {
                "id": 212,
                "name": "6 persons",
                "price": {
                    "value": 25,
                    "currency": "EUR"
                },
                "offer": null
            },
            {
                "id": 213,
                "name": "4 persons",
                "price": {
                    "value": 47,
                    "currency": "EUR"
                },
                "offer": null
            }
        ],
        "optionsets": [
            {
                "id": 387,
                "name": "Do you want your bread sliced?",
                "code": null,
                "options": [
                    {
                        "id": 1355,
                        "name": "No thank you",
                        "price_change": {
                            "value": 756,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1356,
                        "name": "Yes please",
                        "price_change": {
                            "value": 268,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1357,
                        "name": "Yes please",
                        "price_change": {
                            "value": 866,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1358,
                        "name": "Yes please",
                        "price_change": {
                            "value": 894,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1359,
                        "name": "No thank you",
                        "price_change": {
                            "value": 886,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    }
                ]
            },
            {
                "id": 388,
                "name": "Extra baked?",
                "code": null,
                "options": [
                    {
                        "id": 1360,
                        "name": "Yes",
                        "price_change": {
                            "value": 480,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1361,
                        "name": "No thank you",
                        "price_change": {
                            "value": 16,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1362,
                        "name": "No thank you",
                        "price_change": {
                            "value": 467,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1363,
                        "name": "No thank you",
                        "price_change": {
                            "value": 178,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1364,
                        "name": "Yes",
                        "price_change": {
                            "value": 626,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    }
                ]
            },
            {
                "id": 389,
                "name": "Do you want your bread sliced?",
                "code": null,
                "options": [
                    {
                        "id": 1365,
                        "name": "Yes please",
                        "price_change": {
                            "value": 526,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1366,
                        "name": "No",
                        "price_change": {
                            "value": 924,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1367,
                        "name": "Yes please",
                        "price_change": {
                            "value": 130,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    }
                ]
            },
            {
                "id": 383,
                "name": "Do you want your bread sliced?",
                "code": null,
                "options": [
                    {
                        "id": 1343,
                        "name": "Yes please",
                        "price_change": {
                            "value": 918,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1344,
                        "name": "Yes please",
                        "price_change": {
                            "value": 12,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1345,
                        "name": "No thank you",
                        "price_change": {
                            "value": 524,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1346,
                        "name": "Yes please",
                        "price_change": {
                            "value": 723,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    },
                    {
                        "id": 1347,
                        "name": "No",
                        "price_change": {
                            "value": 403,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null
                    }
                ]
            }
        ],
        "min_max": {
            "amount": {
                "suggested": 1,
                "minimum": 1,
                "maximum": null
            },
            "weight": {
                "suggested": 100,
                "minimum": 1,
                "maximum": null
            },
            "persons": {
                "suggested": 1,
                "minimum": 1,
                "maximum": null
            }
        },
        "info": [
            {
                "name": "availability-takeout",
                "title": "6736",
                "text": "<p>3841</p>",
                "type": "HTML"
            },
            {
                "name": "availability-delivery",
                "title": "5674",
                "text": "<p>3841</p>",
                "type": "HTML"
            },
            {
                "name": "allergens",
                "title": "3882",
                "text": "3883",
                "type": "PLAIN"
            }
        ],
        "offer": null
    }
]
1.5.0 stable