Types > OrderLineItem
Commerce APITypesOrderLineItem
OrderLineItem

Description

Fields

custom_item_index: Int!

Custom item index (makes variant optional when specified)

Example: -1


detail: OrderLineItemDetail


discount_preview: Int!

Discount preview for automatically applied promotions

Example: 100


field_set: ProductFieldSet

Field set fields on this line item belong to

Expandable


fields: [LineItemField!]!


fulfillable_quantity: Int!

The amount available for fulfillment

Example: 0


fulfillment_status: OrderLineItemFulfillmentStatus!

How far along an order is in terms line items fulfilled

Example: "unfulfilled"


id: String!

Unique line item identifier. See also: Unique Identifiers

Example: "li_EQzGqWoY"


quantity: Int!

The number of products that were purchased

Example: 0


subscription: Subscription

If subscription was initiated by this line item, this is the one

Expandable

Permission bit: "subscriptions.read"


subscription_plan_index: Int!

Product subscription plan index if subscription needs to be initiated, -1 for no subscription

Example: -1


variant: ProductVariant

Product variant for this line item

Expandable

Permission bit: "product_variants.read"


variant_id: String


Used By

Types

Order

Preview (typescript)

Loading module