Line Item Data
Line items are intended to describe purchasable items and are used in cart and order
interactions.
Line item fields:
| Field Name | Field Type | Description |
|---|---|---|
| attributes | object | A user-supplied value. |
| catalogObjectId | string | Required. A unique identifier representing the catalog object referenced in the line item. |
| catalogObjectType | string | Required. A name representing the catalog object referenced in the line item. |
| currency | string | The currency of the price field. |
| price | number | The price of the catalog object referenced in the line item. |
| quantity | number | Required. The number of catalog objects in this line item. |
Example
Here’s a basic structure of a line item used within an Interaction using the
Sitemap.
1{
2 catalogObjectType: "Product",
3 catalogObjectId: "product-1",
4 quantity: 1,
5 price: 9.99,
6 currency: "USD",
7 attributes: {
8 giftWrapping: true
9 }
10}