CalculatedDraftOrderLineItem

Required access

read_draft_orders access scope

The computed line items for a draft order.

Show definition
# The computed line items for a draft order.
type CalculatedDraftOrderLineItem {
  # Discount applied to the line item.
  appliedDiscount: DraftOrderAppliedDiscount

  # Indicates if this is a product variant line item, or a custom line item.
  custom: Boolean!

  # List of additional information (metafields) about the line item.
  customAttributes: [Attribute!]!

  # Total price with discounts applied.
  discountedTotal: MoneyV2!

  # Unit price with discounts applied.
  discountedUnitPrice: MoneyV2!

  # Name of the service provider who fulfilled the order.
  #
  # Valid values are either **manual** or the name of the provider.
  # For example, **amazon**, **shipwire**.
  fulfillmentService: FulfillmentService!

  # Image associated with the draft order line item.
  image: Image

  # Indicates whether the line item represents the puchase of a gift card.
  isGiftCard: Boolean!

  # Name of the product.
  name: String!

  # Total price (without discounts) of the line item, based on the original unit price of the variant x quantity.
  originalTotal: MoneyV2!

  # Variant price without any discounts applied.
  originalUnitPrice: MoneyV2!

  # Product associated with the draft order line item.
  product: Product

  # Number of variant items requested in the draft order.
  quantity: Int!

  # Whether physical shipping is required for the variant.
  requiresShipping: Boolean!

  # Variant SKU number.
  sku: String

  # Whether the variant is taxable.
  taxable: Boolean!

  # Title of the product or variant (this field only applies to custom line items).
  title: String!

  # Total value of the discount.
  totalDiscount: MoneyV2!

  # Variant associated with the draft order line item.
  variant: ProductVariant

  # Name of the variant.
  variantTitle: String

  # Name of the vendor who made the variant.
  vendor: String

  # Weight unit and value for a draft order line item.
  weight: Weight
}

Fields

appliedDiscount   (DraftOrderAppliedDiscount)

Discount applied to the line item.

custom   (Boolean!)

Indicates if this is a product variant line item, or a custom line item.

customAttributes   ([Attribute!]!)

List of additional information (metafields) about the line item.

discountedTotal   (MoneyV2!)

Total price with discounts applied.

discountedUnitPrice   (MoneyV2!)

Unit price with discounts applied.

fulfillmentService   (FulfillmentService!)

Name of the service provider who fulfilled the order.

Valid values are either manual or the name of the provider. For example, amazon, shipwire.

image   (Image)

Image associated with the draft order line item.

isGiftCard   (Boolean!)

Indicates whether the line item represents the puchase of a gift card.

name   (String!)

Name of the product.

originalTotal   (MoneyV2!)

Total price (without discounts) of the line item, based on the original unit price of the variant x quantity.

originalUnitPrice   (MoneyV2!)

Variant price without any discounts applied.

product   (Product)

Product associated with the draft order line item.

quantity   (Int!)

Number of variant items requested in the draft order.

requiresShipping   (Boolean!)

Whether physical shipping is required for the variant.

sku   (String)

Variant SKU number.

taxable   (Boolean!)

Whether the variant is taxable.

title   (String!)

Title of the product or variant (this field only applies to custom line items).

totalDiscount   (MoneyV2!)

Total value of the discount.

variant   (ProductVariant)

Variant associated with the draft order line item.

variantTitle   (String)

Name of the variant.

vendor   (String)

Name of the vendor who made the variant.

weight   (Weight)

Weight unit and value for a draft order line item.