getExternalStorageCategories
The method allows you to retrieve a category list from an external storage (shop/wholesale) connected to BaseLinker.
Input parameters
Output data:
A sample request in PHP:
storage_id | varchar(30) | Storage ID in format "[type:shop|warehouse]_[id:int]" (e.g. "shop_2445"). |
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 |
storage_id | varchar(30) | Storage ID in format "[type:shop|warehouse]_[id:int]" (e.g. "shop_2445"). |
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: