ShoppingListLineItems are Line Items that contain references to ProductVariants in a Product.

In addition to standard [Reference Expansion](/general-concepts#reference-expansion), a ShoppingListLineItem offers expansion on `productSlug` and `variant`, defined with the query parameter `expand`.
interface ShoppingListLineItem {
    addedAt: string;
    custom?: CustomFields;
    deactivatedAt?: string;
    id: string;
    name: LocalizedString;
    productId: string;
    productSlug?: LocalizedString;
    productType: ProductTypeReference;
    quantity: number;
    variant?: ProductVariant;
    variantId?: number;
}

Properties

addedAt: string

Date and time (UTC) the ShoppingListLineItem was added to the ShoppingList.

custom?: CustomFields

Custom Fields of the ShoppingListLineItem.

deactivatedAt?: string

If the Product or Product Variant is deleted, deactivatedAt is the date and time (UTC) of deletion.

This data is updated in an [eventual consistent manner](/general-concepts#eventual-consistency) when the Product Variant cannot be ordered anymore.
id: string

Unique identifier of the ShoppingListLineItem.

Name of the Product.

This data is updated in an [eventual consistent manner](/general-concepts#eventual-consistency) when the Product's name changes.
productId: string

Unique identifier of a Product.

productSlug?: LocalizedString

Slug of the current ProductData.

Returned when expanded using `expand=lineItems[*].productSlug`. You cannot expand only a single element of the array.

The Product Type defining the Attributes of the Product.

quantity: number

Number of Products in the ShoppingListLineItem.

variant?: ProductVariant

Data of the ProductVariant.

Returned when expanded using `expand=lineItems[*].variant`. You cannot expand only a single element of the array.
variantId?: number

id of the ProductVariant the ShoppingListLineItem refers to. If not set, the ShoppingListLineItem refers to the Master Variant.

Generated using TypeDoc