Get all the options that belong to an option set

GET /company/optionsets/@id/options

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 Option set ID. Return only options of this option set

Example request 1 Retrieve options

GET /company/optionsets/493/options HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 345004f4ab714371f5ed8785485a8ca49cb2ad2192e5f4efcc62262f8f82a3387d48491b953eb74f722a27f4035c1be66e074dabf9e7105f68dea1862ed679174fe8bffd7ead1edee1cbd91974f0402c052d4bff6d1ecbc611c52b7f95d8b710631f214e
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

Array of company.Option: [company.Option]

company.Option

Field Type Description
name [Language: String] Name of the option
price_change Int Price change in cents. Positive for price increase, negative for discounts.
id Int ID of this option
code String? Nullable. Your own ID or key that you can associate with an option
order Int The options of a option set are sorted on the order property (descending). If you specify the same order for multiple option sets, the id of the option set is used. Setting the same order for all option sets is discouraged.

Example response 1 Retrieve options

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

[
    {
        "id": 1734,
        "name": {
            "nl": "Yes"
        },
        "price_change": 114,
        "code": null,
        "order": 1
    },
    {
        "id": 1735,
        "name": {
            "nl": "Yes"
        },
        "price_change": 466,
        "code": null,
        "order": 2
    },
    {
        "id": 1736,
        "name": {
            "nl": "Yes please"
        },
        "price_change": -488,
        "code": null,
        "order": 3
    },
    {
        "id": 1737,
        "name": {
            "nl": "No"
        },
        "price_change": -883,
        "code": null,
        "order": 4
    },
    {
        "id": 1738,
        "name": {
            "nl": "Yes please"
        },
        "price_change": 51,
        "code": null,
        "order": 5
    }
]
1.5.0 stable