DiscountApplications
Displays discount applications applied to an order or draft order, including type and allocation details.
Columns
| Name | Type | References | Description |
| OrderId | Long |
Orders.Id | The unique numeric identifier of the order that the discount application belongs to. |
| OrderUpdatedAt | Datetime | The date and time when the associated order was last updated. | |
| Type | String | The type of discount application. Possible values include manual, discount_code, or script for automatic discounts. | |
| Title | String | The display name or title of the discount, as shown to the customer at checkout. | |
| Description | String | A descriptive label or explanation of the discount application, if provided. | |
| Value | String | The value of the discount. This can represent either a fixed amount or a percentage, depending on the value type. | |
| ValueType | String | Indicates whether the discount value represents a fixed amount or a percentage. Valid values: fixed_amount or percentage. | |
| AllocationMethod | String | Specifies how the discount value is allocated to the order. Valid values: across (applies across all line items) or each (applies per item). | |
| TargetSelection | String | Defines the scope of items the discount applies to. Valid values: all, entitled, or explicit. | |
| TargetType | String | Indicates whether the discount targets line items or shipping costs. Valid values: line_item or shipping_line. |