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

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?