API documentation
Method list
Test your request
Changelog


updateExternalStorageProductsQuantity
The method allows to bulk update the product stock (and/or variants) in an external storage (shop/wholesaler) connected to BaseLinker. Maximum 1000 products at a time.


Input parameters
storage_idvarchar(30)Storage ID in format "[type:shop|warehouse]_[id:int]" (e.g. "shop_2445").
productsarrayAn array of products. Each product is a separate element of the array. The product consists of a 3 element array of components:
0 => product ID number (varchar)
1 => variant ID number (0 if the main product is changed, not the variant) (int)
2 => Stock quantity (int)



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
counterintNumber of received items.
warningsarrayAn array of warning notices for product updates. The key to each item is the identifier of the sent category, the value is an error message when adding. Only the keys containing errors are returned.



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