Source Cart Items
{
lineItems: [
{
customAttributes: [
{
key: "_nyla_id",
value: "c279b4af-0bd3-4d44-b452-85f862c95086",
},
],
discountAllocations: [
{
discountedAmount: {
amount: "30.8",
currencyCode: "USD",
},
title: "10% OFF",
},
],
image: {
altText: "Dusk",
height: 4000,
id: "gid://shopify/ProductImage/32788373405861",
src: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Pebble.jpg?v=1655995077",
url: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Pebble.jpg?v=1655995077",
width: 4000,
},
inBundle: false,
oldOrder: 0,
products: [],
properties: {
_nyla_id: "c279b4af-0bd3-4d44-b452-85f862c95086",
},
quantity: 1,
sellingPlanAllocation: {
sellingPlan: {
id: "gid://shopify/SellingPlan/8363901249",
name: "Every 2 months",
priceAdjustments: [
{
adjustmentValue: {
__typename: "SellingPlanPercentagePriceAdjustment",
adjustmentPercentage: 10,
},
orderCount: null,
},
],
},
},
sellingPlanId: "gid://shopify/SellingPlan/8363868481",
title: "Lip liner",
upsells: [],
variant: {
available: true,
compareAtPrice: null,
id: "gid://shopify/ProductVariant/41606287196325",
image: {
altText: "Dusk",
height: 4000,
id: "gid://shopify/ProductImage/32788373405861",
src: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Pebble.jpg?v=1655995077",
width: 4000,
},
price: {
amount: "22.0",
currencyCode: "USD",
},
product: {
handle: "lip-liner",
id: "gid://shopify/Product/7686486884517",
},
selectedOptions: [
{
name: "Shade",
value: "Noon",
},
],
sku: "",
title: "Noon",
unitPrice: null,
unitPriceMeasurement: {
measuredType: null,
quantityUnit: null,
quantityValue: 0,
referenceUnit: null,
referenceValue: 0,
},
weight: 0,
},
},
{
customAttributes: [
{
key: "_nyla_id",
value: "6ac4a680-5b65-4840-9c9d-61616a3c2f1b",
},
],
image: {
altText: "200ml, Dusk",
height: 4000,
id: "gid://shopify/ProductImage/32788389920933",
src: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Eye-blue.jpg?v=1670936514",
url: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Eye-blue.jpg?v=1670936514",
width: 4000,
},
inBundle: false,
oldOrder: 1,
products: [],
properties: {
_nyla_id: "6ac4a680-5b65-4840-9c9d-61616a3c2f1b",
},
quantity: 1,
sellingPlanAllocation: {
sellingPlan: {
id: "gid://shopify/SellingPlan/8363934017",
name: "Every 3 months",
priceAdjustments: [
{
adjustmentValue: {
__typename: "SellingPlanFixedPriceAdjustment",
price: {
amount: "4.0",
currencyCode: "USD",
},
},
orderCount: null,
},
],
},
},
sellingPlanId: "gid://shopify/SellingPlan/8363868481",
title: "Eye glow",
upsells: [],
variant: {
available: true,
compareAtPrice: {
amount: "55.0",
currencyCode: "USD",
},
id: "gid://shopify/ProductVariant/41606292799653",
image: {
altText: "200ml, Dusk",
height: 4000,
id: "gid://shopify/ProductImage/32788389920933",
src: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Eye-blue.jpg?v=1670936514",
width: 4000,
},
price: {
amount: "48.0",
currencyCode: "USD",
},
product: {
handle: "eye-glow",
id: "gid://shopify/Product/7686493241509",
sellingPlanByAppName: {
default: {
values: [
{
id: "gid://shopify/SellingPlan/8363934017",
name: "Every 3 months",
},
{
id: "gid://shopify/SellingPlan/8363934018",
name: "Every 6 months",
},
{
id: "gid://shopify/SellingPlan/8363934019",
name: "Every 12 months",
},
],
},
},
},
selectedOptions: [
{
name: "Shade",
value: "Dusk",
},
{
name: "Size",
value: "200ml",
},
],
sku: "",
title: "Dusk / 200ml",
unitPrice: null,
unitPriceMeasurement: {
measuredType: null,
quantityUnit: null,
quantityValue: 0,
referenceUnit: null,
referenceValue: 0,
},
weight: 0,
},
},
],
}
Properties
The line items in the cart.
The attributes associated with the cart line. Attributes are represented as key-value pairs.
The key of the custom attribute.
The value of the custom attribute.
The discounts that have been applied to the cart line.
The code used to apply the discount (for manual discounts).
The discounted amount that has been applied to the cart line.
The title of the allocated discount (for automatic discounts).
Image associated with the product variant. This field falls back to the product image if no image is available.
Whether the line item is in a bundle.
The old order of the line item.
List of products which are set as required in the bundle, we can also add products from {{bundle.upsells}} into this list using link actions, this products appear on checkout, this property array will only appear if line item is a bundle type, {{bundle.products}} items have the same properties as a regular lineItem (you can use, price, id, title, image, etc), new properties are listed below:
Set as "true" inside {{bundle.products}}.
Product should always be added to the selection, this cannot be changed.
Bundle product quantity.
Product selected variant title.
The attributes associated with the cart line.
An attribute associated with the cart line.
The quantity of the merchandise that the customer intends to purchase.
Represents an association between a variant and a selling plan. Selling plan allocations describe which selling plans are available for each variant, and what their impact is on pricing.
A representation of how products and variants can be sold and purchased. For example, an individual selling plan could be '6 weeks of prepaid granola, delivered weekly'.
A globally-unique ID.
Selling plan name.
The price adjustments that a selling plan makes when a variant is purchased with a selling plan.
The type of price adjustment. An adjustment value can have one of three types: percentage, amount off, or a new price.
Discount percentage, only one time of discount is applicable at the same time, fixed or percentage.
Discount price object, this is intended to use for a fixed discount.
Discount amount
Currency code
The number of orders that the price adjustment applies to. If the price adjustment always applies, then this field is null.
Selling plan id
The title of the line item.
Can be used inside of source cart items only for fixed bundles only.
Enables customers to add upsell items to cart inside of fixed bundle cart items.
The array contains the list of non-required bundle products that have not been included in the bundle
that was added to cart by the customer.
The APPS_BUNDLE_SET_INCLUDED_AS_TRUE link action can be used to add items into the associated bundle cart item.
Non-required items that are removed from fixed bundle cart items will appear in this list.
{{bundle.upsells}} items have the same properties as a regular variant lineItem (you can use, price, id, title, image, etc).
Additional properties only available for {{bundle.upsells}} items are listed below:
Set as "false" inside {{bundle.upsells}}.
Product should always be added to the selection, this cannot be changed.
Bundle product quantity.
Product selected variant title.
The variant of the line item.
Indicates if the product variant is available for sale.
The compare at price of the variant. This can be used to mark a variant as on sale, when compareAtPrice is higher than price.
A globally-unique identifier from Shopify (the GraphQL long-form format).
Image associated with the product variant. This field falls back to the product image if no image is available.
The product variant’s price.
The product of the variant.
A human-friendly unique string for the product automatically generated from its title.
A globally-unique identifier from Shopify (the GraphQL long-form format).
All selling plan data associated categorized by app name.
Selling plan data associated with the default app.
Selling plan options
Selling plan id
Selling plan name
List of product options applied to the variant.
The product option’s name.
The product option’s value.
The SKU (stock keeping unit) associated with the variant.
The title of the variant.
The unit price value for the variant based on the variant's measurement.
The unit price measurement for the variant.
The type of unit of measurement for the unit price measurement.
The quantity unit for the unit price measurement.
The quantity value for the unit price measurement.
The reference unit for the unit price measurement.
The reference value for the unit price measurement.
The weight of the product variant in the unit system specified with weight_unit.