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.
- •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.
- 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.
- Anchor to discountAllocationsdiscount•[Cart
Allocations Discount Allocation!]! non-null The discounts that have been applied to the cart line.
- •ID!non-null
A globally-unique ID.
- Anchor to merchandisemerchandise•Merchandise!non-null
The merchandise that the buyer intends to purchase.
- 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.
- Anchor to estimatedCostestimated•Cart
Cost Line Estimated Cost! non-nullDeprecated
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.- Anchor to attributeattribute•Attribute
An attribute associated with the cart line.
- •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.
- 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.
- Anchor to discountAllocationsdiscount•[Cart
Allocations Discount Allocation!]! non-null The discounts that have been applied to the cart line.
- •ID!non-null
A globally-unique ID.
- Anchor to instructionsinstructions•Cart
Line Instructions! non-null The instructions for the line item.
- Anchor to merchandisemerchandise•Merchandise!non-null
The merchandise that the buyer intends to purchase.
- Anchor to parentRelationshipparent•Cart
Relationship Line Parent Relationship The parent of the line item.
- 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.
- Anchor to estimatedCostestimated•Cart
Cost Line Estimated Cost! non-nullDeprecated
- •OBJECT
Represents information about the grouped merchandise in the cart.
- Anchor to attributeattribute•Attribute
An attribute associated with the cart line.
- •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.
- 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.
- Anchor to discountAllocationsdiscount•[Cart
Allocations Discount Allocation!]! non-null The discounts that have been applied to the cart line.
- •ID!non-null
A globally-unique ID.
- Anchor to lineComponentsline•[Cart
Components Line!]! non-null The components of the line item.
- Anchor to merchandisemerchandise•Merchandise!non-null
The merchandise that the buyer intends to purchase.
- 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.
- Anchor to estimatedCostestimated•Cart
Cost Line Estimated Cost! non-nullDeprecated