---
title: "OrderLineItem"
description: "订单关联的商品信息下"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/order-line-item'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/order-line-item.md'
---
# OrderLineItem

订单关联的商品信息下

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

## Type Signature

`OrderLineItem`

## Fields

* `discountAllocations`

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

  应用在商品行上的折扣信息

* `discountedTotalPrice`

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

  商品行优惠后的金额

* `originalTotalPrice`

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

  商品行优惠前的金额

* `properties`

  [[LineItemCustomizedProperty]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/line-item-customized-property.md)

  商品自定义属性

* `quantity`

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

  商品行商品数量，包含编辑的订单商品数量

* `tags`

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

  商品标签

* `title`

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

  标题

* `variant`

  [ProductVariant](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-variant.md)

  商品变体，不支持自定义商品查询商品属性详情

## Schema Definition

```graphql
type OrderLineItem { 
	discountAllocations: [OrderDiscountAllocation]
	discountedTotalPrice: Money
	originalTotalPrice: Money
	properties: [LineItemCustomizedProperty]
	quantity: Int
	tags: String
	title: String
	variant: ProductVariant 
}
```

## Field from

* [FulfillmentLineItem](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/fulfillment-line-item.md).lineItem

  关联的商品信息

* [Order](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/order.md).lineItems

  订单关联的商品列表

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

