# CartCodeDiscountAllocation - storefront - OBJECT Version: 2024-10 ## Description The discount that has been applied to the cart line using a discount code. ### Access Scopes ## Fields * [code](/docs/api/storefront/2024-10/scalars/String): String! - The code used to apply the discount. * [discountedAmount](/docs/api/storefront/2024-10/objects/MoneyV2): MoneyV2! - The discounted amount that has been applied to the cart line. * [targetType](/docs/api/storefront/2024-10/enums/DiscountApplicationTargetType): DiscountApplicationTargetType! - The type of line that the discount is applicable towards. ## Connections ## Related queries ## Related mutations ## Related Unions ## Examples