API documentation
Method list
Test your request
Changelog


getInventoryWarehouses
The method allows you to retrieve a list of warehouses available in BaseLinker inventories. 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. The "bl" value identifies BaseLinker-native warehouses; other values reflect the integration type that owns the warehouse (e.g. "shop", "warehouse", "fulfillment", "blconnect").
| - 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
| - addressvarchar(200)Warehouse street address. May be an empty string if no address is set.
| - postcodevarchar(20)Warehouse postal code. May be an empty string if no postal code is set.
| - cityvarchar(80)Warehouse city. May be an empty string if no city is set.
| - countrychar(2)Warehouse country as a 2-letter ISO 3166-1 country code (e.g. "PL", "DE", "GB"). May be an empty string if no country is set.



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