Anchor to OrderEditUpdateDiscountPayloadOrder
payloadOrder Edit Update Discount Payload
Return type for mutation.
Anchor to FieldsFields
- calculatedOrder (CalculatedOrder)
- orderEditSession (OrderEditSession)
- userErrors ([OrderEditUpdateDiscountUserError!]!)
- 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•[Order
Errors Edit Update Discount User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- orderEditUpdateDiscount (OrderEditUpdateDiscountPayload)
- •mutation
Updates a manual line level discount on the current order edit. For more information on how to use the GraphQL Admin API to edit an existing order, refer to Edit existing orders.
Show payload
- Anchor to discountdiscount•Order
Edit Applied Discount Input! required The updated discount.
Show input fields
- Anchor to discountApplicationIddiscount•ID!
Application Id required The ID of the calculated discount application to update.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit used to update the discount.
Arguments
Was this section helpful?