The input fields for a line item included in a draft order.
Access Scopes
Fields
appliedDiscount:
DraftOrderAppliedDiscountInput -
The custom discount to be applied.
bundleComponents:
BundlesDraftOrderBundleLineItemComponentInput -
The bundle components when the line item is a bundle.
customAttributes:
AttributeInput -
A generic custom attribute using a key value pair.
grams:
Int -
The weight in grams for custom line items. This field is ignored when `variantId` is provided.
originalUnitPrice:
Money -
The custom line item price without any discounts applied in shop currency. This field is ignored when `variantId` is provided.
originalUnitPriceWithCurrency:
MoneyInput -
The price in presentment currency, without any discounts applied, for a custom line item.
If this value is provided, `original_unit_price` will be ignored. This field is ignored when `variantId` is provided.
Note: All presentment currencies for a single draft should be the same and match the
presentment currency of the draft order.
requiresShipping:
Boolean -
Whether physical shipping is required for a custom line item. This field is ignored when `variantId` is provided.
sku:
String -
The SKU number for custom line items only. This field is ignored when `variantId` is provided.
taxable:
Boolean -
Whether the custom line item is taxable. This field is ignored when `variantId` is provided.
title:
String -
Title of the line item. This field is ignored when `variantId` is provided.
uuid:
String -
The UUID of the draft order line item. Must be unique and consistent across requests.
This field is mandatory in order to manipulate drafts with bundles.
variantId:
ID -
The ID of the product variant corresponding to the line item.
Must be null for custom line items, otherwise required.
weight:
WeightInput -
The weight unit and value inputs for custom line items only.
This field is ignored when `variantId` is provided.