Anchor to OrderStagedChangeAddManualDiscountOrder
objectOrder Staged Change Add Manual Discount
Requires access scope.
A manual order-level discount staged during the current order edit.
Anchor to FieldsFields
- description (String!)
- id (ID!)
- value (PricingValue!)
- Anchor to descriptiondescription•String!non-null
The description of the discount.
- •ID!non-null
A globally-unique ID.
- Anchor to valuevalue•Pricing
Value! non-null The pricing value of the discount.
Show union types
Was this section helpful?
Anchor to MutationsMutations
- orderEditAddManualOrderDiscount (OrderEditAddManualOrderDiscountPayload)
- •mutation
Adds a manual order-level discount during an order edit session.
The discount is allocated across all line items. The changes remain staged until committed with the
mutation.If the edit already has a staged manual order-level discount, this replaces it. If the order already has an active manual order-level discount, remove it with
first.To change or remove the discount later in the edit, use
or.Show payload
- Anchor to discountdiscount•Order
Edit Applied Discount Input! required The manual order-level discount to add.
Show input fields
- •ID!required
The ID of the calculated order or the order edit session to edit.
Arguments
Was this section helpful?