API documentation
Method list
Test your request
Changelog


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
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
warehousesarrayAn array of warehouses containing the fields listed below
| - warehouse_typevarchar(30)Warehouse type. One of the following values: [bl|shop|warehouse].
| - warehouse_idintWarehouse identifier
| - namevarchar(100)Warehouse name
| - descriptiontextWarehouse description
| - stock_editionboolIs manual stock editing permitted. A false value means that you can only edit your stock through the API.
| - is_defaultboolIs this warehouse a default warehouse



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