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
costCategoryCostCategory?Cost category of the itemSee Cost Category docs
costsInventoryItemLedgerEntryInventoryItemLedgerEntry?Associated inventory item ledger entry-
costsInventoryItemLedgerEntryIdID?ID of the associated inventory item ledger entry"ckmnpybisiy5x08abky4g2d1f"
costTypeCostType?Cost type of the item-
createdAtDateTimeWhen this item was created"2021-03-24 17:26:46.983Z"
customColumnValuestring?Value associated with the custom column"438076873"
descriptionstring?Description of the item"3/4" EMT"
destinationInventoryItemLedgerInventoryItemLedger?Destination inventory item ledger-
expectedDeliveryTimeDateTime?Expected delivery time for this item"2021-03-25 10:00:00.000Z"
extendedQuantityfloat?Extended quantity (calculated with unit conversions)500.0
extendedUOMstring?Extended unit of measure"ft"
extPricefloat?EXT Price of the item125.00
extPriceIncludingTaxfloat?Extended price including tax137.50
glCodeGLCode?GL Code of the item (includes only the id and code fields)See GL Code docs
itemCodeItemCode?Item code object with id, code, and description-
itemCodeIdID?ID of the item code"ckmnpybisiy5x08abky4g2d1f"
itemCodeTextstring?Free-form item code text from integration data"ELEC-001"
lineNumberintNumber representing the index of the line item within it's order3
manufacturerstring?Name of the manufacturer for this item"Dan's Manufacturing"
manufacturerPartNumberstring?Manufacturer part number for this item (MPN)"34857653"
needByDateDateTime?When this item is needed by"2021-03-24 17:26:46.983Z"
notesstring?Additional handwritten details attached to this item"This is for me"
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"
phasePhase?Phase code of the itemSee Phase docs
pricingUOMstring?Pricing unit of measure"ft"
quantityfloat?Quantity of this item100
requestedUOMstring?Requested unit of measure"ft"
scaledUnitPricefloat?Scaled unit price (when UOM v2 feature is enabled)0.25
subJobJob?Sub-job associated with the itemSee Job docs
taxCodeTaxCode?Tax code of the item (includes only the id, code, taxPercent fields)See 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"FT"
unitsOfMeasureIdstring?ID of the unit of measure record"ckmnpybisiy5x08abky4g2d1f"
universalProductCodestring?Universal product code for this item (UPC)"98763425"
updatedAtDateTimeWhen this item was last updated"2021-03-24 17:26:46.983Z"
vendorPartNumberstring?Part number for this item in the vendor's catalog"438076873"

REST Endpoints​

GET /items​

Get all items across all orders for your organization. This endpoint is optimized for bulk data pulling and warehousing operations.

Parameters​

Accepts all standard pagination parameters with a maximum limit of 2500 items per request.

