--- title: CartDiscountAllocation - Storefront API description: The discounts that have been applied to the cart line. api_version: 2024-10 api_name: storefront type: interface api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/2024-10/interfaces/CartDiscountAllocation md: >- https://shopify.dev/docs/api/storefront/2024-10/interfaces/CartDiscountAllocation.txt --- # Cart​Discount​Allocation interface The discounts that have been applied to the cart line. ## Fields * discounted​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/2024-10/objects/MoneyV2) non-null The discounted amount that has been applied to the cart line. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/2024-10/enums/DiscountApplicationTargetType) non-null The type of line that the discount is applicable towards. *** ## Types implemented in * [Cart​Automatic​Discount​Allocation](https://shopify.dev/docs/api/storefront/2024-10/objects/CartAutomaticDiscountAllocation) OBJECT The discounts automatically applied to the cart line based on prerequisites that have been met. * discounted​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/2024-10/objects/MoneyV2) non-null The discounted amount that has been applied to the cart line. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/2024-10/enums/DiscountApplicationTargetType) non-null The type of line that the discount is applicable towards. * title [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null The title of the allocated discount. * [Cart​Code​Discount​Allocation](https://shopify.dev/docs/api/storefront/2024-10/objects/CartCodeDiscountAllocation) OBJECT The discount that has been applied to the cart line using a discount code. * code [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null The code used to apply the discount. * discounted​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/2024-10/objects/MoneyV2) non-null The discounted amount that has been applied to the cart line. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/2024-10/enums/DiscountApplicationTargetType) non-null The type of line that the discount is applicable towards. * [Cart​Custom​Discount​Allocation](https://shopify.dev/docs/api/storefront/2024-10/objects/CartCustomDiscountAllocation) OBJECT The discounts automatically applied to the cart line based on prerequisites that have been met. * discounted​Amount [Money​V2!](https://shopify.dev/docs/api/storefront/2024-10/objects/MoneyV2) non-null The discounted amount that has been applied to the cart line. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/2024-10/enums/DiscountApplicationTargetType) non-null The type of line that the discount is applicable towards. * title [String!](https://shopify.dev/docs/api/storefront/2024-10/scalars/String) non-null The title of the allocated discount. *** ```json { "discountedAmount": "", "targetType": "" } ```