Skip to main content

UpdateOrderLineItemInput

New quantity and final price of a line item of an order created through the API. Quantity and price are always given together, so the line item never combines a new quantity with a price meant for the old one.

input UpdateOrderLineItemInput {
id: ID!
quantity: Int!
unitPrice: Float!
taxRate: Float
}

Fields​

UpdateOrderLineItemInput.id ● ID! non-null scalar​

ID of the line item to change.

UpdateOrderLineItemInput.quantity ● Int! non-null scalar​

New number of units. Must be at least 1.

UpdateOrderLineItemInput.unitPrice ● Float! non-null scalar​

New final price per unit in the order's currency, read in the order's tax status. Taken over as it is: the line item total is this price times the quantity, rounded to the currency's item rounding.

UpdateOrderLineItemInput.taxRate ● Float scalar​

New tax rate of the line item in percent, e.g. 19 for 19%. Defaults to the current tax rate of the line item. Ignored when the order is tax-free.

Member Of​

updateOrderLineItem mutation