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 [Option.detailed] Array of Option.detailed
uploads [CartUploadWithOptionSet] Optional. Array of CartUploadWithOptionSet

Examples

Request

When used inside a request.

Example 1

[]

Response

When returned in a response.

Example 1

{
    "amount": 12,
    "persons": 11,
    "gram": 15,
    "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": false
            }
        ],
        "price_type": "PER_UNIT",
        "target_price": true,
        "price": {
            "value": 19,
            "currency": "EUR"
        },
        "price_look_up_code": "...",
        "code": "..."
    },
    "product_price": {
        "id": 10,
        "name": "...",
        "price": {
            "value": 19,
            "currency": "EUR"
        },
        "price_look_up_code": "...",
        "code": "..."
    },
    "calculated_prices": {
        "unit_price": {
            "value": 10,
            "currency": "EUR"
        },
        "price": {
            "value": 19,
            "currency": "EUR"
        }
    },
    "discount_prices": {
        "unit_price": {
            "value": 13,
            "currency": "EUR"
        },
        "price": {
            "value": 13,
            "currency": "EUR"
        }
    },
    "amount_free": 12,
    "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": 15,
                "name": "...",
                "allow_attachment": false
            }
        },
        {
            "id": 15,
            "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": false
            },
            "optionset": {
                "id": 17,
                "name": "...",
                "allow_attachment": true
            }
        },
        {
            "id": 14,
            "name": "...",
            "price_change": {
                "value": 13,
                "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": 18,
                "name": "...",
                "allow_attachment": true
            }
        }
    ],
    "uploads": [
        {
            "upload": {
                "id": 10,
                "url": "https://example.com"
            },
            "optionset_id": 16
        },
        {
            "upload": {
                "id": 11,
                "url": "https://example.com"
            },
            "optionset_id": 11
        },
        {
            "upload": {
                "id": 11,
                "url": "https://example.com"
            },
            "optionset_id": 17
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.4.0 stable