# 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 metafields: [Metafield]! metafield: Metafield } ``` ## 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. | | metafields | [Metafield]! | Metafields stored on this resource. | | metafield | Metafield | A single metafield by namespace and key. | ## Relationships CartDiscount contains metafield data through the `metafields` and `metafield` fields, allowing you to access custom metadata stored on the discount resource. The `metafield` field enables retrieval of a specific metafield by namespace and key, while `metafields` returns all metafield data associated with the discount. ## Example ```graphql { title description discountPercent type code amount totalAmount totalSavings metafields { id namespace key value } } ``` ## Implements This type does not implement any interfaces. ## Related Types - [Metafield](/reference/storefront/1.3.0/objects/metafield)