Fields when send to the api inside a request.
Field | Type | Description |
---|---|---|
favourite | Bool | A boolean value |
category | Dictionary | Optional. A dictionary with fields |
origin | String | Optional. Translated origin of the product |
ingredients | String | Optional. Translated ingredients of the product |
nutrients | [Nutrient] | Optional. Nutrient values |
Fields when returned by the api in a response.
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. |
only_order_in_store | Bool | Whether this product can only get ordered in the store with a separate UI for the shop employees, and not in the public webshop. Note that you will never receive products with this property set to true if you are not authorized. |
price_look_up_code | String? | Nullable. A String value |
code | String? | Nullable. A custom code. You can set this to your own code and use this field to map your products to Bakeronline products |
category | Dictionary | Optional. A dictionary with fields |
origin | String | Optional. Translated origin of the product |
ingredients | String | Optional. Translated ingredients of the product |
nutrients | [Nutrient] | Optional. Nutrient values |
When used inside a request.
{
"favourite": false,
"category": {
"id": 12,
"name": "..."
},
"origin": "...",
"ingredients": "...",
"nutrients": [
{
"type": "FAT",
"amount": 9.67,
"label": "..."
},
{
"type": "FAT",
"amount": 9.67,
"label": "..."
},
{
"type": "FAT",
"amount": 9.67,
"label": "..."
}
]
}
When returned in a response.
{
"id": 13,
"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
}
],
"file_id": 13,
"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
}
],
"file_id": 15,
"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
}
],
"file_id": 17,
"white_background": true
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 17,
"currency": "EUR"
},
"only_order_in_store": true,
"price_look_up_code": "...",
"code": "...",
"category": {
"id": 16,
"name": "..."
},
"origin": "...",
"ingredients": "...",
"nutrients": [
{
"type": "FAT",
"amount": 9.67,
"label": "..."
},
{
"type": "FAT",
"amount": 9.67,
"label": "..."
},
{
"type": "FAT",
"amount": 9.67,
"label": "..."
}
]
}