Skip to main content
Anchor to OrderStagedChangeAddLineItemDiscount

OrderStagedChangeAddLineItemDiscount

object

Requires read_order_edits access scope.

The discount applied to an item that was added during the current order edit.

•String!non-null

The description of the discount.

•ID!non-null

A globally-unique ID.

•PricingValue!non-null

The pricing value of the discount.


Was this section helpful?

•mutation

Adds a discount to a line item 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.

Arguments

•OrderEditAppliedDiscountInput!required

The discount to add to the line item.

•ID!required

The ID of the calculated order to update.

•ID!required

The ID of the calculated line item to add the discount to.


Fields

Anchor to addedDiscountStagedChangeaddedDiscountStagedChange
•OrderStagedChangeAddLineItemDiscount

The discount applied to a line item during this order edit.

•CalculatedLineItem

The line item with the edits applied but not saved.

•CalculatedOrder

An order with the edits applied but not saved.

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?