Update a product

PATCH /company/products/@id

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
id Int The ID of the product you want to update

Body

Pass the following properties via application/json or form encoding in the body of the request.

Field Type Description
name [Language: String] Name of the product
description [Language: String] Description of the product
specialty Bool Whether this product is a specialty. Specialties are also displayed in a separate category and are highlighted with a star icon.
active Bool Inactive products are not visible in the webshop
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.
price_type PriceType A product has a price type that defines the price calculations and the way consumers can order the product.
price UInt Price of the product (cents). Please note that this value is ignored when price_type is MULTIPLE_CHOICE.
target_price Bool Is true when it's not possible to provide an exact price of this product when ordering (e.g. not exact weight possible). This option might deactive online payments for orders with this product (shop settings).
url_type String String enumarion of 'none', 'recipe', 'website'
url URL? Nullable. An URL field starting with http:// or https://
min_max company.MinMaxSummary The allowed amounts a customer is allowed to order of a product for amount / weight / persons
option_set_ids [Int] ID's of the option sets you want to assign to this product. You can alter the order by switching the position of the ID's
allergen_ids [Int]? Nullable. ID's of the allergens of this product. Set to null if you don't want to specify allergens. Only use an empty array when the product has no allergens. It is a subtle difference but it has legal consequences if you set this to the wrong value. You can find all the available allergen ID's here.
category_id Int The category ID of the product
seo company.SeoData Optional. Product page SEO metatags
price_look_up_code String? Optional. Nullable. A String value
code String? Optional. Nullable. A custom code. You can set this to your own code and use this field to map your products to Bakeronline products

Example request 1 Update all product fields

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 1386
{
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergen_ids": [
        1,
        4,
        6
    ],
    "price_look_up_code": "123",
    "price_type": "PER_UNIT",
    "price": 1200,
    "target_price": false,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    }
}

Example request 2 Update price

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 54
{
    "price_type": "PER_PERSON",
    "price": 12345
}

Example request 3 Update option sets of a product

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 88
{
    "option_set_ids": [
        8356,
        8357,
        8358,
        8359
    ]
}

Example request 4 Update option sets of a product to invalid values

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 106
{
    "option_set_ids": [
        8356,
        8357,
        8358,
        8359,
        99951656
    ]
}

Example request 5 Update code

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 33
{
    "code": "testproductcode"
}

Example request 6 Update price type

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 32
{
    "price_type": "PER_UNIT"
}

Example request 7 Update price type

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 34
{
    "price_type": "PER_PERSON"
}

Example request 8 Move to a different category

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 27
{
    "category_id": 4088
}

Example request 9 Move to an invalid category

PATCH /company/products/7107 HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 4b740c69ca3ca6419eb35f34c086c649db713638939e1993dc196cfb87ae2ec7caa85628c74fb1220abb354c9bb384be2be12ab96aa01cf4694c31d92389f990544b64151479942f79662ff5726f4e3b32d26814064181a3f862d4676b83fe48e81171bc
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 27
{
    "category_id": 4089
}

Response

Field Type Description
name [Language: String] Name of the product
description [Language: String] Description of the product
specialty Bool Whether this product is a specialty. Specialties are also displayed in a separate category and are highlighted with a star icon.
active Bool Inactive products are not visible in the webshop
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.
price_type PriceType A product has a price type that defines the price calculations and the way consumers can order the product.
price UInt Price of the product (cents). Please note that this value is ignored when price_type is MULTIPLE_CHOICE.
target_price Bool Is true when it's not possible to provide an exact price of this product when ordering (e.g. not exact weight possible). This option might deactive online payments for orders with this product (shop settings).
url_type String String enumarion of 'none', 'recipe', 'website'
url URL? Nullable. An URL field starting with http:// or https://
min_max company.MinMaxSummary The allowed amounts a customer is allowed to order of a product for amount / weight / persons
images [Image] Array of Image
product_prices [company.ProductPrice] Array of company.ProductPrice
option_sets [company.OptionSet.simple] Array of company.OptionSet.simple
id Int Id of the product
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).
category_id Int The category ID of the product
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
seo company.SeoData Optional. Product page SEO metatags

Example response 1 Update all product fields

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_UNIT",
    "price": 1200,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": null,
    "category_id": 4085,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8350,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 2 Update price

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_PERSON",
    "price": 12345,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": null,
    "category_id": 4085,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8350,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 3 Update option sets of a product

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_PERSON",
    "price": 12345,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": null,
    "category_id": 4085,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8356,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8357,
            "name": {
                "fr": "Do you want a bag?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8358,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8359,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 4 Update option sets of a product to invalid values

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

{
    "code": "invalid_field",
    "message": "The provided option_set_id does not belong to the company of the product or doesn't exist",
    "field": "option_set_ids.4"
}

Example response 5 Update code

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_PERSON",
    "price": 12345,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": "testproductcode",
    "category_id": 4085,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8356,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8357,
            "name": {
                "fr": "Do you want a bag?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8358,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8359,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 6 Update price type

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_UNIT",
    "price": 12345,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": "testproductcode",
    "category_id": 4085,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8356,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8357,
            "name": {
                "fr": "Do you want a bag?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8358,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8359,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 7 Update price type

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_PERSON",
    "price": 12345,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": "testproductcode",
    "category_id": 4085,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8356,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8357,
            "name": {
                "fr": "Do you want a bag?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8358,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8359,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 8 Move to a different category

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

{
    "id": 7107,
    "name": {
        "nl": "Brood",
        "en": "Bread",
        "fr": "Pain"
    },
    "description": {
        "nl": "Beschrijving",
        "en": "Description",
        "fr": "Description"
    },
    "specialty": false,
    "active": true,
    "only_order_in_store": false,
    "allergens": [
        {
            "id": 1,
            "name": "1319"
        },
        {
            "id": 4,
            "name": "1322"
        },
        {
            "id": 6,
            "name": "1324"
        }
    ],
    "price_look_up_code": "123",
    "price_type": "PER_PERSON",
    "price": 12345,
    "target_price": true,
    "url_type": "recipe",
    "url": "https://www.google.be",
    "min_max": {
        "amount": {
            "minimum": 1,
            "maximum": 100,
            "maximum_day": 200,
            "maximum_week": 400
        },
        "weight": {
            "minimum": 100,
            "maximum": 2012,
            "maximum_day": 10000,
            "maximum_week": 20000,
            "suggested": 200
        },
        "persons": {
            "minimum": 1,
            "maximum": 101
        }
    },
    "seo": {
        "title": {
            "nl": "testSeoTitle NL",
            "en": "testSeoTitle en",
            "fr": "testSeoTitle fr"
        },
        "description": {
            "nl": "testSeoDescr NL",
            "en": "testSeoDescr en",
            "fr": "testSeoDescr fr"
        },
        "url": {
            "nl": "product-nl",
            "en": "product-en",
            "fr": "product-fr"
        }
    },
    "code": "testproductcode",
    "category_id": 4088,
    "images": [
        {
            "resolutions": [
                {
                    "src": "https://bakeronline.be/uploads/tests/250x200/product-pistolet-maanzd.jpg",
                    "width": 250,
                    "height": 250
                },
                {
                    "src": "https://bakeronline.be/uploads/tests/1080x720/product-pistolet-maanzd.jpg",
                    "width": 1080,
                    "height": 1080
                }
            ],
            "white_background": false
        }
    ],
    "product_prices": [],
    "option_sets": [
        {
            "id": 8356,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8357,
            "name": {
                "fr": "Do you want a bag?"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8358,
            "name": {
                "fr": "Please select an option"
            },
            "allow_attachment": false,
            "code": null
        },
        {
            "id": 8359,
            "name": {
                "fr": "Do you want a picture on your cake?"
            },
            "allow_attachment": false,
            "code": null
        }
    ]
}

Example response 9 Move to an invalid category

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

{
    "code": "invalid_field",
    "message": "The provided category_id does not belong to the company of the product or doesn't exist",
    "field": "category_id"
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable