Discussions

Ask a Question
Back to All

Product Categories

Hi,

Is it possible to get a list of product categories?

I've tried:

  • {{third-party-api}}/api/business/{{business}}/branch/{{branch_id}}/product-category
  • {{third-party-api}}/api/business/{{business}}/category/product
  • {{third-party-api}}/api/business/{{business}}/branch/{{branch_id}}/category/product

I was following the format set by service categories and client categories. All my attempts are returning a 404 and I can't find any mention of endpoints relating to the desired functionality in the docs.

The use-case: building a custom online shop and I want to retrieve the product categories set in Phorest to build effective search and filtering mechanisms. I won't be over-using this endpoint, probably one request every 5 minutes to cache. If webhooks are supported in the future this could be extended to be indefinite.

Thanks in advance,

Rob