Fields when send to the api inside a request.
Field | Type | Description |
---|
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 |
When used inside a request.
[]
When returned in a response.
{
"amount": 15,
"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": 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": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": {
"value": 10,
"currency": "EUR"
},
"price_look_up_code": "...",
"code": "...",
"category": {
"id": 10,
"name": "..."
}
},
"product_price": {
"id": 10,
"name": "...",
"price": {
"value": 18,
"currency": "EUR"
},
"price_look_up_code": "...",
"code": "..."
},
"calculated_prices": {
"unit_price": {
"value": 19,
"currency": "EUR"
},
"price": {
"value": 16,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 16,
"currency": "EUR"
},
"price": {
"value": 16,
"currency": "EUR"
}
},
"amount_free": 19,
"options": [
{
"option": {
"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": true
},
"require_image": true,
"code": "...",
"optionset": {
"id": 10,
"name": "...",
"code": "..."
}
},
"upload": {
"id": 12,
"url": "https://example.com"
}
},
{
"option": {
"id": 13,
"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
}
],
"white_background": true
},
"require_image": false,
"code": "...",
"optionset": {
"id": 19,
"name": "...",
"code": "..."
}
},
"upload": {
"id": 18,
"url": "https://example.com"
}
},
{
"option": {
"id": 10,
"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": true,
"code": "...",
"optionset": {
"id": 12,
"name": "...",
"code": "..."
}
},
"upload": {
"id": 16,
"url": "https://example.com"
}
}
]
}