GET /shops/@shop/favourites
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
shop | Int | An integer value |
GET /shops/11/favourites HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.3.0
Accept-Language: en-US,en;q=0.5
Array of 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. |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 21676
[
{
"id": 10,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": true,
"price": {
"value": 12,
"currency": "EUR"
},
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 16,
"name": "Nuts"
},
{
"id": 17,
"name": "Celery"
},
{
"id": 11,
"name": "Egg"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": false,
"favourite": false,
"product_prices": [
{
"id": 19,
"name": "...",
"price": {
"value": 17,
"currency": "EUR"
}
},
{
"id": 14,
"name": "...",
"price": {
"value": 10,
"currency": "EUR"
}
},
{
"id": 18,
"name": "...",
"price": {
"value": 14,
"currency": "EUR"
}
}
],
"optionsets": [
{
"id": 12,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 10,
"name": "...",
"price_change": {
"value": 14,
"currency": "EUR"
}
},
{
"id": 18,
"name": "...",
"price_change": {
"value": 16,
"currency": "EUR"
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
}
}
]
},
{
"id": 11,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 15,
"name": "...",
"price_change": {
"value": 13,
"currency": "EUR"
}
},
{
"id": 13,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
}
},
{
"id": 17,
"name": "...",
"price_change": {
"value": 12,
"currency": "EUR"
}
}
]
},
{
"id": 19,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 13,
"name": "...",
"price_change": {
"value": 16,
"currency": "EUR"
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
}
},
{
"id": 17,
"name": "...",
"price_change": {
"value": 14,
"currency": "EUR"
}
}
]
}
],
"min_max": {
"amount": {
"minimum": 16,
"maximum": 16,
"suggested": 14
},
"weight": {
"minimum": 11,
"maximum": 12,
"suggested": 10
},
"persons": {
"minimum": 13,
"maximum": 13,
"suggested": 10
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
},
{
"id": 14,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": true,
"price": {
"value": 19,
"currency": "EUR"
},
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 19,
"name": "Egg"
},
{
"id": 14,
"name": "Nuts"
},
{
"id": 15,
"name": "Mustard"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": true,
"favourite": false,
"product_prices": [
{
"id": 18,
"name": "...",
"price": {
"value": 14,
"currency": "EUR"
}
},
{
"id": 17,
"name": "...",
"price": {
"value": 10,
"currency": "EUR"
}
},
{
"id": 18,
"name": "...",
"price": {
"value": 18,
"currency": "EUR"
}
}
],
"optionsets": [
{
"id": 11,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 11,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
}
},
{
"id": 16,
"name": "...",
"price_change": {
"value": 12,
"currency": "EUR"
}
},
{
"id": 19,
"name": "...",
"price_change": {
"value": 16,
"currency": "EUR"
}
}
]
},
{
"id": 19,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 17,
"name": "...",
"price_change": {
"value": 13,
"currency": "EUR"
}
},
{
"id": 19,
"name": "...",
"price_change": {
"value": 12,
"currency": "EUR"
}
},
{
"id": 15,
"name": "...",
"price_change": {
"value": 12,
"currency": "EUR"
}
}
]
},
{
"id": 13,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 18,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
}
},
{
"id": 15,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 13,
"currency": "EUR"
}
}
]
}
],
"min_max": {
"amount": {
"minimum": 15,
"maximum": 14,
"suggested": 11
},
"weight": {
"minimum": 12,
"maximum": 10,
"suggested": 16
},
"persons": {
"minimum": 14,
"maximum": 13,
"suggested": 14
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
},
{
"id": 19,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 11,
"currency": "EUR"
},
"subtitle": "...",
"description": "...",
"allergens": [
{
"id": 17,
"name": "Mollusc"
},
{
"id": 12,
"name": "Gluten"
},
{
"id": 18,
"name": "Nuts"
}
],
"url": "https://example.com",
"url_type": "none",
"specialty": false,
"favourite": true,
"product_prices": [
{
"id": 17,
"name": "...",
"price": {
"value": 14,
"currency": "EUR"
}
},
{
"id": 11,
"name": "...",
"price": {
"value": 12,
"currency": "EUR"
}
},
{
"id": 18,
"name": "...",
"price": {
"value": 15,
"currency": "EUR"
}
}
],
"optionsets": [
{
"id": 17,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 16,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
}
},
{
"id": 18,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
}
},
{
"id": 19,
"name": "...",
"price_change": {
"value": 19,
"currency": "EUR"
}
}
]
},
{
"id": 14,
"name": "...",
"allow_attachment": true,
"options": [
{
"id": 14,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
}
},
{
"id": 10,
"name": "...",
"price_change": {
"value": 15,
"currency": "EUR"
}
},
{
"id": 16,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
}
}
]
},
{
"id": 16,
"name": "...",
"allow_attachment": false,
"options": [
{
"id": 13,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
}
},
{
"id": 14,
"name": "...",
"price_change": {
"value": 13,
"currency": "EUR"
}
},
{
"id": 12,
"name": "...",
"price_change": {
"value": 11,
"currency": "EUR"
}
}
]
}
],
"min_max": {
"amount": {
"minimum": 17,
"maximum": 19,
"suggested": 12
},
"weight": {
"minimum": 17,
"maximum": 16,
"suggested": 15
},
"persons": {
"minimum": 14,
"maximum": 11,
"suggested": 17
}
},
"info": [
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
},
{
"name": "...",
"title": "...",
"text": "...",
"type": "HTML"
}
]
}
]