Types > OrderLineItemCreate
Commerce APITypesOrderLineItemCreate
OrderLineItemCreate

Description

Fields

custom_item_index: CustomItemIndex

Custom item index (makes variant optional when specified)


field_set_id: String


fields: [LineItemFieldCreate!]


quantity: Int!

The number of products that were purchased

Example: 0

Valid when: quantity is a positive integer


subscription_plan_index: SubscriptionPlanIndex

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


variant_id: String!

A unique product variant identifier

Example: "va_EQzGqWoY"

Valid when: variant_id matches regexp pattern: ^va_


Used By

Types

OrderCreate, OrderModify

Preview (typescript)

Loading module