Skip to main content

Categories

Manage product categories.

Base URL: /api/v1/partner/category

Endpoints Overview

MethodEndpointDescription
GET/{id}Get category by id
POST/Create a new category
PUT/{id}Update category by id
DELETE/{id}Delete category by id
GET/List all categories

Get category by id

GET /api/v1/partner/category/{id}

Retrieve a single product category by its ID.

Path Parameters

ParameterTypeDescription
idstringThe id

Response

Returns a ProductCategoryView object.

FieldTypeRequiredDescription
idstringNoUnique identifier
companyIdstringNoCompany identifier
shopIdstringNoShop identifier
createdlongNoCreated timestamp (epoch ms)
modifiedlongNoLast modified timestamp (epoch ms)
deletedbooleanNoWhether the record is deleted
updatedbooleanNoWhether the record has been updated
namestringYesName
cannabisbooleanNoCannabis
blazeCategoryIdstringNoBlaze Category identifier
activebooleanNoWhether active (default: true)
unitTypeunittypeNoUnit Type (default: units)
lowThresholdnumberNoLow Threshold (default: ZERO)
complianceIdstringNoCompliance identifier
archivedbooleanNoArchived (default: false)
topLevelCategoryIdstringNoTop Level Category identifier
shopIdsstring[]NoShop Ids
parentCategoryIdstringNoParent Category identifier
wmCategorystringNoWm Category
externalIdstringNoExternal system identifier
priorityintegerNoPriority (default: 0)
masterIdstringNoMaster identifier
platformCategoryIdstringNoPlatform Category identifier
platformParentCategoryIdstringNoPlatform Parent Category identifier
sourceMapobjectNoSource Map
photoCompanyAssetNoPhoto
labelTemplateIdstringNoLabel Template identifier
categoryAppstringNoCategory App. One of: DISTRO, MANUFACTURING
unitTrackingEnabledbooleanNoUnit Tracking Enabled
isGiftCardbooleanNoIs Gift Card
keyfinal stringNoKey

Create a new category

POST /api/v1/partner/category

Create a new product category. Send a ProductCategoryAddRequest in the request body.

Request Body

FieldTypeRequiredDescription
namestringYesName
cannabisbooleanNoCannabis
priorityintegerNoPriority (default: 0)
activebooleanNoWhether active (default: true)
lowThresholdnumberNoLow Threshold
wmCategorystringNoWm Category
externalIdstringNoExternal system identifier
complianceIdstringNoCompliance identifier
parentIdstringNoParent identifier
shopIdstringNoShop identifier
topLevelCategoryIdstringNoTop Level Category identifier
photoCompanyAssetNoPhoto
labelTemplateIdstringNoLabel Template identifier
platformCategoryIdstringNoPlatform Category identifier
platformParentCategoryIdstringNoPlatform Parent Category identifier

Response

Returns a ProductCategoryView object.

FieldTypeRequiredDescription
idstringNoUnique identifier
companyIdstringNoCompany identifier
shopIdstringNoShop identifier
createdlongNoCreated timestamp (epoch ms)
modifiedlongNoLast modified timestamp (epoch ms)
deletedbooleanNoWhether the record is deleted
updatedbooleanNoWhether the record has been updated
namestringYesName
cannabisbooleanNoCannabis
blazeCategoryIdstringNoBlaze Category identifier
activebooleanNoWhether active (default: true)
unitTypeunittypeNoUnit Type (default: units)
lowThresholdnumberNoLow Threshold (default: ZERO)
complianceIdstringNoCompliance identifier
archivedbooleanNoArchived (default: false)
topLevelCategoryIdstringNoTop Level Category identifier
shopIdsstring[]NoShop Ids
parentCategoryIdstringNoParent Category identifier
wmCategorystringNoWm Category
externalIdstringNoExternal system identifier
priorityintegerNoPriority (default: 0)
masterIdstringNoMaster identifier
platformCategoryIdstringNoPlatform Category identifier
platformParentCategoryIdstringNoPlatform Parent Category identifier
sourceMapobjectNoSource Map
photoCompanyAssetNoPhoto
labelTemplateIdstringNoLabel Template identifier
categoryAppstringNoCategory App. One of: DISTRO, MANUFACTURING
unitTrackingEnabledbooleanNoUnit Tracking Enabled
isGiftCardbooleanNoIs Gift Card
keyfinal stringNoKey

Update category by id

PUT /api/v1/partner/category/{id}

Update an existing product category by ID. Send the full ProductCategoryView object in the request body.

Path Parameters

ParameterTypeDescription
idstringThe id

Request Body

