Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

CheckoutLineUpdateInput Input Type

input CheckoutLineUpdateInput {
  variantId: ID @deprecated(reason: "Use `lineId` instead.")
  quantity: Int
  price: PositiveDecimal
  priceOverrideReason: String
  lineId: ID
  metadata: [MetadataInput!]
}

Fields

variantId

variantId · ID

ID of the product variant.

quantity

quantity · Int

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

price

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.

priceOverrideReason

priceOverrideReason · String

Reason explaining why a custom price was set on the line, for debugging and auditing. Can be set only by apps with HANDLE_CHECKOUTS permission and only when the line has a price override. Setting a new price without a reason clears the previous reason. Blank values are stored as no reason. Limited to 255 characters; longer values are truncated.

Added in Saleor 3.23

lineId

lineId · ID

ID of the line.

metadata

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.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?