CartItemSuggestionGroup

Groups CartItemSuggestions with a title

Field Type Description
name String Name of the group
suggestions [CartItemSuggestion] Array of CartItemSuggestion

Examples

Request

When used inside a request.

Example 1

{
    "name": "...",
    "suggestions": [
        {
            "name": "...",
            "description": "...",
            "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
            },
            "price_change": {
                "value": 10,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 10,
                "currency": "EUR"
            },
            "item": {
                "amount": 16,
                "persons": 10,
                "gram": 12,
                "comment": "...",
                "product_id": 15,
                "product_price_id": 18,
                "shop_id": 13,
                "options": [
                    {
                        "option_id": 17,
                        "upload_id": 11
                    },
                    {
                        "option_id": 12,
                        "upload_id": 16
                    },
                    {
                        "option_id": 19,
                        "upload_id": 10
                    }
                ]
            }
        },
        {
            "name": "...",
            "description": "...",
            "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
            },
            "price_change": {
                "value": 16,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 12,
                "currency": "EUR"
            },
            "item": {
                "amount": 12,
                "persons": 13,
                "gram": 15,
                "comment": "...",
                "product_id": 14,
                "product_price_id": 15,
                "shop_id": 15,
                "options": [
                    {
                        "option_id": 19,
                        "upload_id": 13
                    },
                    {
                        "option_id": 14,
                        "upload_id": 13
                    },
                    {
                        "option_id": 11,
                        "upload_id": 16
                    }
                ]
            }
        },
        {
            "name": "...",
            "description": "...",
            "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
            },
            "price_change": {
                "value": 15,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 14,
                "currency": "EUR"
            },
            "item": {
                "amount": 12,
                "persons": 10,
                "gram": 18,
                "comment": "...",
                "product_id": 14,
                "product_price_id": 10,
                "shop_id": 12,
                "options": [
                    {
                        "option_id": 14,
                        "upload_id": 12
                    },
                    {
                        "option_id": 11,
                        "upload_id": 10
                    },
                    {
                        "option_id": 15,
                        "upload_id": 10
                    }
                ]
            }
        }
    ]
}

Response

When returned in a response.

Example 1

