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 item3/4" EMT
extPricefloat?EXT Price of the item125.00
glCodeGLCode?GL Code of the item (includes only the id and code fields)See GL Code docs
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"
orderIdID?ID of the order this item is attached to, if attached to one"ckmnpybisiy5x08abky4g2d1f"
quantityfloat?Quantity of this item100
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 itemFT
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"
customColumnValuestring?Value associated with the custom column"438076873"

REST Endpoints​

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"
}
]