API documentation
Method list
Test your request
Changelog


addInventoryWarehouse
The method allows you to add a new warehouse available in BaseLinker catalogues. Adding a warehouse with the same identifier again will cause updates of the previously saved warehouse. The method does not allow editing warehouses created automatically for the purpose of keeping external stocks of shops, wholesalers etc. Such warehouse may be later used in addInventory method.


Input parameters
warehouse_idintID of the warehouse
namevarchar(100)Warehouse name
descriptiontextWarehouse description
stock_editionboolIs manual editing of stocks permitted. A false value means that you can only edit your stock through the API.



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
warehouse_idintthe ID of created or updated warehouse



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