--- title: CartCodeDiscountApplication - Storefront API description: The discount application applied using a discount code. api_version: unstable api_name: storefront source_url: html: >- https://shopify.dev/docs/api/storefront/unstable/objects/CartCodeDiscountApplication md: >- https://shopify.dev/docs/api/storefront/unstable/objects/CartCodeDiscountApplication.md --- # Cart​Code​Discount​Application object The discount application applied using a discount code. ## Fields * allocation​Method [Discount​Application​Allocation​Method!](https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationAllocationMethod) non-null The method by which the discount's value is allocated to its entitled items. * code [String!](https://shopify.dev/docs/api/storefront/unstable/scalars/String) non-null The code used to apply the discount. * target​Selection [Discount​Application​Target​Selection!](https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetSelection) non-null Which lines of targetType that the discount is allocated over. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetType) non-null The type of line that the discount is applicable towards. * total​Allocated​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/unstable/objects/MoneyV2) non-null The total amount allocated by this discount application across all entitled items. * value [Pricing​Value!](https://shopify.dev/docs/api/storefront/unstable/unions/PricingValue) non-null The value of the discount application. *** ## Map No referencing types *** ## Interfaces * [Base​Cart​Discount​Application](https://shopify.dev/docs/api/storefront/unstable/interfaces/BaseCartDiscountApplication) interface *** ## CartCodeDiscountApplication Implements ### Implements * [Base​Cart​Discount​Application](https://shopify.dev/docs/api/storefront/unstable/interfaces/BaseCartDiscountApplication)