Discount Code Application
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 applicable field indicates whether the code was successfully applied.
Note: To see the actual amounts discounted on specific line items or shipping lines, use the <a href="/docs/api/storefront/2026-01/objects/DiscountAllocation"><code><span class="PreventFireFoxApplyingGapToWBR">Discount<wbr/>Allocation</span></code></a> object instead.
Anchor to FieldsFields
- allocationMethod (DiscountApplicationAllocationMethod!)
- applicable (Boolean!)
- code (String!)
- targetSelection (DiscountApplicationTargetSelection!)
- targetType (DiscountApplicationTargetType!)
- value (PricingValue!)
- Anchor to allocationMethodallocation•Discount
Method Application Allocation Method! non-null The method by which the discount's value is allocated to its entitled items.
- Anchor to applicableapplicable•Boolean!non-null
Specifies whether the discount code was applied successfully.
- Anchor to codecode•String!non-null
The string identifying the discount code that was used at the time of application.
- Anchor to targetSelectiontarget•Discount
Selection Application Target Selection! non-null Which lines of targetType that the discount is allocated over.
- Anchor to targetTypetarget•Discount
Type Application Target Type! non-null The type of line that the discount is applicable towards.
- Anchor to valuevalue•Pricing
Value! non-null The value of the discount application.