Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Line Item Data
Line items are intended to describe purchasable items. They’re used in cart, catalog,
and wish-list interactions.
Fields
| Field Name | Description |
|---|---|
| attributes |
|
| catalogObjectId |
|
| catalogObjectType |
|
| currency |
|
| price |
|
| quantity |
|
Example
Here’s a basic structure of a line item used within an
interaction.
1{
2 lineItems: {
3 id: 'line-item-12345',
4 catalogObject: {
5 id: 'catalog-id-12345678',
6 type: 'Product'
7 },
8 attributes: {
9 quantity: 12,
10 price: 2.5,
11 imageUrl: 'https://commerce.salesforce.com/blueshirt.jpg',
12 name: 'blue-shirt'
13 },
14}