Cart

{
  countryCode: "US",
  customAttributes: [
    {
      key: "giftNote",
      value: "This is a gift for you",
    },
  ],
  email: "dev@nyla.app",
  isError: false,
  isLoading: false,
  lineItems: [
    {
      customAttributes: [
        {
          key: "_nyla_id",
          value: "903facc8-66e7-473b-bb46-c772efa5ae11",
        },
      ],
      isRequired: true,
      properties: {
        _nyla_id: "903facc8-66e7-473b-bb46-c772efa5ae11",
      },
      quantity: 1,
      sellingPlanAllocation: {
        sellingPlan: {
          id: "gid://shopify/SellingPlan/8363934017",
          name: "Every 3 months",
          priceAdjustments: [
            {
              adjustmentValue: {
                __typename: "SellingPlanPercentagePriceAdjustment",
                adjustmentPercentage: 10,
              },
              orderCount: null,
            },
          ],
        },
      },
      sellingPlanId: "gid://shopify/SellingPlan/8363934017",
      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",
          title: "Lip liner",
        },
        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: "4385197b-17ca-4989-9547-0abdfe6b54f4",
        },
      ],
      isRequired: false,
      properties: {
        _nyla_id: "4385197b-17ca-4989-9547-0abdfe6b54f4",
      },
      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/8363934017",
      variant: {
        available: true,
        compareAtPrice: {
          amount: "32.0",
          currencyCode: "USD",
        },
        id: "gid://shopify/ProductVariant/41606292635813",
        image: {
          altText: "50ml, Dawn",
          height: 4000,
          id: "gid://shopify/ProductImage/32788389986469",
          src: "https://cdn.shopify.com/s/files/1/0584/6053/6997/products/Eye-pink-large.jpg?v=1670936490",
          width: 4000,
        },
        price: {
          amount: "28.0",
          currencyCode: "USD",
        },
        product: {
          handle: "eye-glow",
          id: "gid://shopify/Product/7686493241509",
          title: "Eye glow",
        },
        selectedOptions: [
          {
            name: "Shade",
            value: "Dawn",
          },
          {
            name: "Size",
            value: "50ml",
          },
        ],
        sku: "",
        title: "Dawn / 50ml",
        unitPrice: null,
        unitPriceMeasurement: {
          measuredType: null,
          quantityUnit: null,
          quantityValue: 0,
          referenceUnit: null,
          referenceValue: 0,
        },
        weight: 0,
      },
    },
  ],
  lineItemsSubtotalPrice: {
    amount: "50.0",
    currencyCode: "USD",
  },
  properties: {
    giftNote: "This is a gift for you",
  },
  subtotalPrice: {
    amount: 50,
    currencyCode: "USD",
  },
  totalPoints: 0,
  totalPrice: {
    amount: "53.88",
    currencyCode: "USD",
  },
  webUrl: "https://nyla-starter.myshopify.com/cart/c/c1-17045e3dca063ad2e7b497bf1e3bbe21",
}

Properties

string

The country where the buyer is located.

array

The attributes associated with the cart. Attributes are represented as key-value pairs.

string

The email address of the buyer that is interacting with the cart.

boolean

The error status of the cart.

boolean

The loading status of the cart.

array

A list of lines containing information about the items the customer intends to purchase.

nyla_price

The amount, before taxes and cart-level discounts, for the customer to pay.

object

The attributes associated with the cart.

nyla_price

The price at checkout before shipping and taxes.

number

The total loyalty points used in the cart.

nyla_price

The total amount for the customer to pay.

string

The URL of the checkout for the cart.