Order Edit Add Manual Order Discount Payload
Return type for mutation.
Anchor to FieldsFields
- addedManualDiscountStagedChange (OrderStagedChangeAddManualDiscount)
- calculatedOrder (CalculatedOrder)
- orderEditSession (OrderEditSession)
- userErrors ([UserError!]!)
- Anchor to addedManualDiscountStagedChangeadded•Order
Manual Discount Staged Change Staged Change Add Manual Discount The staged change recording the manual order-level discount.
Show fields
- Anchor to calculatedOrdercalculated•Calculated
Order Order An order with the edits applied but not saved.
Show fields
- Anchor to orderEditSessionorder•Order
Edit Session Edit Session The order edit session with the edits applied but not saved.
Show fields
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
Anchor to Mutations with this payloadMutations with this payload
- 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