orderEditRemoveLineItemDiscount mutation

Version unstable

Removes a discount that was added as part of this edit.

Required access

write_order_edits access scope.

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!]!)

    The list of errors that occurred from executing the mutation.

Version 2021-10 (Release candidate)

Removes a discount that was added as part of this edit.

Required access

write_order_edits access scope.

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!]!)

    The list of errors that occurred from executing the mutation.

Version 2021-07 (Latest)

Removes a discount that was added as part of this edit.

Required access

write_order_edits access scope.

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!]!)

    The list of errors that occurred from executing the mutation.

Version 2021-04

Removes a discount that was added as part of this edit.

Required access

write_order_edits access scope.

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