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
Output data:
A sample request in PHP:
warehouse_id | int | ID of the warehouse |
name | varchar(100) | Warehouse name |
description | text | Warehouse description |
stock_edition | bool | Is 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.
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 |
warehouse_id | int | the ID of created or updated warehouse |
Sample
Input data:Output data:
A sample request in PHP: