# cartDiscountCodesUpdate - storefront - MUTATION
Version: 2024-04

## Description
Updates the discount codes applied to the cart.

### Access Scopes



## Arguments
* [cartId](/docs/api/storefront/2024-04/scalars/ID): ID! - The ID of the cart.
* [discountCodes](/docs/api/storefront/2024-04/scalars/String): String - The case-insensitive discount codes that the customer added at checkout.

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


## Returns
* [cart](/docs/api/storefront/2024-04/objects/Cart): Cart The updated cart.
* [userErrors](/docs/api/storefront/2024-04/objects/CartUserError): CartUserError! The list of errors that occurred from executing the mutation.


## Examples