---
title: cartSelectedDeliveryOptionsUpdate - Storefront API
description: >-
  Updates the selected delivery option for one or more
  [`CartDeliveryGroup`](/docs/api/storefront/2026-10/objects/CartDeliveryGroup)

  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
  [`deliveryOptionHandle`](/docs/api/storefront/2026-10/input-objects/CartSelectedDeliveryOptionInput#field-CartSelectedDeliveryOptionInput.fields.deliveryOptionHandle)

  identifies which
  [`CartDeliveryOption`](/docs/api/storefront/2026-10/objects/CartDeliveryOption)

  to select for each delivery group.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/mutations/cartSelectedDeliveryOptionsUpdate
  md: >-
    https://shopify.dev/docs/api/storefront/latest/mutations/cartSelectedDeliveryOptionsUpdate.md
api_name: storefront
api_type: graphql
type: mutation
---

# cart​Selected​Delivery​Options​Update

mutation

Updates the selected delivery option for one or more [`CartDeliveryGroup`](https://shopify.dev/docs/api/storefront/2026-10/objects/CartDeliveryGroup) 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 [`deliveryOptionHandle`](https://shopify.dev/docs/api/storefront/2026-10/input-objects/CartSelectedDeliveryOptionInput#field-CartSelectedDeliveryOptionInput.fields.deliveryOptionHandle) identifies which [`CartDeliveryOption`](https://shopify.dev/docs/api/storefront/2026-10/objects/CartDeliveryOption) to select for each delivery group.

## Arguments

* cart​Id

  [ID!](https://shopify.dev/docs/api/storefront/latest/scalars/ID)

  required

  The ID of the cart.

* selected​Delivery​Options

  [\[Cart​Selected​Delivery​Option​Input!\]!](https://shopify.dev/docs/api/storefront/latest/input-objects/CartSelectedDeliveryOptionInput)

  required

  The selected delivery options.

  The input must not contain more than `250` values.

***

## Cart​Selected​Delivery​Options​Update​Payload returns

* cart

  [Cart](https://shopify.dev/docs/api/storefront/latest/objects/Cart)

  The updated cart.

* user​Errors

  [\[Cart​User​Error!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartUserError)

  non-null

  The list of errors that occurred from executing the mutation.

* warnings

  [\[Cart​Warning!\]!](https://shopify.dev/docs/api/storefront/latest/objects/CartWarning)

  non-null

  A list of warnings that occurred during the mutation.

***

## Examples

* ### cartSelectedDeliveryOptionsUpdate reference
