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