{
    "name": "...",
    "suggestions": [
        {
            "name": "...",
            "description": "...",
            "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
            },
            "price_change": {
                "value": 15,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 19,
                "currency": "EUR"
            },
            "item": {
                "amount": 18,
                "persons": 10,
                "gram": 16,
                "comment": "...",
                "product": {
                    "id": 19,
                    "name": "...",
                    "images": [
                        {
                            "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
                        },
                        {
                            "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
                        },
                        {
                            "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
                        }
                    ],
                    "price_type": "PER_UNIT",
                    "target_price": true,
                    "price": {
                        "value": 16,
                        "currency": "EUR"
                    }
                },
                "product_price": {
                    "id": 11,
                    "name": "...",
                    "price": {
                        "value": 14,
                        "currency": "EUR"
                    }
                },
                "calculated_prices": {
                    "unit_price": {
                        "value": 14,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 14,
                        "currency": "EUR"
                    }
                },
                "discount_prices": {
                    "unit_price": {
                        "value": 10,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 15,
                        "currency": "EUR"
                    }
                },
                "amount_free": 11,
                "shop": {
                    "id": 14,
                    "name": "Luciano Williamson",
                    "address": {
                        "street": "Sint-Denijslaan",
                        "nr": "96",
                        "zipcode": "9000",
                        "city": "Gent",
                        "country": "BE",
                        "position": {
                            "latitude": 1.54361,
                            "longitude": 0.45645
                        }
                    },
                    "allow_comments": true,
                    "currency": "EUR"
                },
                "options": [
                    {
                        "option": {
                            "id": 17,
                            "name": "...",
                            "price_change": {
                                "value": 10,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 15,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 12,
                            "url": "https://example.com"
                        }
                    },
                    {
                        "option": {
                            "id": 18,
                            "name": "...",
                            "price_change": {
                                "value": 11,
                                "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": 13,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 12,
                            "url": "https://example.com"
                        }
                    },
                    {
                        "option": {
                            "id": 11,
                            "name": "...",
                            "price_change": {
                                "value": 10,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 17,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 15,
                            "url": "https://example.com"
                        }
                    }
                ]
            }
        },
        {
            "name": "...",
            "description": "...",
            "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
            },
            "price_change": {
                "value": 19,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 12,
                "currency": "EUR"
            },
            "item": {
                "amount": 12,
                "persons": 18,
                "gram": 11,
                "comment": "...",
                "product": {
                    "id": 17,
                    "name": "...",
                    "images": [
                        {
                            "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
                        },
                        {
                            "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
                        },
                        {
                            "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
                        }
                    ],
                    "price_type": "PER_UNIT",
                    "target_price": true,
                    "price": {
                        "value": 12,
                        "currency": "EUR"
                    }
                },
                "product_price": {
                    "id": 10,
                    "name": "...",
                    "price": {
                        "value": 12,
                        "currency": "EUR"
                    }
                },
                "calculated_prices": {
                    "unit_price": {
                        "value": 11,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 11,
                        "currency": "EUR"
                    }
                },
                "discount_prices": {
                    "unit_price": {
                        "value": 16,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 15,
                        "currency": "EUR"
                    }
                },
                "amount_free": 12,
                "shop": {
                    "id": 14,
                    "name": "Mr. Hassan Mitchell",
                    "address": {
                        "street": "Sint-Denijslaan",
                        "nr": "96",
                        "zipcode": "9000",
                        "city": "Gent",
                        "country": "BE",
                        "position": {
                            "latitude": 1.54361,
                            "longitude": 0.45645
                        }
                    },
                    "allow_comments": true,
                    "currency": "EUR"
                },
                "options": [
                    {
                        "option": {
                            "id": 18,
                            "name": "...",
                            "price_change": {
                                "value": 11,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 17,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 12,
                            "url": "https://example.com"
                        }
                    },
                    {
                        "option": {
                            "id": 13,
                            "name": "...",
                            "price_change": {
                                "value": 10,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 12,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 18,
                            "url": "https://example.com"
                        }
                    },
                    {
                        "option": {
                            "id": 13,
                            "name": "...",
                            "price_change": {
                                "value": 14,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 19,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 15,
                            "url": "https://example.com"
                        }
                    }
                ]
            }
        },
        {
            "name": "...",
            "description": "...",
            "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
            },
            "price_change": {
                "value": 15,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 18,
                "currency": "EUR"
            },
            "item": {
                "amount": 15,
                "persons": 14,
                "gram": 13,
                "comment": "...",
                "product": {
                    "id": 19,
                    "name": "...",
                    "images": [
                        {
                            "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
                        },
                        {
                            "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
                        },
                        {
                            "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
                        }
                    ],
                    "price_type": "PER_UNIT",
                    "target_price": false,
                    "price": {
                        "value": 11,
                        "currency": "EUR"
                    }
                },
                "product_price": {
                    "id": 11,
                    "name": "...",
                    "price": {
                        "value": 14,
                        "currency": "EUR"
                    }
                },
                "calculated_prices": {
                    "unit_price": {
                        "value": 19,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 18,
                        "currency": "EUR"
                    }
                },
                "discount_prices": {
                    "unit_price": {
                        "value": 11,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 10,
                        "currency": "EUR"
                    }
                },
                "amount_free": 16,
                "shop": {
                    "id": 10,
                    "name": "Ignacio Blanda",
                    "address": {
                        "street": "Sint-Denijslaan",
                        "nr": "96",
                        "zipcode": "9000",
                        "city": "Gent",
                        "country": "BE",
                        "position": {
                            "latitude": 1.54361,
                            "longitude": 0.45645
                        }
                    },
                    "allow_comments": true,
                    "currency": "EUR"
                },
                "options": [
                    {
                        "option": {
                            "id": 13,
                            "name": "...",
                            "price_change": {
                                "value": 17,
                                "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": "...",
                            "optionset": {
                                "id": 15,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 16,
                            "url": "https://example.com"
                        }
                    },
                    {
                        "option": {
                            "id": 18,
                            "name": "...",
                            "price_change": {
                                "value": 10,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 18,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 17,
                            "url": "https://example.com"
                        }
                    },
                    {
                        "option": {
                            "id": 12,
                            "name": "...",
                            "price_change": {
                                "value": 18,
                                "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": false,
                            "code": "...",
                            "optionset": {
                                "id": 11,
                                "name": "...",
                                "code": "..."
                            }
                        },
                        "upload": {
                            "id": 13,
                            "url": "https://example.com"
                        }
                    }
                ]
            }
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.5.0 stable