Skip to main content

Catalog Products

A Catalog Product is a custom product definition for your organization. These products will be available to your organization (and only your organization) when searching through the catalog in Kojo, on both web and mobile.

Schema

CatalogProduct

NameTypeDescriptionExample
idIDUnique identifier for product"clktd7c1s0001ruj55b7gfuyh"
createdAtDateTimeWhen this product was created"2023-08-02T06:46:29.056Z"
updatedAtDateTimeWhen this product was updated"2023-08-02T06:46:29.056Z"
alsoKnownAsstring[]Array of strings for alternate terms to identify this product["goggles"]
categoriesCategory[]❌ Not implemented Categories this product is associated withSee Category docs
descriptionstringPrimary description/title for this product"Tinted Safety Glasses"
detailedDescriptionstring?Additional details for this product"These performance safety glasses are designed with high impact, fog-free lenses."
facetsFacet[]❌ Not implemented List of properties associated with this productSee Facet docs
manufacturerstring?Manufacturer name for this product"Milwaukee"
mpnstring?Manufacturer Part Number for this product"48-73-2025"
unitsOfMeasurestring?Units of Measure (UOM) for this product"EA"
upcstring?Universal Product Code for this product"045242552436"

Category

NameTypeDescriptionExample
idIDUnique identifier for category"clktd7c1s0001ruj55b7gfuyh"
createdAtDateTimeWhen this category was created"2023-08-02T06:46:29.056Z"
updatedAtDateTimeWhen this category was updated"2023-08-02T06:46:29.056Z"
namestringName of the category"Eyewear"
pathstringNewline-separated heirarchical category taxonomy path"Safety Products\nEyewear" - "Safety Products" is the primary category; "Eyewear" is the subcategory

Facet

NameTypeDescriptionExample
idIDUnique identifier for facet"clktd7c1s0001ruj55b7gfuyh"
createdAtDateTimeWhen this facet was created"2023-08-02T06:46:29.056Z"
updatedAtDateTimeWhen this facet was updated"2023-08-02T06:46:29.056Z"
namestringName of the facet type"Color"
valuestringValue of the facet property"Green"

REST Endpoints

getOrCreateCatalogProduct

Finds or Creates and returns a custom Catalog Product for your organization. These products are considered unique by description/manufacturer/mpn/unitsOfMeasure/upc.

Parameters

NameTypeDescriptionExample
alsoKnownAsstring[]Array of strings for alternate terms to identify this product["goggles"]
categoryPathstring?Newline-separated category hierarchy names. This path can have at most four levels of categories/subcategories."Safety Products\nEyewear"
descriptionstringPrimary description/title for this product"Tinted Safety Glasses"
detailedDescriptionstring?Additional details for this product"These performance safety glasses are designed with high impact, fog-free lenses."
facetsFacet[]List of properties associated with this product[{ name: "Color", value: "Tinted" }]
manufacturerstring?Manufacturer name for this product"Milwaukee"
mpnstring?Manufacturer Part Number for this product"48-73-2025"
unitsOfMeasurestring?Units of Measure (UOM) for this product"EA"
upcstring?Universal Product Code for this product"045242552436"

Example Request

POST https://api.kojo.tech/catalogProducts
{
"alsoKnownAs": ["tinty lens", "MW48-73-2025"],
"categoryPath": "Safety Products\nEyewear",
"description": "Tinted Safety Glasses",
"detailedDescription": "These performance safety glasses are designed with high impact, fog-free lenses.",
"facets": [
{ "name": "Color", "value": "Tinted" },
{ "name": "Size", "value": "Large" }
],
"manufacturer": "Milwaukee",
"mpn": "48-73-2025",
"unitsOfMeasure": "EA",
"upc": "045242552436"
}

Example Response

Returns the Catalog Product record.

{
"id": "clktd7c1s0001ruj55b7gfuyh",
"createdAt": "2023-08-02T06:46:29.056Z",
"updatedAt": "2023-08-02T06:46:29.056Z",
"alsoKnownAs": [
"tinty lens",
"MW48-73-2025"
],
"description": "Tinted Safety Glasses",
"detailedDescription": "These performance safety glasses are designed with high impact, fog-free lenses.",
"manufacturer": "Milwaukee",
"mpn": "48-73-2025",
"upc": "045242552436",
"unitsOfMeasure": "EA"
}