orderEditRemoveLineItemDiscount mutation
Removes a discount that was added as part of this edit.
Required access
write_order_edits
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
discountApplicationId
(
ID!
)
required
|
The ID of the discount to remove. |
id
(
ID!
)
required
|
The ID of the calculated order to remove the discount from. |
Return fields
-
calculatedLineItem (
CalculatedLineItem
)The line item with the discount removed.
-
calculatedOrder (
CalculatedOrder
)An order with the edits calculated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Removes a discount that was added as part of this edit.
Required access
write_order_edits
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
discountApplicationId
(
ID!
)
required
|
The ID of the discount to remove. |
id
(
ID!
)
required
|
The ID of the calculated order to remove the discount from. |
Return fields
-
calculatedLineItem (
CalculatedLineItem
)The line item with the discount removed.
-
calculatedOrder (
CalculatedOrder
)An order with the edits calculated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Removes a discount that was added as part of this edit.
Required access
write_order_edits
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
discountApplicationId
(
ID!
)
required
|
The ID of the discount to remove. |
id
(
ID!
)
required
|
The ID of the calculated order to remove the discount from. |
Return fields
-
calculatedLineItem (
CalculatedLineItem
)The line item with the discount removed.
-
calculatedOrder (
CalculatedOrder
)An order with the edits calculated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Removes a discount that was added as part of this edit.
Required access
write_order_edits
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
discountApplicationId
(
ID!
)
required
|
The ID of the discount to remove. |
id
(
ID!
)
required
|
The ID of the calculated order to remove the discount from. |
Return fields
-
calculatedLineItem (
CalculatedLineItem
)The line item with the discount removed.
-
calculatedOrder (
CalculatedOrder
)An order with the edits calculated.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.