Anchor to cartDeliveryMethodsAddcart
mutationcart Delivery Methods Add
Adds delivery methods to a
Cart. A
shipping entry adds delivery addresses, as
does. A pickup entry sets the pickup location of the cart. A cart has at most
one pickup location: use to change it. On a cart
that has delivery addresses, add new addresses and a pickup location in
separate requests.
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 add, 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?