NameTypeDescriptionRequired
limitint?Maximum number of items to return (max: 2500, default: 500)No
offsetint?Number of items to skip (default: 0)No
filterobject?Filter criteria for itemsNo
filter[orderId]ID?Filter items by a specific order IDNo
filter[orderId_in]ID[]?Filter items by multiple order IDsNo
filter[jobId]ID?Filter items by a specific job ID (from the order's job)No
filter[jobId_in]ID[]?Filter items by multiple job IDsNo
filter[vendorId]ID?Filter items by a specific vendor ID (from the order's vendor)No
filter[vendorId_in]ID[]?Filter items by multiple vendor IDsNo
orderBystring?Field to sort by (default: createdAt)No
directionASC \| DESCSort direction (default: DESC)No

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

See standard filter documentation for additional filterable fields: backorderLeadTime, createdAt, id, lineNumber, needByDate, universalProductCode, updatedAt, vendorPartNumber.

Response​

Returns an object with pagination metadata and an array of item objects.

NameTypeDescription
metaobjectPagination metadata
meta.totalintTotal number of items matching the filters
meta.limitintNumber of items requested (max 2500)
meta.offsetintNumber of items skipped
dataobject[]Array of item objects

Each item object in the data array includes the following fields:

NameTypeDescription
idIDUnique identifier for this item
backorderLeadTimeDateTime?Lead time for a backordered item
backorderQuantityfloat?Amount on backorder for a backordered item
costsInventoryItemLedgerEntryIdID?Associated inventory item ledger entry ID
createdAtDateTimeWhen this item was created
customColumnValuestring?Value associated with a custom column
descriptionstring?Description of the item
extPricefloat?Extended price of the item
lineNumberintNumber representing the index of the line item within its order
manufacturerstring?Name of the manufacturer for this item
manufacturerPartNumberstring?Manufacturer part number (MPN)
needByDateDateTime?When this item is needed by
expectedDeliveryTimeDateTime?Expected delivery time
notesstring?Additional handwritten details
orderIdID?ID of the order this item is attached to
quantityfloat?Quantity of this item
extendedQuantityfloat?Extended quantity (calculated with unit conversions)
unitDiscountfloat?Discount being applied to the item
unitPricefloat?Unit price of the item
unitsOfMeasurestring?Unit of measurement for this item
requestedUOMstring?Requested unit of measure
pricingUOMstring?Pricing unit of measure
extendedUOMstring?Extended unit of measure
universalProductCodestring?Universal product code (UPC)
updatedAtDateTimeWhen this item was last updated
vendorPartNumberstring?Part number in the vendor's catalog
phaseCodeCodestring?Phase code string from item or integration data
costCategoryCodestring?Cost category code string from item or integration data
glCodeCodestring?GL code string from item or integration data
taxCodeCodestring?Tax code string from item or integration data
costTypeCodestring?Cost type code string from item or integration data
jobIdID?Job ID from the parent order (denormalized for efficient querying)
vendorIdID?Vendor ID from the parent order (denormalized for efficient querying)
itemCodeobject?Full ItemCode object with id, code, and description fields
scaledUnitPricefloat?Scaled unit price (when UOM v2 feature is enabled)
itemCodeTextstring?Free-form item code text from integration data

Example Request (Single Filter)​

GET https://api.kojo.tech/items?limit=100&offset=0&filter[jobId]=ckb91ig8400d307335u4p92lq

Example Request (Multiple Vendors)​

GET https://api.kojo.tech/items?limit=100&filter[vendorId_in][]=ckb91ig8400d307335u4p92lq&filter[vendorId_in][]=ckb91ig8400d307335u4p92lr&filter[vendorId_in][]=ckb91ig8400d307335u4p92ls

Example Request (Combined Filters)​

GET https://api.kojo.tech/items?filter[jobId]=ckb91ig8400d307335u4p92lq&filter[orderId]=ckb91igzr01e70733dehis81o&orderBy=createdAt&direction=DESC

Example Response​

{
"meta": {
"total": 1500,
"limit": 100,
"offset": 0
},
"data": [
{
"backorderLeadTime": null,
"backorderQuantity": null,
"costsInventoryItemLedgerEntryId": null,
"createdAt": "2020-06-10T07:37:04.646Z",
"customColumnValue": null,
"description": "3/4\" EMT",
"extPrice": 440.0,
"id": "ckb91igzt01e90733giki0v0p",
"lineNumber": 1,
"manufacturer": null,
"manufacturerPartNumber": "",
"needByDate": null,
"expectedDeliveryTime": null,
"notes": null,
"orderId": "ckb91igzr01e70733dehis81o",
"quantity": 2000,
"extendedQuantity": 2000,
"unitDiscount": null,
"unitPrice": 0.22,
"unitsOfMeasure": "ft",
"requestedUOM": "ft",
"pricingUOM": "ft",
"extendedUOM": "ft",
"universalProductCode": null,
"updatedAt": "2020-06-10T07:37:04.646Z",
"vendorPartNumber": "12634534",
"phaseCodeCode": "01-100",
"costCategoryCode": "01",
"glCodeCode": "5000",
"taxCodeCode": "TAX1",
"costTypeCode": "LABOR",
"jobId": "ckb91ig8400d307335u4p92lq",
"vendorId": "ckb91ig8400d307335u4p92lr",
"itemCode": {
"id": "ckb91igzt01e90733giki0v0q",
"code": "PIPE-001",
"description": "3/4\" EMT Pipe"
},
"scaledUnitPrice": 0.22,
"itemCodeText": "PIPE-001"
}
]
}

GET /items/:id​

Get a single item by ID.

Parameters​

NameTypeDescription
idIDUnique identifier for this item

Response​

A single Item.

Example Request​

GET https://api.kojo.tech/items/ckb91igzt01e90733giki0v0p

Example Response​

{
"backorderLeadTime": null,
"backorderQuantity": null,
"createdAt": "2020-06-10T07:37:04.646Z",
"description": "3/4\" EMT",
"extPrice": null,
"id": "ckb91igzt01e90733giki0v0p",
"lineNumber": 1,
"manufacturer": null,
"manufacturerPartNumber": "",
"needByDate": null,
"notes": null,
"quantity": 2000,
"unitDiscount": null,
"unitPrice": null,
"unitsOfMeasure": "ft",
"universalProductCode": null,
"updatedAt": "2020-06-10T07:37:04.646Z",
"orderId": "ckb91igzr01e70733dehis81o"
}

GET /orders/:id/items​

Read the items associated with an order.

Parameters​

Accepts all standard pagination parameters.

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

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

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

Response​

A list of Item objects.

Example Request​

GET https://api.kojo.tech/orders/ckb91ig8400d307335u4p92lq/items

Example Response​

[
{
"backorderLeadTime": null,
"backorderQuantity": null,
"createdAt": "2020-06-10T07:37:04.646Z",
"description": "3/4 inch",
"extPrice": null,
"id": "ckb91igzt01e90733giki0v0p",
"lineNumber": 1,
"manufacturer": null,
"manufacturerPartNumber": "",
"needByDate": null,
"notes": null,
"quantity": 2000,
"unitDiscount": null,
"unitPrice": null,
"unitsOfMeasure": "ft",
"universalProductCode": null,
"updatedAt": "2020-06-10T07:37:04.646Z",
"orderId": "ckb91ig8400d307335u4p92lq",
"vendorPartNumber": "12634534"
}
]