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. |
options | [Option.detailed] | Array of Option.detailed |
uploads | [CartUploadWithOptionSet] | Optional. Array of CartUploadWithOptionSet |
code | String | Optional. A String value |
When used inside a request.
[]
When returned in a response.
{
"amount": 17,
"persons": 18,
"gram": 15,
"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
}
],
"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": 15,
"currency": "EUR"
}
},
"product_price": {
"id": 15,
"name": "...",
"price": {
"value": 10,
"currency": "EUR"
}
},
"calculated_prices": {
"unit_price": {
"value": 10,
"currency": "EUR"
},
"price": {
"value": 14,
"currency": "EUR"
}
},
"discount_prices": {
"unit_price": {
"value": 11,
"currency": "EUR"
},
"price": {
"value": 17,
"currency": "EUR"
}
},
"options": [
{
"id": 15,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
},
"optionset": {
"id": 19,
"name": "...",
"allow_attachment": true
}
},
{
"id": 11,
"name": "...",
"price_change": {
"value": 17,
"currency": "EUR"
},
"optionset": {
"id": 14,
"name": "...",
"allow_attachment": false
}
},
{
"id": 13,
"name": "...",
"price_change": {
"value": 18,
"currency": "EUR"
},
"optionset": {
"id": 14,
"name": "...",
"allow_attachment": true
}
}
],
"uploads": [
{
"upload": {
"id": 19,
"url": "https://example.com"
},
"optionset_id": 14
},
{
"upload": {
"id": 18,
"url": "https://example.com"
},
"optionset_id": 13
},
{
"upload": {
"id": 13,
"url": "https://example.com"
},
"optionset_id": 15
}
],
"code": "..."
}