API documentation
Method list
Test your request
Changelog


getCategories
The method allows you to download a list of categories for a BaseLinker storage or a shop storage connected to BaseLinker.


Input parameters
storage_idvarchar(30)Storage ID in format "[type:bl|shop|warehouse]_[id:int]" (e.g. "shop_2445").



Output data
The method returns the data in JSON format.
statusvarchar(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
storage_idvarchar(30)Storage ID in format "[type:bl|shop|warehouse]_[id:int]" (e.g. "shop_2445").
categoriesarrayAn array of categories containing the fields listed below.
| - category_idintCategory ID.
| - namevarchar(200)Category name
| - parent_idintParent category identifier.



Sample
Input data:
Output data:
A sample request in php: