Anchor to orderEditRemoveLineItemDiscountorder
orderEditRemoveLineItemDiscount
mutationDeprecated
Requires access scope.
Removes a line item discount that was applied as part of an order edit. Use instead.
Anchor to Arguments
Arguments
- Anchor to discountApplicationIddiscount•
Application Id ID!required The ID of the calculated discount application to remove.
- •ID!required
The ID of the calculated order or the order edit session to edit. This is the edit from which the line item discount is removed.
Was this section helpful?
Anchor to OrderEditRemoveLineItemDiscountPayload returnsOrderEditRemoveLineItemDiscountPayload returns
- Anchor to calculatedLineItemcalculated•
Line Item The calculated line item after removal of the discount.
- Anchor to calculatedOrdercalculated•
Order An order with the edits applied but not saved.
- Anchor to orderEditSessionorder•
Edit Session The order edit session with the edits applied but not saved.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation orderEditRemoveLineItemDiscount($discountApplicationId: ID!, $id: ID!) {
orderEditRemoveLineItemDiscount(discountApplicationId: $discountApplicationId, id: $id) {
calculatedLineItem {
# CalculatedLineItem fields
}
calculatedOrder {
# CalculatedOrder fields
}
orderEditSession {
# OrderEditSession fields
}
userErrors {
field
message
}
}
}
Input
{
"discountApplicationId": "gid://shopify/<objectName>/10079785100",
"id": "gid://shopify/<objectName>/10079785100"
}
{
"discountApplicationId": "gid://shopify/<objectName>/10079785100",
"id": "gid://shopify/<objectName>/10079785100"
}