getInventoryCategories
The method allows you to retrieve a list of categories for a BaseLinker catalog.
Input parameters
Output data:
A sample request in PHP:
inventory_id | int | Catalog ID. The list of identifiers can be retrieved by the getInventories method (inventory_id field). To retrieve categories available for all catalogs created in BaseLinker, this field should be omitted. |
Output data
The method returns the data in JSON format.
status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
categories | array | An array of categories containing the fields listed below. |
| - category_id | int | Category ID. |
| - name | varchar(200) | Category name |
| - parent_id | int | Parent category identifier. |
Sample
Input data:Output data:
A sample request in PHP: