Anchor to OrderStagedChangeAddLineItemDiscountOrder
objectOrder Staged Change Add Line Item Discount
Requires access scope.
The discount applied to an item that was added during the current order edit.
Anchor to FieldsFields
- description (String!)
- id (ID!)
- value (PricingValue!)
- Anchor to descriptiondescription•String!non-null
The description of the discount.
- •ID!non-null
A globally-unique ID.
- Anchor to valuevalue•Pricing
Value! non-null The pricing value of the discount.
Was this section helpful?
Anchor to MutationsMutations
- orderEditAddLineItemDiscount (OrderEditAddLineItemDiscountPayload)
- •mutation
Applies a discount to a
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
mutation. The changes remain staged until you commit them with themutation.Learn more about editing existing orders.
- •ID!required
The ID of the calculated order or the order edit session to edit.
- Anchor to lineItemIdline•ID!
Item Id required The ID of the calculated line item to add the discount to.
- Anchor to discountdiscount•Order
Edit Applied Discount Input! required The discount to add to the line item.
Arguments
- •ID!
Was this section helpful?