---
title: "CheckoutLineItem"
description: "结帐中的单个订单项，按变体和属性分组。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-line-item'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-line-item.md'
---
# CheckoutLineItem

结帐中的单个订单项，按变体和属性分组。

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Fields

* `quantity`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/int.md)

  商品数量

* `discountAllocations`

  [[DiscountAllocation]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/discount-allocation.md)

  折扣应用程序已分配给结账行项目的折扣。

* `variantId`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  变体ID

* `id`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  全球唯一标识符。

* `title`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  行项目的标题。默认为产品的标题。

* `price`

  [Money](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/money.md)

  商品售价

* `properties`

  [[CheckoutLineItemProperty]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-line-item-property.md)

  商品的自定义属性列表。

## Field from

* [Checkout](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout.md).lineItems

