Cart Line Input
Anchor to FieldsFields
- attributes ([AttributeInput!])
- deliveryMethod (CartDeliveryMethodInput)
- merchandiseId (ID!)
- parent (CartLineParentInput)
- quantity (Int)
- sellingPlanId (ID)
- Anchor to attributesattributes•[Attribute
Input!] An array of key-value pairs that contains additional information about the merchandise line.
The input must not contain more than
250values.Show input fields
- Anchor to deliveryMethoddelivery•Cart
Method Delivery Method Input The delivery method of the line.
shipping: {}uses the cart's shipping addresses, anduses the cart's pickup location. When omitted, the line gets the default delivery method, and a line that is already in the cart keeps its delivery method.Show input fields
- Anchor to merchandiseIdmerchandise•ID!
Id non-null The ID of the merchandise that the buyer intends to purchase.
- Anchor to parentparent•Cart
Line Parent Input The parent line item of the cart line.
Show input fields
- Anchor to quantityquantity•IntDefault:1
The quantity of the merchandise.
- Anchor to sellingPlanIdselling•ID
Plan Id The ID of the selling plan that the merchandise is being purchased with.
Anchor to Input objects using this inputInput objects using this input
- •INPUT OBJECT
The input fields for creating a
Cart. Used by themutation.Accepts merchandise lines, discount codes, gift card codes, and a note. You can also set custom attributes, metafields, buyer identity for international pricing, and delivery addresses.