Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to orderEditUpdateDiscount

orderEditUpdateDiscount

mutation

Requires write_order_edits access scope. Also: The user must have apply_discounts_to_orders permission.

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.

The updated discount.

Anchor to discountApplicationIddiscountApplicationId
ID!required

The ID of the calculated discount application to update.

ID!required

The ID of the calculated order from which to update the discount.


Was this section helpful?

Anchor to OrderEditUpdateDiscountPayload returnsOrderEditUpdateDiscountPayload returns

An order with the edits applied but not saved.

The list of errors that occurred from executing the mutation.


Was this section helpful?