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

Response

Fields when returned by the api in a response.

Field Type Description
option Option.detailed
upload CartUpload? Nullable.

Examples

Request

When used inside a request.

Example 1

{
    "option_id": 18,
    "upload_id": 15
}

Response

When returned in a response.

Example 1

{
    "option": {
        "id": 15,
        "name": "...",
        "price_change": {
            "value": 15,
            "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": "...",
        "optionset": {
            "id": 15,
            "name": "...",
            "code": "..."
        }
    },
    "upload": {
        "id": 17,
        "url": "https://example.com"
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.5.2 stable