Anchor to CalculatedScriptDiscountApplicationCalculated
objectCalculated Script Discount Application
Requires access scope.
A discount created by a Shopify script for an order that is being edited.
Anchor to FieldsFields
- 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 appliedToapplied•Discount
To Application Level!non-null The level at which the discount was applied.
- Anchor to descriptiondescription•String
The description of discount application. Indicates the reason why the discount was applied.
- •ID!non-null
A globally-unique ID.
- Anchor to targetSelectiontarget•Discount
Selection Application Target Selection!non-null How the discount amount is distributed on the discounted lines.
- Anchor to targetTypetarget•Discount
Type Application Target Type!non-null Whether the discount is applied on line items or shipping lines.
- Anchor to valuevalue•Pricing
Value!non-null The value of the discount application.
Was this section helpful?