---
title: "OrderLineItem"
description: >
  Represents a single line in an order. There is one line item for each distinct product variant.
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/order-line-item'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/order-line-item.md'
---
# OrderLineItem

Represents a single line in an order. There is one line item for each distinct product variant.

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

## Type Signature

`OrderLineItem`

## Fields

* `discountAllocations`

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

  The discounts that have been allocated onto the order line item by discount applications.

* `discountedTotalPrice`

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

  The total price of the line item, including discounts, and displayed in the presentment currency.

* `originalTotalPrice`

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

  The total price of the line item, not including any discounts. The total price is calculated using the original unit price multiplied by the quantity, and it's displayed in the presentment currency.

* `properties`

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

  The properties of the product

* `quantity`

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

  The quantity of the product in the product line, including the quantity of the edited order items.

* `tags`

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

  The tag of the product

* `title`

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

  The title of the product combined with title of the variant.

* `variant`

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

  The product variant object associated to the line item. Unsupported: Custom product query for retrieving product attribute details.

## Schema Definition

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

## Field from

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

  List of the order’s line items.

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

  The associated order's line item.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

