Anchor to CartLinesAddPayloadCart
payloadCart Lines Add Payload
Return type for mutation.
Anchor to FieldsFields
- cart (Cart)
- userErrors ([CartUserError!]!)
- warnings ([CartWarning!]!)
- Anchor to cartcart•Cart
The updated cart.
- Anchor to userErrorsuser•[Cart
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to warningswarnings•[Cart
Warning!]! non-null A list of warnings that occurred during the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- cartLinesAdd (CartLinesAddPayload)
- •mutation
Adds one or more merchandise lines to an existing
Cart. Each line specifies the product variant to purchase. Quantity defaults to1if not provided.You can add up to 250 lines in a single request. Use
to configure each line's merchandise, quantity, selling plan, custom attributes, and any parent relationships for nested line items such as warranties or add-ons.- Anchor to cartIdcart•ID!
Id required The ID of the cart.
- Anchor to lineslines•[Cart
Line Input!]! required A list of merchandise lines to add to the cart.
The input must not contain more than
250values.
Arguments
Was this section helpful?