> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/checkout/llms.txt)
> Source: https://docs.saleor.io/api-reference/checkout/inputs/checkout-line-input

# CheckoutLineInput Input Type

No description

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

<a id="fields"></a>

### Fields

<a id="quantity"></a>

#### [`quantity`](#quantity) ● [`Int!`](/api-reference/miscellaneous/scalars/int.md)

The number of items purchased.

<a id="variant-id"></a>

#### [`variantId`](#variant-id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

ID of the product variant.

<a id="price"></a>

#### [`price`](#price) ● [`PositiveDecimal`](/api-reference/miscellaneous/scalars/positive-decimal.md)

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.

<a id="price-override-reason"></a>

#### [`priceOverrideReason`](#price-override-reason) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

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

<a id="force-new-line"></a>

#### [`forceNewLine`](#force-new-line) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

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

<a id="metadata"></a>

#### [`metadata`](#metadata) ● [`[MetadataInput!]`](/api-reference/miscellaneous/inputs/metadata-input.md)

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.

<a id="member-of"></a>

### Member Of

[`CheckoutCreateInput`](/api-reference/checkout/inputs/checkout-create-input.md) input  ● [`checkoutLinesAdd`](/api-reference/checkout/mutations/checkout-lines-add.md) mutation
