orderEditRemoveDiscount - admin-graphql - MUTATION
Version: 2024-01
Description:
Removes a 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](https://shopify.dev/apps/fulfillment/order-management-apps/order-editing).
Access Scopes
`write_order_edits` access scope.
Arguments
-
discountApplicationId:
ID! -
The ID of the [calculated discount application](https://shopify.dev/api/admin-graphql/latest/interfaces/calculateddiscountapplication)
to remove.
-
id:
ID! -
The ID of the [calculated order](https://shopify.dev/api/admin-graphql/latest/objects/calculatedorder)
from which to remove the discount.
Returns
-
calculatedOrder:
CalculatedOrder
An order with the edits applied but not saved.
-
userErrors:
OrderEditRemoveDiscountUserError!
The list of errors that occurred from executing the mutation.
Examples