Base Cart Line
Anchor to FieldsFields
- attribute (Attribute)
- attributes ([Attribute!]!)
- cost (CartLineCost!)
- discountAllocations ([CartDiscountAllocation!]!)
- id (ID!)
- merchandise (Merchandise!)
- quantity (Int!)
- sellingPlanAllocation (SellingPlanAllocation)
- estimatedCost (CartLineEstimatedCost!): deprecated
- Anchor to attributeattribute•Attribute
An attribute associated with the cart line.
Show fields
- •String!required
The key of the attribute.
Arguments
- •String!
- Anchor to attributesattributes•[Attribute!]!non-null
The attributes associated with the cart line. Attributes are represented as key-value pairs.
Show fields
- Anchor to costcost•Cart
Line Cost! non-null The cost of the merchandise that the buyer will pay for at checkout. The costs are subject to change and changes will be reflected at checkout.
Show fields
- Anchor to discountAllocationsdiscount•[Cart
Allocations Discount Allocation!]! non-null The discounts that have been applied to the cart line.
Show fields
- •ID!non-null
A globally-unique ID.
- Anchor to merchandisemerchandise•Merchandise!non-null
The merchandise that the buyer intends to purchase.
Show union types
- Anchor to quantityquantity•Int!non-null
The quantity of the merchandise that the customer intends to purchase.
- Anchor to sellingPlanAllocationselling•Selling
Plan Allocation Plan Allocation The selling plan associated with the cart line and the effect that each selling plan has on variants when they're purchased.
Show fields
- Anchor to estimatedCostestimated•Cart
Cost Line Estimated Cost! non-nullDeprecated Show fields
Anchor to Types implemented inTypes implemented in
- CartLine (CartLine)
- ComponentizableCartLine (ComponentizableCartLine)
- •OBJECT
An item in a customer's
Cartrepresenting a product variant they intend to purchase. Each cart line tracks the merchandise, quantity, cost breakdown, and any applied discounts.Cart lines can include custom attributes for additional information like gift wrapping requests, and can be associated with a
for purchase options like subscriptions, pre-orders, or try-before-you-buy. Theinstructionsfield indicates whether the line can be removed or have its quantity updated.Show fields
- •OBJECT
Represents information about the grouped merchandise in the cart.
Show fields