Skip to main content

OrderLineCreateInput

No description

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

Fields

OrderLineCreateInput.quantity ● Int! non-null scalar miscellaneous

Number of variant items ordered.

OrderLineCreateInput.variantId ● ID! non-null scalar miscellaneous

Product variant ID.

OrderLineCreateInput.forceNewLine ● Boolean scalar miscellaneous

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 miscellaneous

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