Anchor to cartDeliveryMethodsUpdatecart
mutationcart Delivery Methods Update
Changes the destinations of the delivery methods of a
Cart. A
pickup entry moves the pickup of the cart to another location. A shipping
entry replaces the delivery addresses of the cart with its addresses, and an
empty list removes them.
The input has at most one entry of each type. The lines of the cart keep their delivery methods. Every destination must be in the same country as the other destinations of the cart.
Anchor to Arguments
Arguments
- cartId (ID!)
- methods ([CartDeliveryMethodInput!]!)
- Anchor to cartIdcart•ID!
Id required The ID of the cart.
- Anchor to methodsmethods•[Cart
Delivery Method Input!]! required The delivery methods to update, at most one of each type.
The input must not contain more than
250values.Show input fields
Was this section helpful?
- cart (Cart)
- userErrors ([CartUserError!]!)
- warnings ([CartWarning!]!)
- Anchor to cartcart•Cart
The updated cart.
Show fields
- Anchor to userErrorsuser•[Cart
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
- Anchor to warningswarnings•[Cart
Warning!]! non-null A list of warnings that occurred during the mutation.
Show fields
Was this section helpful?