Skip to main content

CheckoutLineInput Input Type

No description

input CheckoutLineInput {
quantity: Int!
variantId: ID!
price: PositiveDecimal
forceNewLine: Boolean
metadata: [MetadataInput!]
}

Fields

quantity ● Int!

The number of items purchased.

variantId ● ID!

ID of the product variant.

price ● PositiveDecimal

Custom price of the item. Can be set only by apps with HANDLE_CHECKOUTS permission. When the line with the same variant will be provided multiple times, the last price will be used.

forceNewLine ● Boolean

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

metadata ● [MetadataInput!]

Fields required to update the object's metadata. Can be read by any API client authorized to read the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

Member Of

CheckoutCreateInput input ● checkoutLinesAdd mutation