Share a category over different shops

POST /company/categories/@category_id/copy

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Example request 1

POST /company/categories/@category_id/copy HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.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: 17975

{
    "name": "Alanis Hahn",
    "description": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "active": false,
    "only_order_in_store": false,
    "products": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 17,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 17,
                    "maximum": 15,
                    "maximum_day": 17,
                    "maximum_week": 10
                },
                "weight": {
                    "minimum": 14,
                    "maximum": 10,
                    "maximum_day": 18,
                    "maximum_week": 13,
                    "suggested": 10
                },
                "persons": {
                    "minimum": 11,
                    "maximum": 18
                }
            },
            "id": 15,
            "allergens": [
                {
                    "id": 10,
                    "name": "Mollusc"
                },
                {
                    "id": 15,
                    "name": "Lactose"
                },
                {
                    "id": 14,
                    "name": "Lupine"
                }
            ],
            "category_id": 19,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Beatae qui eum ut aperiam id et assumenda."
                },
                "description": {
                    "en": "Voluptatem ut et ab odit et vel. Corrupti ut sed incidunt molestias aut eos ipsum consequatur."
                },
                "url": {
                    "en": "http://bins.com/"
                }
            },
            "origin": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "ingredients": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "temperature_type": "any",
            "warranty_type": "none",
            "warranty_price": 10,
            "stock": {
                "soldout": false,
                "amount": 11,
                "soldoutUntil": "2019-01-31 12:00"
            },
            "daysavailable": [
                13,
                10,
                18
            ],
            "upfront": {
                "upfront_use_default": true,
                "upfront_type": "days",
                "upfront_days": 11,
                "upfront_time": "12:00",
                "upfront_hours": 14,
                "upfront_minutes": 17
            },
            "use_pickup_after": false,
            "pickup_after": "12:00",
            "use_pickup_before": true,
            "pickup_before": "12:00",
            "related_products": [
                13,
                16,
                15
            ]
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": false,
            "active": true,
            "only_order_in_store": false,
            "price_type": "PER_UNIT",
            "price": 19,
            "target_price": true,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 15,
                    "maximum": 18,
                    "maximum_day": 14,
                    "maximum_week": 18
                },
                "weight": {
                    "minimum": 11,
                    "maximum": 19,
                    "maximum_day": 11,
                    "maximum_week": 18,
                    "suggested": 14
                },
                "persons": {
                    "minimum": 16,
                    "maximum": 14
                }
            },
            "id": 11,
            "allergens": [
                {
                    "id": 18,
                    "name": "Nuts"
                },
                {
                    "id": 12,
                    "name": "Celery"
                },
                {
                    "id": 15,
                    "name": "Nuts"
                }
            ],
            "category_id": 19,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Rerum illum animi fugiat consequatur nemo consequatur ad quasi aut quam."
                },
                "description": {
                    "en": "Ut quia voluptas in ipsa tempore blanditiis ut. Sint eos esse voluptatem temporibus."
                },
                "url": {
                    "en": "http://www.halvorson.com/magni-quo-architecto-fugit-ut.html"
                }
            },
            "origin": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "ingredients": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "temperature_type": "any",
            "warranty_type": "none",
            "warranty_price": 14,
            "stock": {
                "soldout": false,
                "amount": 12,
                "soldoutUntil": "2019-01-31 12:00"
            },
            "daysavailable": [
                13,
                15,
                12
            ],
            "upfront": {
                "upfront_use_default": true,
                "upfront_type": "days",
                "upfront_days": 18,
                "upfront_time": "12:00",
                "upfront_hours": 13,
                "upfront_minutes": 15
            },
            "use_pickup_after": false,
            "pickup_after": "12:00",
            "use_pickup_before": false,
            "pickup_before": "12:00",
            "related_products": [
                10,
                17,
                11
            ]
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "description": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "specialty": true,
            "active": false,
            "only_order_in_store": true,
            "price_type": "PER_UNIT",
            "price": 16,
            "target_price": false,
            "url_type": "none",
            "url": "https://example.com",
            "min_max": {
                "amount": {
                    "minimum": 18,
                    "maximum": 16,
                    "maximum_day": 14,
                    "maximum_week": 13
                },
                "weight": {
                    "minimum": 18,
                    "maximum": 18,
                    "maximum_day": 13,
                    "maximum_week": 19,
                    "suggested": 18
                },
                "persons": {
                    "minimum": 10,
                    "maximum": 14
                }
            },
            "id": 16,
            "allergens": [
                {
                    "id": 10,
                    "name": "Mustard"
                },
                {
                    "id": 10,
                    "name": "Celery"
                },
                {
                    "id": 13,
                    "name": "Egg"
                }
            ],
            "category_id": 14,
            "price_look_up_code": "...",
            "code": "...",
            "seo": {
                "title": {
                    "en": "Deserunt sunt odio accusamus dignissimos."
                },
                "description": {
                    "en": "Voluptas et tempore optio voluptatum. Accusantium aut asperiores soluta tenetur. Non laboriosam quas non iste dolores. Architecto quis facere laboriosam ratione modi quo."
                },
                "url": {
                    "en": "http://www.osinski.com/"
                }
            },
            "origin": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "ingredients": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "temperature_type": "any",
            "warranty_type": "none",
            "warranty_price": 16,
            "stock": {
                "soldout": true,
                "amount": 11,
                "soldoutUntil": "2019-01-31 12:00"
            },
            "daysavailable": [
                12,
                14,
                16
            ],
            "upfront": {
                "upfront_use_default": false,
                "upfront_type": "days",
                "upfront_days": 15,
                "upfront_time": "12:00",
                "upfront_hours": 12,
                "upfront_minutes": 11
            },
            "use_pickup_after": true,
            "pickup_after": "12:00",
            "use_pickup_before": true,
            "pickup_before": "12:00",
            "related_products": [
                13,
                14,
                13
            ]
        }
    ],
    "shops": [
        {
            "name": "Stephania Howe",
            "active": false,
            "address": {
                "street": "Sint-Denijslaan",
                "nr": "96",
                "zipcode": "9000",
                "city": "Gent",
                "country": "BE",
                "position": {
                    "latitude": 1.54361,
                    "longitude": 0.45645
                }
            },
            "allow_comments": false,
            "allow_orders": false,
            "delivery_use_intervals": false,
            "allow_invoices": true,
            "allow_order_comments": true,
            "allow_product_comments": true,
            "takeout_use_intervals": false,
            "allow_order_messages": false,
            "id": 15,
            "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": 18,
                "white_background": true
            },
            "url": "..."
        },
        {
            "name": "Austyn Ondricka",
            "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": true,
            "allow_invoices": false,
            "allow_order_comments": false,
            "allow_product_comments": true,
            "takeout_use_intervals": false,
            "allow_order_messages": true,
            "id": 13,
            "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": 10,
                "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": 12,
                "white_background": false
            },
            "url": "..."
        },
        {
            "name": "Libby Hamill",
            "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": false,
            "delivery_use_intervals": true,
            "allow_invoices": false,
            "allow_order_comments": true,
            "allow_product_comments": false,
            "takeout_use_intervals": false,
            "allow_order_messages": true,
            "id": 18,
            "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": 17,
                "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": false
            },
            "url": "..."
        }
    ],
    "code": "...",
    "id": 16,
    "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": 18,
        "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": 15,
        "white_background": false
    },
    "seo": {
        "title": {
            "en": "Illum placeat sed voluptas in odio."
        },
        "description": {
            "en": "Est voluptatibus et natus sed non. Quia ullam quo occaecati et. Dicta nobis sint qui accusantium qui doloremque dolorum. Voluptatum voluptas doloremque hic vitae."
        },
        "url": {
            "en": "https://www.walsh.org/amet-accusamus-iste-fugiat-fuga-adipisci-exercitationem-est-porro"
        }
    }
}
1.9.0 stable