company.OptionSet.detailed

Request

Fields when send to the api inside a request.

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
code String? Optional. Nullable. Your own ID or key that you can associate with an option set

Response

Fields when returned by the api in a response.

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
code String? Nullable. Your own ID or key that you can associate with an option set

Examples

Request

When used inside a request.

Example 1

{
    "id": 9465,
    "name": {
        "nl": "Do you want a picture on your cake?"
    },
    "allow_attachment": false,
    "code": null,
    "options": [
        {
            "id": 33280,
            "name": {
                "nl": "No thank you"
            },
            "price_change": 421,
            "code": null,
            "order": 1
        },
        {
            "id": 33281,
            "name": {
                "nl": "No"
            },
            "price_change": 176,
            "code": null,
            "order": 2
        },
        {
            "id": 33282,
            "name": {
                "nl": "Yes please"
            },
            "price_change": 714,
            "code": null,
            "order": 3
        },
        {
            "id": 33283,
            "name": {
                "nl": "Yes"
            },
            "price_change": 517,
            "code": null,
            "order": 4
        }
    ]
}

Example 2

{
    "id": 9468,
    "name": {
        "nl": "Do you want a picture on your cake?"
    },
    "allow_attachment": false,
    "code": null,
    "options": [
        {
            "id": 33291,
            "name": {
                "nl": "Yes please"
            },
            "price_change": 947,
            "code": null,
            "order": 1
        },
        {
            "id": 33292,
            "name": {
                "nl": "No"
            },
            "price_change": 430,
            "code": null,
            "order": 2
        },
        {
            "id": 33293,
            "name": {
                "nl": "Yes please"
            },
            "price_change": 767,
            "code": null,
            "order": 3
        }
    ]
}

Response

When returned in a response.

Example 1

{
    "id": 9473,
    "name": {
        "nl": "Do you want a picture on your cake?"
    },
    "allow_attachment": false,
    "code": null,
    "options": [
        {
            "id": 33307,
            "name": {
                "nl": "No"
            },
            "price_change": 765,
            "code": null,
            "order": 1
        },
        {
            "id": 33308,
            "name": {
                "nl": "No"
            },
            "price_change": 748,
            "code": null,
            "order": 2
        },
        {
            "id": 33309,
            "name": {
                "nl": "No thank you"
            },
            "price_change": 360,
            "code": null,
            "order": 3
        },
        {
            "id": 33310,
            "name": {
                "nl": "No thank you"
            },
            "price_change": 955,
            "code": null,
            "order": 4
        },
        {
            "id": 33311,
            "name": {
                "nl": "Yes"
            },
            "price_change": 500,
            "code": null,
            "order": 5
        }
    ]
}

Example 2

{
    "id": 9475,
    "name": {
        "nl": "Extra baked?"
    },
    "allow_attachment": false,
    "code": null,
    "options": [
        {
            "id": 33313,
            "name": {
                "nl": "Yes"
            },
            "price_change": 38,
            "code": null,
            "order": 1
        },
        {
            "id": 33315,
            "name": {
                "nl": "No thank you"
            },
            "price_change": 341,
            "code": null,
            "order": 2
        },
        {
            "id": 33317,
            "name": {
                "nl": "Yes"
            },
            "price_change": 393,
            "code": null,
            "order": 3
        },
        {
            "id": 33319,
            "name": {
                "nl": "No thank you"
            },
            "price_change": 916,
            "code": null,
            "order": 4
        },
        {
            "id": 33320,
            "name": {
                "nl": "Yes"
            },
            "price_change": 791,
            "code": null,
            "order": 5
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable