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/8551/options HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 70291e9e31f6bd9f810619e1e65aa742ebb067b7f7d166996e69c97d2ed1071910d41e66f2c5c2ff24ec38274020d93c33095966da2a4c3a8cb62f8e465d4b1f69cb7864badcee3f093629c69f515692f4455e99e172f27b648c1c23dfed48ea0f7f1b0c
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: 801

[
    {
        "id": 30029,
        "name": {
            "nl": "Yes please"
        },
        "price_change": 102,
        "code": null,
        "order": 1
    },
    {
        "id": 30031,
        "name": {
            "nl": "No"
        },
        "price_change": 344,
        "code": null,
        "order": 2
    },
    {
        "id": 30032,
        "name": {
            "nl": "No"
        },
        "price_change": 587,
        "code": null,
        "order": 3
    },
    {
        "id": 30033,
        "name": {
            "nl": "No"
        },
        "price_change": -375,
        "code": null,
        "order": 4
    },
    {
        "id": 30034,
        "name": {
            "nl": "No thank you"
        },
        "price_change": 145,
        "code": null,
        "order": 5
    }
]
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable