Skip to main content
Anchor to OrderEditAddLineItemDiscountPayload

OrderEditAddLineItemDiscountPayload

payload

Return type for orderEditAddLineItemDiscount mutation.

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.

•OrderEditSession

The order edit session with the edits applied but not saved.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Applies a discount to a LineItem during an order edit session. The discount can be either a fixed amount or percentage value.

To modify pricing on specific line items, use this mutation after starting an order edit with the orderEditBegin mutation. The changes remain staged until you commit them with the orderEditCommit mutation.

Learn more about editing existing orders.

Arguments

•ID!
required

The ID of the calculated order or the order edit session to edit.

•ID!
required

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

•OrderEditAppliedDiscountInput!
required

The discount to add to the line item.



Was this section helpful?