Get all the categories that belong to a company

GET /company/companies/@id/categories

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 Return all categories of the given company

Example request 1 Retrieve categories

GET /company/companies/2831/categories HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer e7a7bdd13e7fbb0426c61c5d0208001a09132a39d7de7f7f7ec8a0714e45e8016d326ffdc4c3bb0db2717a509cd0b51e4afab6e71a37c846c8c87532fe2c3051e4eeece9843a5d7ef1f27b8ec704af48255016c507928566ef668b9fb3bc1b78599c85eb
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Array of company.Category.simple: [company.Category.simple]

company.Category.simple

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
id Int ID of the category
banner Image? Nullable.
seo company.SeoData Optional. The category's webpage search engine metatags

Example response 1 Retrieve categories

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

[
    {
        "id": 3879,
        "name": {
            "nl": "DarkMagenta"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3880,
        "name": {
            "nl": "LightCoral"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3881,
        "name": {
            "nl": "MintCream"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3882,
        "name": {
            "nl": "Cyan"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3883,
        "name": {
            "nl": "LightGreen"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3886,
        "name": {
            "nl": "DarkOrchid"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3887,
        "name": {
            "nl": "IndianRed"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3888,
        "name": {
            "nl": "Purple"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3889,
        "name": {
            "nl": "Gold"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    },
    {
        "id": 3890,
        "name": {
            "nl": "DarkKhaki"
        },
        "description": {
            "nl": "This is a random description"
        },
        "banner": null,
        "active": true,
        "only_order_in_store": false,
        "seo": {
            "title": [],
            "description": [],
            "url": []
        }
    }
]
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable