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": false
            },
            "price_change": {
                "value": 14,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 11,
                "currency": "EUR"
            },
            "item": {
                "amount": 10,
                "persons": 11,
                "gram": 13,
                "comment": "...",
                "product_id": 19,
                "product_price_id": 13,
                "shop_id": 11,
                "option_ids": [
                    13,
                    17,
                    12
                ],
                "uploads": [
                    {
                        "upload": {
                            "id": 19,
                            "url": "https://example.com"
                        },
                        "optionset_id": 14
                    },
                    {
                        "upload": {
                            "id": 14,
                            "url": "https://example.com"
                        },
                        "optionset_id": 19
                    },
                    {
                        "upload": {
                            "id": 16,
                            "url": "https://example.com"
                        },
                        "optionset_id": 17
                    }
                ]
            }
        },
        {
            "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": false
            },
            "price_change": {
                "value": 16,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 14,
                "currency": "EUR"
            },
            "item": {
                "amount": 13,
                "persons": 18,
                "gram": 13,
                "comment": "...",
                "product_id": 12,
                "product_price_id": 14,
                "shop_id": 13,
                "option_ids": [
                    10,
                    18,
                    10
                ],
                "uploads": [
                    {
                        "upload": {
                            "id": 10,
                            "url": "https://example.com"
                        },
                        "optionset_id": 15
                    },
                    {
                        "upload": {
                            "id": 15,
                            "url": "https://example.com"
                        },
                        "optionset_id": 13
                    },
                    {
                        "upload": {
                            "id": 18,
                            "url": "https://example.com"
                        },
                        "optionset_id": 14
                    }
                ]
            }
        },
        {
            "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": false
            },
            "price_change": {
                "value": 12,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 15,
                "currency": "EUR"
            },
            "item": {
                "amount": 18,
                "persons": 18,
                "gram": 17,
                "comment": "...",
                "product_id": 14,
                "product_price_id": 14,
                "shop_id": 13,
                "option_ids": [
                    10,
                    13,
                    15
                ],
                "uploads": [
                    {
                        "upload": {
                            "id": 14,
                            "url": "https://example.com"
                        },
                        "optionset_id": 11
                    },
                    {
                        "upload": {
                            "id": 10,
                            "url": "https://example.com"
                        },
                        "optionset_id": 17
                    },
                    {
                        "upload": {
                            "id": 13,
                            "url": "https://example.com"
                        },
                        "optionset_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": 10,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 14,
                "currency": "EUR"
            },
            "item": {
                "amount": 14,
                "persons": 18,
                "gram": 18,
                "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": 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": false,
                    "price": {
                        "value": 18,
                        "currency": "EUR"
                    }
                },
                "product_price": {
                    "id": 16,
                    "name": "...",
                    "price": {
                        "value": 16,
                        "currency": "EUR"
                    }
                },
                "calculated_prices": {
                    "unit_price": {
                        "value": 13,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 16,
                        "currency": "EUR"
                    }
                },
                "discount_prices": {
                    "unit_price": {
                        "value": 11,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 16,
                        "currency": "EUR"
                    }
                },
                "amount_free": 16,
                "shop": {
                    "id": 13,
                    "name": "Prof. Leif Renner Jr.",
                    "address": {
                        "street": "Sint-Denijslaan",
                        "nr": "96",
                        "zipcode": "9000",
                        "city": "Gent",
                        "country": "BE",
                        "position": {
                            "latitude": 1.54361,
                            "longitude": 0.45645
                        }
                    },
                    "currency": "EUR"
                },
                "options": [
                    {
                        "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
                        },
                        "optionset": {
                            "id": 17,
                            "name": "...",
                            "allow_attachment": false
                        }
                    },
                    {
                        "id": 16,
                        "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
                        },
                        "optionset": {
                            "id": 11,
                            "name": "...",
                            "allow_attachment": true
                        }
                    },
                    {
                        "id": 16,
                        "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
                        },
                        "optionset": {
                            "id": 14,
                            "name": "...",
                            "allow_attachment": true
                        }
                    }
                ],
                "uploads": [
                    {
                        "upload": {
                            "id": 16,
                            "url": "https://example.com"
                        },
                        "optionset_id": 16
                    },
                    {
                        "upload": {
                            "id": 12,
                            "url": "https://example.com"
                        },
                        "optionset_id": 14
                    },
                    {
                        "upload": {
                            "id": 18,
                            "url": "https://example.com"
                        },
                        "optionset_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": false
            },
            "price_change": {
                "value": 16,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 18,
                "currency": "EUR"
            },
            "item": {
                "amount": 18,
                "persons": 11,
                "gram": 15,
                "comment": "...",
                "product": {
                    "id": 13,
                    "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": 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
                        }
                    ],
                    "price_type": "PER_UNIT",
                    "target_price": false,
                    "price": {
                        "value": 14,
                        "currency": "EUR"
                    }
                },
                "product_price": {
                    "id": 17,
                    "name": "...",
                    "price": {
                        "value": 16,
                        "currency": "EUR"
                    }
                },
                "calculated_prices": {
                    "unit_price": {
                        "value": 17,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 10,
                        "currency": "EUR"
                    }
                },
                "discount_prices": {
                    "unit_price": {
                        "value": 17,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 13,
                        "currency": "EUR"
                    }
                },
                "amount_free": 13,
                "shop": {
                    "id": 15,
                    "name": "Ernesto Hagenes",
                    "address": {
                        "street": "Sint-Denijslaan",
                        "nr": "96",
                        "zipcode": "9000",
                        "city": "Gent",
                        "country": "BE",
                        "position": {
                            "latitude": 1.54361,
                            "longitude": 0.45645
                        }
                    },
                    "currency": "EUR"
                },
                "options": [
                    {
                        "id": 18,
                        "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": false
                        },
                        "optionset": {
                            "id": 13,
                            "name": "...",
                            "allow_attachment": false
                        }
                    },
                    {
                        "id": 17,
                        "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
                        },
                        "optionset": {
                            "id": 11,
                            "name": "...",
                            "allow_attachment": false
                        }
                    },
                    {
                        "id": 16,
                        "name": "...",
                        "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": false
                        },
                        "optionset": {
                            "id": 13,
                            "name": "...",
                            "allow_attachment": false
                        }
                    }
                ],
                "uploads": [
                    {
                        "upload": {
                            "id": 11,
                            "url": "https://example.com"
                        },
                        "optionset_id": 18
                    },
                    {
                        "upload": {
                            "id": 19,
                            "url": "https://example.com"
                        },
                        "optionset_id": 13
                    },
                    {
                        "upload": {
                            "id": 13,
                            "url": "https://example.com"
                        },
                        "optionset_id": 15
                    }
                ]
            }
        },
        {
            "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": false
            },
            "price_change": {
                "value": 19,
                "currency": "EUR"
            },
            "price_change_without_discount": {
                "value": 12,
                "currency": "EUR"
            },
            "item": {
                "amount": 18,
                "persons": 12,
                "gram": 19,
                "comment": "...",
                "product": {
                    "id": 18,
                    "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": false
                        }
                    ],
                    "price_type": "PER_UNIT",
                    "target_price": true,
                    "price": {
                        "value": 14,
                        "currency": "EUR"
                    }
                },
                "product_price": {
                    "id": 18,
                    "name": "...",
                    "price": {
                        "value": 19,
                        "currency": "EUR"
                    }
                },
                "calculated_prices": {
                    "unit_price": {
                        "value": 18,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 17,
                        "currency": "EUR"
                    }
                },
                "discount_prices": {
                    "unit_price": {
                        "value": 10,
                        "currency": "EUR"
                    },
                    "price": {
                        "value": 11,
                        "currency": "EUR"
                    }
                },
                "amount_free": 19,
                "shop": {
                    "id": 13,
                    "name": "Dr. Laurie Smith",
                    "address": {
                        "street": "Sint-Denijslaan",
                        "nr": "96",
                        "zipcode": "9000",
                        "city": "Gent",
                        "country": "BE",
                        "position": {
                            "latitude": 1.54361,
                            "longitude": 0.45645
                        }
                    },
                    "currency": "EUR"
                },
                "options": [
                    {
                        "id": 15,
                        "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
                        },
                        "optionset": {
                            "id": 19,
                            "name": "...",
                            "allow_attachment": true
                        }
                    },
                    {
                        "id": 14,
                        "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
                        },
                        "optionset": {
                            "id": 13,
                            "name": "...",
                            "allow_attachment": false
                        }
                    },
                    {
                        "id": 18,
                        "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": true
                        },
                        "optionset": {
                            "id": 17,
                            "name": "...",
                            "allow_attachment": true
                        }
                    }
                ],
                "uploads": [
                    {
                        "upload": {
                            "id": 13,
                            "url": "https://example.com"
                        },
                        "optionset_id": 14
                    },
                    {
                        "upload": {
                            "id": 12,
                            "url": "https://example.com"
                        },
                        "optionset_id": 15
                    },
                    {
                        "upload": {
                            "id": 11,
                            "url": "https://example.com"
                        },
                        "optionset_id": 15
                    }
                ]
            }
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.4.0 stable