CartItemOption

Request

Fields when send to the api inside a request.

Field Type Description
option_id Int An integer value
upload_id Int? Nullable. An integer value
amount Int Amount of this option that is selected. Only allowed if both option_set choose_amount and multiple_choice are true, else always set this to 1.

Response

Fields when returned by the api in a response.

Field Type Description
option Option.detailed
upload CartUpload? Nullable.
amount Int Amount of this option that is selected. Only allowed if both option_set choose_amount and multiple_choice are true, else always set this to 1.

Examples

Request

When used inside a request.

Example 1

{
    "option_id": 13,
    "upload_id": 16,
    "amount": 11
}

Response

When returned in a response.

Example 1

{
    "option": {
        "id": 15,
        "name": "...",
        "price_change": {
            "value": 16,
            "currency": "EUR"
        },
        "image": {
            "resolutions": [
                {
                    "src": "https://example.com",
                    "width": 600,
                    "height": 350
                },
                {
                    "src": "https://example.com",
                    "width": 600,
                    "height": 350
                },
                {
                    "src": "https://example.com",
                    "width": 600,
                    "height": 350
                }
            ],
            "white_background": false
        },
        "require_image": true,
        "code": "...",
        "price_calculation": "PER_PIECE",
        "optionset": {
            "id": 18,
            "name": "...",
            "code": "...",
            "multiple_choice": false,
            "choose_amount": false,
            "min_different_options": 16,
            "max_different_options": 16,
            "min_amount_options": 13,
            "max_amount_options": 12
        }
    },
    "upload": {
        "id": 11,
        "url": "https://example.com"
    },
    "amount": 16
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.8.0 stable