FieldTypeRequiredDescription
idstringNoUnique identifier
companyIdstringNoCompany identifier
shopIdstringNoShop identifier
createdlongNoCreated timestamp (epoch ms)
modifiedlongNoLast modified timestamp (epoch ms)
deletedbooleanNoWhether the record is deleted
updatedbooleanNoWhether the record has been updated
namestringYesName
cannabisbooleanNoCannabis
blazeCategoryIdstringNoBlaze Category identifier
activebooleanNoWhether active (default: true)
unitTypeunittypeNoUnit Type (default: units)
lowThresholdnumberNoLow Threshold (default: ZERO)
complianceIdstringNoCompliance identifier
archivedbooleanNoArchived (default: false)
topLevelCategoryIdstringNoTop Level Category identifier
shopIdsstring[]NoShop Ids
parentCategoryIdstringNoParent Category identifier
wmCategorystringNoWm Category
externalIdstringNoExternal system identifier
priorityintegerNoPriority (default: 0)
masterIdstringNoMaster identifier
platformCategoryIdstringNoPlatform Category identifier
platformParentCategoryIdstringNoPlatform Parent Category identifier
sourceMapobjectNoSource Map
photoCompanyAssetNoPhoto
labelTemplateIdstringNoLabel Template identifier
categoryAppstringNoCategory App. One of: DISTRO, MANUFACTURING
unitTrackingEnabledbooleanNoUnit Tracking Enabled
isGiftCardbooleanNoIs Gift Card
keyfinal stringNoKey

Response

Returns a ProductCategoryView object.

FieldTypeRequiredDescription
idstringNoUnique identifier
companyIdstringNoCompany identifier
shopIdstringNoShop identifier
createdlongNoCreated timestamp (epoch ms)
modifiedlongNoLast modified timestamp (epoch ms)
deletedbooleanNoWhether the record is deleted
updatedbooleanNoWhether the record has been updated
namestringYesName
cannabisbooleanNoCannabis
blazeCategoryIdstringNoBlaze Category identifier
activebooleanNoWhether active (default: true)
unitTypeunittypeNoUnit Type (default: units)
lowThresholdnumberNoLow Threshold (default: ZERO)
complianceIdstringNoCompliance identifier
archivedbooleanNoArchived (default: false)
topLevelCategoryIdstringNoTop Level Category identifier
shopIdsstring[]NoShop Ids
parentCategoryIdstringNoParent Category identifier
wmCategorystringNoWm Category
externalIdstringNoExternal system identifier
priorityintegerNoPriority (default: 0)
masterIdstringNoMaster identifier
platformCategoryIdstringNoPlatform Category identifier
platformParentCategoryIdstringNoPlatform Parent Category identifier
sourceMapobjectNoSource Map
photoCompanyAssetNoPhoto
labelTemplateIdstringNoLabel Template identifier
categoryAppstringNoCategory App. One of: DISTRO, MANUFACTURING
unitTrackingEnabledbooleanNoUnit Tracking Enabled
isGiftCardbooleanNoIs Gift Card
keyfinal stringNoKey

Delete category by id

DELETE /api/v1/partner/category/{id}

Delete a product category by its ID.

Path Parameters

ParameterTypeDescription
idstringThe id

List all categories

GET /api/v1/partner/category

Retrieve all product categories. Returns the complete list without pagination.

Response

Returns a ListResult<ProductCategoryView> object.

FieldTypeRequiredDescription
idstringNoUnique identifier
companyIdstringNoCompany identifier
shopIdstringNoShop identifier
createdlongNoCreated timestamp (epoch ms)
modifiedlongNoLast modified timestamp (epoch ms)
deletedbooleanNoWhether the record is deleted
updatedbooleanNoWhether the record has been updated
namestringYesName
cannabisbooleanNoCannabis
blazeCategoryIdstringNoBlaze Category identifier
activebooleanNoWhether active (default: true)
unitTypeunittypeNoUnit Type (default: units)
lowThresholdnumberNoLow Threshold (default: ZERO)
complianceIdstringNoCompliance identifier
archivedbooleanNoArchived (default: false)
topLevelCategoryIdstringNoTop Level Category identifier
shopIdsstring[]NoShop Ids
parentCategoryIdstringNoParent Category identifier
wmCategorystringNoWm Category
externalIdstringNoExternal system identifier
priorityintegerNoPriority (default: 0)
masterIdstringNoMaster identifier
platformCategoryIdstringNoPlatform Category identifier
platformParentCategoryIdstringNoPlatform Parent Category identifier
sourceMapobjectNoSource Map
photoCompanyAssetNoPhoto
labelTemplateIdstringNoLabel Template identifier
categoryAppstringNoCategory App. One of: DISTRO, MANUFACTURING
unitTrackingEnabledbooleanNoUnit Tracking Enabled
isGiftCardbooleanNoIs Gift Card
keyfinal stringNoKey