Order Edit Update Discount User Error
An error that occurs during the execution of .
Anchor to FieldsFields
- code (OrderEditUpdateDiscountUserErrorCode)
- field ([String!])
- message (String!)
- Anchor to codecode•Order
Edit Update Discount User Error Code The error code.
Show enum values
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Anchor to MutationsMutations
- orderEditUpdateDiscount (OrderEditUpdateDiscountPayload)
- •mutation
Updates a manual line level discount on the current order edit. If the order has an existing write-off, mutations such as this one, which reduce the order total, can reduce the written-off amount automatically when the edit is committed and the order total before write-offs falls below the remaining written-off amount. 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