# discount_application
Information about the intent of a discount.
To learn about displaying discounts in your theme, refer to [Discounts](https://shopify.dev/themes/pricing-payments/discounts).
## Properties
### target_selection
**Type:** string (set of values)
The selection method for line items or shipping lines to be discounted.
> Whether the selection method applies to line items or shipping lines depends on the discount's target type.
| Value | 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
**Type:** string (set of values)
The type of item that the discount applies to.
Possible values:
- `line_item`
- `shipping_line`
### title
**Type:** string
"The customer-facing name of the discount."
### total_allocated_amount
**Type:** number
The total amount of the discount in the currency's subunit, 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.
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) to output formatted amounts.
### type
**Type:** string (set of values)
The kind of discount applied.
Possible values:
- `automatic`
- `discount_code`
- `manual`
- `script`
### value
**Type:** number
The value of the discount, interpreted based on the value type:
| Value Type | Represents |
|------------|------------|
| `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.
Use [money filters](https://shopify.dev/docs/api/liquid/filters/money-filters) for formatted output.
### value_type
**Type:** string (set of values)
The value type of the discount.
Possible values:
- `fixed_amount`
- `percentage`
## Example
```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"
}
```