Get all the option sets that belong to a company

GET /company/companies/@id/optionsets

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 Company ID. Return only option sets of this company

Example request 1

GET /company/companies/10/optionsets HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.1.0
Accept-Language: en-US,en;q=0.5

Response

Array of company.OptionSet.detailed: [company.OptionSet.detailed]

company.OptionSet.detailed

Field Type Description
name [Language: String] Name of the option set
allow_attachment Bool Allow the attachment of a picture to this option set
options [company.Option] Array of company.Option
id Int Id of the option set

Example response 1

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

[
    {
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "allow_attachment": true,
        "options": [
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 11,
                "id": 15,
                "order": 19
            },
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 18,
                "id": 12,
                "order": 18
            },
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 12,
                "id": 17,
                "order": 14
            }
        ],
        "id": 15
    },
    {
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "allow_attachment": false,
        "options": [
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 12,
                "id": 11,
                "order": 18
            },
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 14,
                "id": 17,
                "order": 13
            },
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 10,
                "id": 11,
                "order": 12
            }
        ],
        "id": 18
    },
    {
        "name": {
            "nl": "...",
            "en": "...",
            "fr": "..."
        },
        "allow_attachment": false,
        "options": [
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 19,
                "id": 16,
                "order": 14
            },
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 18,
                "id": 19,
                "order": 12
            },
            {
                "name": {
                    "nl": "...",
                    "en": "...",
                    "fr": "..."
                },
                "price_change": 14,
                "id": 19,
                "order": 10
            }
        ],
        "id": 11
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.1.0 stable