# CartDiscount Describes a cart discount, including title, description, discount percentage, type, code, and total amount. ## Type Definition ```graphql type CartDiscount { title: String description: String discountPercent: Float type: String code: String amount: Float totalAmount: Float totalSavings: Float } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | title | String | Returns the title. | | description | String | Returns the description. | | discountPercent | Float | Returns the discount percent. | | type | String | Returns the discount type. | | code | String | Returns the code for coupons. | | amount | Float | Returns the discount amount in customer's currency. | | totalAmount | Float | Returns the total discount amount in customer's currency. | | totalSavings | Float | Returns the total savings in customer's currency. | ## Relationships CartDiscount represents discount information applied to a cart. It provides comprehensive details about discount offers including their monetary value, percentage, and type classification. This type is typically returned as part of cart query results where discounts have been applied. ## Example ```graphql query { cart(id: "eyJhbGciOiJIUzI1NiJ9...") { discounts { title description discountPercent type code amount totalAmount totalSavings } } } ``` ## Implements This type does not implement any interfaces. ## Related Types - Cart - Discount