PurchaseOrderDetailLineItem
A line item on the flat purchase order write/read response body (PurchaseOrderDetail). Money fields are JSON numbers.
idinteger
Example:
1client_line_idstringnullable
Caller-supplied idempotency key for this line, used to match a line on a later PATCH.
Example:
nullskustringnullable
Example:
TSHIRT-BLK-Mbarcodestringnullable
Example:
nulltitlestringnullable
Example:
Widgetimage_urlstringnullable
Example:
nullunit_costnumbernullable
Example:
4.5line_totalnumbernullable
Example:
45product_idstringnullable
Example:
gid://shopify/Product/1variant_idstringnullable
Example:
gid://shopify/ProductVariant/1location_idstringnullable
Example:
gid://shopify/Location/1location_namestringnullable
Example:
Main Warehousetax_percentstringnullable
A tax rate, not an amount, so unlike the money fields it is returned as a string rather than a number. Parse it before doing arithmetic with it.
Example:
0.0supplier_skustringnullable
Example:
nullnotestringnullable
Example:
nullvariant_titlestringnullable
Example:
Default Titlequantity_orderedinteger
Example:
10inventory_item_idstringnullable
Example:
gid://shopify/InventoryItem/1positioninteger
Example:
1added_during_receivingboolean
Example:
falsevariant_supplier_cost objectnullable
The supplier's catalog cost for this line item's variant, when known. Null when no supplier catalog match exists.
idinteger
Example:
501inventory_item_idstringnullable
Example:
gid://shopify/InventoryItem/1product_variant_idintegernullable
Example:
8801234567supplier_idintegernullable
Example:
42supplier_skustringnullable
Example:
SUP-WIDGET-1supplier_pricenumbernullable
Example:
4.5last_costnumbernullable
Example:
4.5currencystringnullable
Example:
USDis_defaultboolean
Example:
truepack_sizeintegernullable
Example:
1order_uomstringnullable
Example:
eachcase_costnumbernullable
Example:
4.5base_uomstringnullable
Example:
eachsold_bystringnullable
Example:
eachcreated_atstring<date-time>
Example:
2026-06-01T12:00:00.000Zupdated_atstring<date-time>
Example:
2026-06-01T12:00:00.000ZPurchaseOrderDetailLineItem
{
"id": 1,
"client_line_id": null,
"sku": "TSHIRT-BLK-M",
"barcode": null,
"title": "Widget",
"image_url": null,
"unit_cost": 4.5,
"line_total": 45,
"product_id": "gid://shopify/Product/1",
"variant_id": "gid://shopify/ProductVariant/1",
"location_id": "gid://shopify/Location/1",
"location_name": "Main Warehouse",
"tax_percent": "0.0",
"supplier_sku": null,
"note": null,
"variant_title": "Default Title",
"quantity_ordered": 10,
"inventory_item_id": "gid://shopify/InventoryItem/1",
"position": 1,
"added_during_receiving": false,
"variant_supplier_cost": {
"id": 501,
"inventory_item_id": "gid://shopify/InventoryItem/1",
"product_variant_id": 8801234567,
"supplier_id": 42,
"supplier_sku": "SUP-WIDGET-1",
"supplier_price": 4.5,
"last_cost": 4.5,
"currency": "USD",
"is_default": true,
"pack_size": 1,
"order_uom": "each",
"case_cost": 4.5,
"base_uom": "each",
"sold_by": "each"
},
"created_at": "2026-06-01T12:00:00.000Z",
"updated_at": "2026-06-01T12:00:00.000Z"
}