--- title: DiscountCodeApplication - Storefront API description: | Discount code applications capture the intentions of a discount code at the time that it is applied. api_version: unstable api_name: storefront source_url: html: >- https://shopify.dev/docs/api/storefront/unstable/objects/DiscountCodeApplication md: >- https://shopify.dev/docs/api/storefront/unstable/objects/DiscountCodeApplication.md --- # Discount​Code​Application object Discount code applications capture the intentions of a discount code at the time that it is applied. ## 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. * applicable [Boolean!](https://shopify.dev/docs/api/storefront/unstable/scalars/Boolean) non-null Specifies whether the discount code was applied successfully. * code [String!](https://shopify.dev/docs/api/storefront/unstable/scalars/String) non-null The string identifying the discount code that was used at the time of application. * 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. * 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 * [Discount​Application](https://shopify.dev/docs/api/storefront/unstable/interfaces/DiscountApplication) interface *** ## ||-DiscountCodeApplication Implements ### Implements * ||-[Discount​Application](https://shopify.dev/docs/api/storefront/unstable/interfaces/DiscountApplication)