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": 12,
    "upload_id": 12
}

Response

When returned in a response.

Example 1

{
    "option": {
        "id": 12,
        "name": "string",
        "price_change": {
            "value": 12,
            "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": true
        },
        "require_image": true,
        "code": "string",
        "optionset": {
            "id": 12,
            "name": "string",
            "code": "string"
        }
    },
    "upload": {
        "id": 12,
        "url": "https://example.com"
    }
}
1.5.0 stable