--- title: "Liquid objects: discount_application" description: Information about the intent of a discount. api_name: liquid source_url: html: https://shopify.dev/docs/api/liquid/objects/discount_application md: https://shopify.dev/docs/api/liquid/objects/discount_application.md --- # discount\_​application Information about the intent of a discount. To learn about how to display discounts in your theme, refer to [Discounts](https://shopify.dev/themes/pricing-payments/discounts). ## Properties * * target\_​selection [string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values * The selection method for line items or shipping lines to be discounted. Note Whether the selection method applies to line items or shipping lines depends on the discount's [target type](https://shopify.dev/docs/api/liquid/objects/discount_application#discount_application-target_type). | Possible values | Description | | - | - | | all | The discount applies to all line items or shipping lines. | | entitled | The discount applies to a specific set of line items or shipping lines based on some criteria. | | explicit | The discount applies to a specific line item or shipping line. | * target\_​type [string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values * The type of item that the discount applies to. | Possible values | | - | | line\_item | | shipping\_line | * title [string](https://shopify.dev/docs/api/liquid/basics#string) * The customer-facing name of the discount. * total\_​allocated\_​amount [number](https://shopify.dev/docs/api/liquid/basics#number) * The total amount of the discount in the currency's subunit. The value is output in the customer's local (presentment) currency. For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000. Tip Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted amount. * type [string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values * The type of the discount. | Possible values | | - | | automatic | | discount\_code | | manual | | script | * value [number](https://shopify.dev/docs/api/liquid/basics#number) * The value of the discount. How this value is interpreted depends on the [value type](https://shopify.dev/docs/api/liquid/objects/discount_application#discount_application-value_type) of the discount. The following table outlines what the value represents for each value type: | Value type | Value | | - | - | | `fixed_amount` | The amount of the discount in the currency's subunit. | | `percentage` | The percent amount of the discount. | For currencies without subunits, such as JPY and KRW, tenths and hundredths of a unit are appended. For example, 1000 Japanese yen is output as 100000. Tip Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output a formatted price. * value\_​type [string](https://shopify.dev/docs/api/liquid/basics#string) from a set of values * The value type of the discount. | Possible values | | - | | fixed\_amount | | percentage | ```json { "target_selection": "explicit", "target_type": "line_item", "title": "Bloodroot discount!", "total_allocated_amount": "2.50", "type": "script", "value": "2.5", "value_type": "fixed_amount" } ```