Skip to main content

PurchaseOrderDetailLineItem

A line item on a purchase order returned by the create, update and cancel endpoints.

idinteger

The line item's ID. Send it on PATCH to change or remove this line.

Example: 1
client_line_idstringnullable

The identifier you sent for this line, if any. Unique within the purchase order.

Example: null
skustringnullable

The product's SKU in the merchant's Shopify store.

Example: TSHIRT-BLK-M
barcodestringnullable

The item's barcode.

Example: null
titlestringnullable

Product title.

Example: Widget
image_urlstringnullable

The product image from the Shopify store.

Example: null
unit_costnumbernullable

Cost per unit, in the purchase order's currency.

Example: 4.5
line_totalnumbernullable

unit_cost times quantity_ordered, before tax.

Example: 45
product_idstringnullable

The Shopify product ID (gid://shopify/Product/<id>). You can look these IDs up with the Shopify Admin GraphQL API.

Example: gid://shopify/Product/1
variant_idstringnullable

The Shopify product variant ID (gid://shopify/ProductVariant/<id>). You can look these IDs up with the Shopify Admin GraphQL API.

Example: gid://shopify/ProductVariant/1
location_idstringnullable

The Shopify location for this line (gid://shopify/Location/<id>).

Example: gid://shopify/Location/1
location_namestringnullable

Name of the line's location.

Example: Main Warehouse
tax_percentstringnullable

Tax rate for the line as a percentage, returned as a string, for example "8.25" for 8.25%.

Example: 0.0
supplier_skustringnullable

The supplier's own code for this item.

Example: null
notestringnullable

A note on this line.

Example: null
variant_titlestringnullable

The variant's title, for example a size or colour.

Example: Default Title
quantity_orderedinteger

Number of units ordered.

Example: 10
inventory_item_idstringnullable

The Shopify inventory item ID (gid://shopify/InventoryItem/<id>). You can look these IDs up with the Shopify Admin GraphQL API.

Example: gid://shopify/InventoryItem/1
positioninteger

Display order of the line on the purchase order.

Example: 1
added_during_receivingboolean

True when the line was added while receiving stock, not when the order was placed.

Example: false
variant_supplier_cost objectnullable

This item's entry in the supplier's price list in Bookkeep: the supplier's SKU, prices and pack details. Null when none is recorded.

inventory_item_idstringnullable

The Shopify inventory item the entry is for, as the number only, without the gid://shopify/InventoryItem/ prefix the line's own inventory_item_id has.

Example: 46217359098139
supplier_skustringnullable

The supplier's code for the item.

Example: SUP-WIDGET-1
supplier_pricenumbernullable

The price on the supplier's price list.

Example: 4.5
last_costnumbernullable

The unit cost most recently paid for the item.

Example: 4.5
currencystringnullable

Currency of supplier_price and last_cost.

Example: USD
is_defaultboolean

Whether this supplier is the item's default supplier.

Example: true
pack_sizeintegernullable

Units per pack when ordering.

Example: 1
order_uomstringnullable

Unit the item is ordered in, for example case.

Example: each
case_costnumbernullable

Cost of one ordering unit.

Example: 4.5
base_uomstringnullable

Unit the item is stocked in.

Example: each
sold_bystringnullable

Unit the item is sold in.

Example: each
created_atstring<date-time>
Example: 2026-06-01T12:00:00.000Z
updated_atstring<date-time>
Example: 2026-06-01T12:00:00.000Z
PurchaseOrderDetailLineItem
{
"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": {
"inventory_item_id": "46217359098139",
"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"
}