--- title: CartDiscountCode - Storefront API description: The discount codes applied to the cart. api_version: 2024-10 api_name: storefront type: object api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/2024-10/objects/CartDiscountCode' md: 'https://shopify.dev/docs/api/storefront/2024-10/objects/CartDiscountCode.txt' --- # Cart​Discount​Code object The discount codes applied to the cart. ## Fields * applicable [Boolean!](https://shopify.dev/docs/api/storefront/2024-10/scalars/Boolean) non-null Whether the discount code is applicable to the cart's current contents. * code [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null The code for the discount. *** ## Map ### Fields with this object * {}[Cart.discountCodes](https://shopify.dev/docs/api/storefront/2024-10/objects/Cart#field-discountCodes)