UpdateQuoteLineItemInput
Input for updateQuoteLineItem. Every field except lineItemId is optional and keeps its current value when omitted, so a price-only change needs nothing but lineItemId and unitPrice.
input UpdateQuoteLineItemInput {
lineItemId: ID!
quantity: Int
unitPrice: Float
taxRate: Float
label: String
}
Fields
UpdateQuoteLineItemInput.lineItemId ● ID! non-null scalar
ID of the line item to change. Must belong to a quote in state draft and must not be a credit position — use updateQuoteCredit for those.
UpdateQuoteLineItemInput.quantity ● Int scalar
New number of units. Keeps the current quantity when omitted. 0 takes the position off the quote, exactly as removeQuoteLineItem would; a negative value is rejected.
UpdateQuoteLineItemInput.unitPrice ● Float scalar
New per-unit price in the quote's currency, read in the quote's taxStatus. Must not be negative. Keeps the current price when omitted. The value is a price *definition*: the server recalculates the position and the quote totals from it, so the resulting unitPrice may differ by the quote's rounding.
UpdateQuoteLineItemInput.taxRate ● Float scalar
New tax rate in percent. Only applies to a free position; on a product position the tax rules of the product are kept and this field is ignored.
UpdateQuoteLineItemInput.label ● String scalar
New display label. Keeps the current label when omitted. On a product position the label replaces the product's name on the quote and on the order created from it; an empty string removes it again, so the position shows the product's name.
Member Of
updateQuoteLineItem mutation