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

{
    "name": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "allow_attachment": true,
    "options": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "price_change": 16,
            "order": 10,
            "price_calculation": "PER_PIECE",
            "code": "..."
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "price_change": 17,
            "order": 10,
            "price_calculation": "PER_PIECE",
            "code": "..."
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "price_change": 17,
            "order": 10,
            "price_calculation": "PER_PIECE",
            "code": "..."
        }
    ],
    "code": "..."
}

Response

When returned in a response.

Example 1

{
    "name": {
        "nl": "...",
        "en": "...",
        "fr": "..."
    },
    "allow_attachment": false,
    "options": [
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "price_change": 17,
            "id": 17,
            "code": "...",
            "order": 19,
            "price_calculation": "PER_PIECE"
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "price_change": 15,
            "id": 17,
            "code": "...",
            "order": 12,
            "price_calculation": "PER_PIECE"
        },
        {
            "name": {
                "nl": "...",
                "en": "...",
                "fr": "..."
            },
            "price_change": 19,
            "id": 10,
            "code": "...",
            "order": 13,
            "price_calculation": "PER_PIECE"
        }
    ],
    "id": 13,
    "code": "..."
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.6.0 stable