Share a category over different shops

POST /company/categories/@category_id/share

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Example request 1

POST /company/categories/@category_id/share HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5

Response

Field Type Description
name [Language: String] Translated category name
description [Language: String] Description of this category
active Bool A boolean value
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
products [company.Product.simple] Array of company.Product.simple
shops [company.Shop.simple] Array of company.Shop.simple
code String? Nullable. A custom code. You can set this to your own code and use this field to map your categories to Bakeronline categories
id Int ID of the category
banner Image? Nullable.
overview_image Image? Nullable.
seo company.SeoData Optional. The category's webpage search engine metatags

Example response 1

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

{
    "name": "Mr. Bret Donnelly IV",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": true,
    "only_order_in_store": false,
    "products": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 18,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 11,
                    "maximum": 14,
                    "maximum_day": 10,
                    "maximum_week": 11
                },
                "weight": {
                    "minimum": 16,
                    "maximum": 18,
                    "maximum_day": 14,
                    "maximum_week": 15,
                    "suggested": 10
                },
                "persons": {
                    "minimum": 14,
                    "maximum": 11
                }
            },
            "id": 12,
            "allergens": [
                {
                    "id": 18,
                    "name": "Milk"
                },
                {
                    "id": 12,
                    "name": "Sesame"
                },
                {
                    "id": 16,
                    "name": "Peanut"
                }
            ],
            "category_id": 13,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Et sit mollitia ut minus perspiciatis amet quae et."
                },
                "description": {
                    "en": "Error ut rerum quis maiores aut voluptatem reprehenderit. Doloremque facere quos tempore. Impedit porro fugit et aut. Odit tenetur recusandae at voluptatem animi nulla velit voluptatem."
                },
                "url": {
                    "en": "http://www.fritsch.org/ut-ea-qui-enim-dolores-non-quibusdam"
                }
            },
            "origin": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "ingredients": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "temperature_type": "any",
            "warranty_type": "none",
            "warranty_price": 12,
            "stock": {
                "soldout": true,
                "amount": 13,
                "soldoutUntil": "2019-01-31 12:00"
            },
            "daysavailable": [
                11,
                17,
                10
            ],
            "upfront": {
                "upfront_use_default": false,
                "upfront_type": "days",
                "upfront_days": 18,
                "upfront_time": "12:00",
                "upfront_hours": 16,
                "upfront_minutes": 16
            },
            "use_pickup_after": false,
            "pickup_after": "12:00",
            "use_pickup_before": true,
            "pickup_before": "12:00",
            "related_products": [
                11,
                17,
                11
            ]
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 11,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 13,
                    "maximum": 11,
                    "maximum_day": 15,
                    "maximum_week": 14
                },
                "weight": {
                    "minimum": 14,
                    "maximum": 15,
                    "maximum_day": 13,
                    "maximum_week": 13,
                    "suggested": 13
                },
                "persons": {
                    "minimum": 13,
                    "maximum": 17
                }
            },
            "id": 14,
            "allergens": [
                {
                    "id": 11,
                    "name": "Lupine"
                },
                {
                    "id": 15,
                    "name": "Mustard"
                },
                {
                    "id": 17,
                    "name": "Fish"
                }
            ],
            "category_id": 17,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Aperiam ut laboriosam totam sed sed exercitationem dolorum."
                },
                "description": {
                    "en": "Adipisci fuga aperiam et distinctio maxime deserunt. Quaerat et saepe illo et voluptatem. Commodi occaecati quia est et animi numquam."
                },
                "url": {
                    "en": "http://skiles.com/quasi-laudantium-quisquam-vel-deleniti-sunt-non-earum.html"
                }
            },
            "origin": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "ingredients": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "temperature_type": "any",
            "warranty_type": "none",
            "warranty_price": 15,
            "stock": {
                "soldout": true,
                "amount": 13,
                "soldoutUntil": "2019-01-31 12:00"
            },
            "daysavailable": [
                17,
                19,
                10
            ],
            "upfront": {
                "upfront_use_default": true,
                "upfront_type": "days",
                "upfront_days": 15,
                "upfront_time": "12:00",
                "upfront_hours": 13,
                "upfront_minutes": 17
            },
            "use_pickup_after": false,
            "pickup_after": "12:00",
            "use_pickup_before": false,
            "pickup_before": "12:00",
            "related_products": [
                14,
                12,
                19
            ]
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 13,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 11,
                    "maximum": 17,
                    "maximum_day": 17,
                    "maximum_week": 18
                },
                "weight": {
                    "minimum": 18,
                    "maximum": 12,
                    "maximum_day": 16,
                    "maximum_week": 11,
                    "suggested": 12
                },
                "persons": {
                    "minimum": 15,
                    "maximum": 14
                }
            },
            "id": 17,
            "allergens": [
                {
                    "id": 13,
                    "name": "Soy"
                },
                {
                    "id": 19,
                    "name": "Mollusc"
                },
                {
                    "id": 15,
                    "name": "Soy"
                }
            ],
            "category_id": 18,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Earum quia aliquam sapiente excepturi est."
                },
                "description": {
                    "en": "Perferendis eius sint in reiciendis rem atque quia. Rerum omnis laudantium blanditiis adipisci qui ratione atque."
                },
                "url": {
                    "en": "http://www.bernhard.com/"
                }
            },
            "origin": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "ingredients": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "temperature_type": "any",
            "warranty_type": "none",
            "warranty_price": 19,
            "stock": {
                "soldout": true,
                "amount": 16,
                "soldoutUntil": "2019-01-31 12:00"
            },
            "daysavailable": [
                16,
                11,
                11
            ],
            "upfront": {
                "upfront_use_default": true,
                "upfront_type": "days",
                "upfront_days": 18,
                "upfront_time": "12:00",
                "upfront_hours": 19,
                "upfront_minutes": 17
            },
            "use_pickup_after": true,
            "pickup_after": "12:00",
            "use_pickup_before": false,
            "pickup_before": "12:00",
            "related_products": [
                15,
                17,
                16
            ]
        }
    ],
    "shops": [
        {
            "name": "Marco Kutch DVM",
            "active": true,
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE",
                "position": {
                    "latitude": 1.54361,
                    "longitude": 0.45645
                }
            },
            "allow_comments": false,
            "allow_orders": true,
            "delivery_use_intervals": true,
            "allow_invoices": true,
            "allow_order_comments": true,
            "allow_product_comments": true,
            "takeout_use_intervals": true,
            "allow_order_messages": true,
            "id": 14,
            "avatar": {
                "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": 11,
                "white_background": true
            },
            "banner": {
                "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": 19,
                "white_background": true
            },
            "url": "..."
        },
        {
            "name": "Rubye Ritchie",
            "active": false,
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE",
                "position": {
                    "latitude": 1.54361,
                    "longitude": 0.45645
                }
            },
            "allow_comments": true,
            "allow_orders": true,
            "delivery_use_intervals": true,
            "allow_invoices": false,
            "allow_order_comments": false,
            "allow_product_comments": true,
            "takeout_use_intervals": false,
            "allow_order_messages": true,
            "id": 17,
            "avatar": {
                "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": 11,
                "white_background": false
            },
            "banner": {
                "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": 10,
                "white_background": false
            },
            "url": "..."
        },
        {
            "name": "Rosina Rempel",
            "active": false,
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE",
                "position": {
                    "latitude": 1.54361,
                    "longitude": 0.45645
                }
            },
            "allow_comments": true,
            "allow_orders": false,
            "delivery_use_intervals": false,
            "allow_invoices": true,
            "allow_order_comments": false,
            "allow_product_comments": false,
            "takeout_use_intervals": false,
            "allow_order_messages": true,
            "id": 16,
            "avatar": {
                "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": false
            },
            "banner": {
                "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
            },
            "url": "..."
        }
    ],
    "code": "...",
    "id": 17,
    "banner": {
        "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": false
    },
    "overview_image": {
        "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": 19,
        "white_background": true
    },
    "seo": {
        "title": {
            "en": "Reiciendis harum error est sit ipsam velit sint veniam qui."
        },
        "description": {
            "en": "Tempore aliquam nisi aut corrupti incidunt et quia. Unde cum sed labore ipsum rerum voluptas. Dolores in expedita nisi necessitatibus iusto. Error molestias sequi ipsa dolores."
        },
        "url": {
            "en": "http://www.streich.com/incidunt-ad-laboriosam-omnis.html"
        }
    }
}
This is a development version Do not use this version in production
1.10.0 development