CartLineInput
A line to add to the cart — variant, quantity and optional custom attributes / configurator selections.
input CartLineInput {
attributeSelections: [AttributeSelectionInput!]
attributes: [AttributeInput!]
quantity: Int!
variantId: ID!
}
Fields
CartLineInput.attributeSelections ● [AttributeSelectionInput!] list input
Typed configurator selections to apply to this line — validated against the product attribute definition; pricing surcharges are taken from a snapshot at add-to-cart.
CartLineInput.attributes ● [AttributeInput!] list input
Free-form custom attributes (line item properties) — e.g. engraving text, gift wrap, B2B PO line reference. Up to 50 entries.
CartLineInput.quantity ● Int! non-null scalar
Quantity to add (1 to 9999). Defaults to 1 when omitted.
CartLineInput.variantId ● ID! non-null scalar
ID of the product variant being purchased.
Member Of
cartAddLines mutation ● CartCreateInput input