Skip to main content

Items

Items, also known as line items, are the individual itemized costs on an Order.

Schema​

Item​

NameTypeDescriptionExample
idIDUnique identifier for this item"ckmnpybisiy5x08abky4g2d1f"
backorderLeadTimeDateTime?Lead time for a backordered item"2021-03-24 17:26:46.983Z"
backorderQuantityfloat?Amount on backorder for a backordered item20.0
createdAtDateTimeWhen this item was created"2021-03-24 17:26:46.983Z"
descriptionstring?Description of the item"3/4" EMT"
extPricefloat?EXT Price of the item125.00
glCodeGLCode?GL Code of the itemSee GL Code docs
lineNumberintNumber representing the index of the line item within it's order3
manufacturerstring?Name of the manufacturer for this item"Marcus Manufacturing"
manufacturerPartNumberstring?Manufacturer part number for this item (MPN)"267254567"
needByDateDateTime?When this item is needed by"2021-03-24 17:26:46.983Z"
notesstring?Additional handwritten details attached to this item"Requested ASAP"
orderOrder?Order this item is attached to, if attached to oneSee Order docs
orderIdID?ID of the order this item is attached to, if attached to one"ckmnpybisiy5x08abky4g2d1f"
quantityfloat?Quantity of this item100.0
requisitionItemIdsID[]?The IDs of any Requisition Items that this PO Item is sourced from["ckmnpybisiy5x08abky4g2d1f"]
taxCodeTaxCode?Tax code of the itemSee Tax Code docs
unitDiscountfloat?Discount being applied to the item (precision of 13)1.25
unitPricefloat?Unit price of the item1.25
unitsOfMeasurestring?Unit of measurement for this item"inches"
universalProductCodestring?Universal product code for this item (UPC)"037000282525"
updatedAtDateTimeWhen this item was last updated"2021-03-24 17:26:46.983Z"
vendorPartNumberstring?Part number for this item in the vendor's catalog"73595677"
customColumnValuestring?Value associated with the custom column"438076873"

Queries​

item​

Get a single item by ID.

Parameters​

NameTypeDescription
idIDUnique identifier for this item

Response​

A single Item.

Example Request​

query {
item(id: "ckb91igzt01e90733giki0v0p") {
description
lineNumber
id
quantity
unitPrice
unitsOfMeasure
}
}

Example Response​

{
"description": "3/4\" EMT",
"id": "ckb91igzt01e90733giki0v0p",
"lineNumber": 1,
"quantity": 2000,
"unitPrice": 0.22,
"unitsOfMeasure": "ft"
}

items​

Get the items on an order.

Parameters​

NameTypeDescription
orderIdIDThe order ID to retrieve items for

Accepts all standard pagination parameters.

Allowed orderBy fields: backorderLeadTime, createdAt, id, lineNumber, needByDate, universalProductCode, updatedAt, vendorPartNumber.

Default (direction, orderBy): (lineNumber, ASC)

Allowed filter fields: backorderLeadTime, createdAt, id, lineNumber, needByDate, universalProductCode, updatedAt, vendorPartNumber.

Response​

A list of Item objects.

Example Request​

query {
items(orderId: "ckb91igzt01e90733giki0v0p") {
description
lineNumber
id
quantity
unitPrice
unitsOfMeasure
}
}

Example Response​

[
{
"description": "3/4\" EMT",
"id": "ckb91igzt01e90733giki0v0p",
"lineNumber": 1,
"quantity": 2000,
"unitPrice": 0.22,
"unitsOfMeasure": "ft"
}
]