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