Skip to main content

CheckoutLineUpdateInput Input Type

No description

input CheckoutLineUpdateInput {
variantId: ID @deprecated
quantity: Int
price: PositiveDecimal
lineId: ID
metadata: [MetadataInput!]
}

Fields

quantity ● Int

The number of items purchased. Optional for apps, required for any other users.

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.

lineId ● ID

ID of the line.

metadata ● [MetadataInput!]

Checkout line public metadata. Will add and update keys. To delete keys use deleteMetadata mutation.

Added in Saleor 3.21. 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.

Show deprecated

Member Of

checkoutLinesUpdate mutation