getInventoryWarehouses
The method allows you to retrieve a list of warehouses available in BaseLinker catalogues. The method also returns information about the warehouses created automatically for the purpose of keeping external stocks (shops, wholesalers etc.)
Input parameters
Output data:
A sample request in PHP:
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 |
warehouses | array | An array of warehouses containing the fields listed below |
| - warehouse_type | varchar(30) | Warehouse type. One of the following values: [bl|shop|warehouse]. |
| - warehouse_id | int | Warehouse identifier |
| - name | varchar(100) | Warehouse name |
| - description | text | Warehouse description |
| - stock_edition | bool | Is manual stock editing permitted. A false value means that you can only edit your stock through the API. |
| - is_default | bool | Is this warehouse a default warehouse |
Sample
Input data:Output data:
A sample request in PHP: