CartItem.company

Request

Fields when send to the api inside a request.

Field Type Description

Response

Fields when returned by the api in a response.

Field Type Description
amount Int An integer value
persons Int An integer value
gram Int An integer value
comment String A String value
product Product.company-order
product_price ProductPrice.company-order? Nullable.
calculated_prices CartItemPrices
discount_prices CartItemPrices? Nullable.
amount_free Int Amount you receive for free on top of the chosen amount. If the price type of the product is in gram or persons, this amount is also in gram or persons.
options [CartItemOption] Array of CartItemOption

Examples

Request

When used inside a request.

Example 1

[]

Response

When returned in a response.

Example 1

{
    "amount": 14,
    "persons": 17,
    "gram": 12,
    "comment": "...",
    "product": {
        "id": 12,
        "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
                    }
                ],
                "file_id": 14,
                "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
                    }
                ],
                "file_id": 16,
                "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
                    }
                ],
                "file_id": 14,
                "white_background": false
            }
        ],
        "price_type": "PER_UNIT",
        "target_price": false,
        "price": {
            "value": 10,
            "currency": "EUR"
        },
        "only_order_in_store": false,
        "price_look_up_code": "...",
        "code": "...",
        "category": {
            "id": 17,
            "name": "..."
        },
        "origin": "...",
        "ingredients": "...",
        "nutrients": [
            {
                "type": "FAT",
                "amount": 9.67,
                "label": "..."
            },
            {
                "type": "FAT",
                "amount": 9.67,
                "label": "..."
            },
            {
                "type": "FAT",
                "amount": 9.67,
                "label": "..."
            }
        ]
    },
    "product_price": {
        "id": 19,
        "name": "...",
        "price": {
            "value": 18,
            "currency": "EUR"
        },
        "price_look_up_code": "...",
        "code": "..."
    },
    "calculated_prices": {
        "unit_price": {
            "value": 17,
            "currency": "EUR"
        },
        "price": {
            "value": 10,
            "currency": "EUR"
        }
    },
    "discount_prices": {
        "unit_price": {
            "value": 11,
            "currency": "EUR"
        },
        "price": {
            "value": 10,
            "currency": "EUR"
        }
    },
    "amount_free": 19,
    "options": [
        {
            "option": {
                "id": 13,
                "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
                        }
                    ],
                    "file_id": 14,
                    "white_background": false
                },
                "require_image": true,
                "code": "...",
                "price_calculation": "PER_PIECE",
                "optionset": {
                    "id": 13,
                    "name": "...",
                    "code": "...",
                    "multiple_choice": false,
                    "choose_amount": false,
                    "min_different_options": 17,
                    "max_different_options": 16,
                    "min_amount_options": 12,
                    "max_amount_options": 14
                }
            },
            "upload": {
                "id": 13,
                "url": "https://example.com"
            },
            "amount": 10
        },
        {
            "option": {
                "id": 12,
                "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
                        }
                    ],
                    "file_id": 12,
                    "white_background": false
                },
                "require_image": true,
                "code": "...",
                "price_calculation": "PER_PIECE",
                "optionset": {
                    "id": 16,
                    "name": "...",
                    "code": "...",
                    "multiple_choice": true,
                    "choose_amount": true,
                    "min_different_options": 13,
                    "max_different_options": 16,
                    "min_amount_options": 18,
                    "max_amount_options": 18
                }
            },
            "upload": {
                "id": 13,
                "url": "https://example.com"
            },
            "amount": 18
        },
        {
            "option": {
                "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
                        }
                    ],
                    "file_id": 10,
                    "white_background": true
                },
                "require_image": true,
                "code": "...",
                "price_calculation": "PER_PIECE",
                "optionset": {
                    "id": 10,
                    "name": "...",
                    "code": "...",
                    "multiple_choice": true,
                    "choose_amount": false,
                    "min_different_options": 12,
                    "max_different_options": 18,
                    "min_amount_options": 17,
                    "max_amount_options": 17
                }
            },
            "upload": {
                "id": 17,
                "url": "https://example.com"
            },
            "amount": 16
        }
    ]
}
This is a development version Do not use this version in production
1.10.0 development