get https://api.zenoti.com/v1/centers//categories/?type=
This API helps you to retrieve the details of a category.
You must specify the unique identifier of the location (center) as center_id and the unique identifier of the category as category_id in the API request. The API then retrieves the details of the category.
Response Details
| Name | Type | Description |
|---|---|---|
| id | guid | Unique 32-character identifier of the category. |
| code | string | Unique code set for the category. |
| name | string | Name of the category. |
| parent_category_id | string | Unique identifier of the parent category. |
| description | string | String that describes the category. |
| html_description | string | HTML string that describes the category. |
| show_in_catalog | boolean | Indicates whether the category is enabled or disabled in the catalog. |
| display_order | int | Order in which this category appears on the Webstore and on the Customer Mobile App (CMA). |
| error | object | Object that contains error message and error code details. For more information, refer to the error Object table. |
error Object
| code | message |
|---|---|
| 401 | Authorization has been denied for this request. |
| 502 | invalid center_id. |
| 400 | The request is invalid. |
