CartItemProduct
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
yes | The ID of the product. It is NOT a database ID but the item_number, unique within the scope of a specific shop. |
name |
string |
yes | Name of the product. |
addtionalInfo |
array[object] |
Some additional info for the product to be shown on the cart page. E.g. basePrice, SKU, weight, … | |
featuredImageUrl |
string |
yes | The image of the product. |
properties |
array[CartItemProductProperty] | Selected properties of the current cart item. | |
price |
CartItemProductPrice | yes | |
appliedDiscounts |
array[AppliedDiscount] | All discouts applied to the current line item. |
Example
Section titled “Example”{ "id": "10080466570", "name": "Awesome T-Shirt", "addtionalInfo": [ { "label": "Manufacturer", "value": "Lacoste" } ], "featuredImageUrl": "https://myshop.example/images/product_xyz_featured.png", "properties": [ { "type": "option", "label": "Color", "value": "Red" } ], "price": { "unit": 10, "default": 50, "special": 40 }, "appliedDiscounts": [ { "code": "20OFF", "description": "Reduces the cost of all products by 20%.", "label": "20% off of all products.", "savedPrice": {} } ]}
