Skip to main content
Version: 3.x

OrderLineCreateInput

No description

input OrderLineCreateInput {
quantity: Int!
variantId: ID!
forceNewLine: Boolean
price: PositiveDecimal
}

Fields

OrderLineCreateInput.quantity ● Int! non-null scalar

Number of variant items ordered.

OrderLineCreateInput.variantId ● ID! non-null scalar

Product variant ID.

OrderLineCreateInput.forceNewLine ● Boolean scalar

Flag that allow force splitting the same variant into multiple lines by skipping the matching logic.

Added in Saleor 3.6

OrderLineCreateInput.price ● PositiveDecimal scalar

Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used.

Added in Saleor 3.14
This API is currently in Feature Preview and can be subject to changes at later point.

Member of

DraftOrderCreateInput input ● orderLinesCreate mutation


Was this page helpful?