CartItem.order

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.simple
product_price ProductPrice.simple? Nullable.
calculated_prices CartItemPrices
discount_prices CartItemPrices? Nullable.
options [Option.detailed] Array of Option.detailed
uploads [CartUploadWithOptionSet] Optional. Array of CartUploadWithOptionSet
code String Optional. A String value

Examples

Request

When used inside a request.

Example 1

[]

Response

When returned in a response.

Example 1

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