Discount Application Target Type
The type of line (i.e. line item or shipping line) on an order that the discount is applicable towards.
Anchor to Valid valuesValid values
- LINE_ITEM
- SHIPPING_LINE
- Anchor to LINE_ITEMLINE_
ITEM The discount applies onto line items.
- Anchor to SHIPPING_LINESHIPPING_
LINE The discount applies onto shipping lines.
Anchor to FieldsFields
- •OBJECT
An automatic discount applied to a cart or checkout without requiring a discount code. Implements the
interface.Includes the discount's title, value, and allocation details that specify how the discount amount distributes across entitled line items or shipping lines.
- •OBJECT
A discount allocation that applies automatically to a cart line when configured conditions are met. Unlike
, automatic discounts don't require customers to enter a code.- •OBJECT
A discount allocation applied to a cart line when a customer enters a discount code.
- •OBJECT
The discounts automatically applied to the cart line based on prerequisites that have been met.
- •INTERFACE
A common interface for querying discount allocations regardless of how the discount was applied (automatic, code, or custom). Each implementation represents a different discount source.
Tracks how a discount distributes across cart lines. Each allocation includes the
details, the discounted amount, and whether the discount targets line items or shipping.- •OBJECT
Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets.
The actual discounted amounts on specific cart lines are represented by
objects, which reference this application.- •INTERFACE
Captures the intent of a discount at the time it was applied. Each implementation represents a different discount source, such as automatic discounts, discount codes, and manual discounts.
The actual discounted amount on a line item or shipping line is represented by the
object, which references the discount application it originated from.- •OBJECT
Records the configuration and intent of a discount code when a customer applies it. This includes the code string, allocation method, target type, and discount value at the time of application. The
applicablefield indicates whether the code was successfully applied.NoteNote: To see the actual amounts discounted on specific line items or shipping lines, use the <a href="https://shopify.dev/docs/api/storefront/current/objects/DiscountAllocation"><code><span class="PreventFireFoxApplyingGapToWBR">Discount<wbr/>Allocation</span></code></a> object instead.
- •OBJECT
A discount created manually by a merchant, as opposed to automatic discounts or discount codes. Implements the
interface and includes a title, optional description, and the discount value as either a fixed amount or percentage.- •OBJECT