API documentation
Method list
Test your request
Changelog


updateInventoryProductsPrices
The method allows bulk update of gross prices of products (and/or their variants) in the BaseLinker catalog. Maximum 1000 products at a time.


Input parameters
inventory_idintCatalog ID. The list of identifiers can be retrieved using the method getInventories.
productsarrayAn array of products, where the key is a product ID and the value is a list of prices. When determining the variant price, provide variant ID as a product ID.
In the prices array the key should be the price group ID and the value - price for that price group. The list of price groups can be retrieved using the getInventoryPriceGroups method.



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 updated products.
warningsarrayWarning list for product updates. The key of each element is the product identifier, the value is the update error message. Only the keys containing an error are returned.



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