Anchor to cartSelectedDeliveryOptionsUpdatecart
mutationcart Selected Delivery Options Update
Updates the selected delivery option for one or more objects in a cart. Each delivery group represents items shipping to a specific address and offers multiple delivery options with different costs and methods.
Use this mutation when a customer chooses their preferred shipping method during checkout. The identifies which to select for each delivery group.
Anchor to Arguments
Arguments
- cartId (ID!)
- selectedDeliveryOptions ([CartSelectedDeliveryOptionInput!]!)
- Anchor to cartIdcart•ID!
Id required The ID of the cart.
- Anchor to selectedDeliveryOptionsselected•[Cart
Delivery Options Selected Delivery Option Input!]! required The selected delivery options.
The input must not contain more than
250values.
Was this section helpful?
Anchor to CartSelectedDeliveryOptionsUpdatePayload returnsCart Selected Delivery Options Update Payload returns
- 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?