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
Output data:
A sample request in PHP:
inventory_id | int | Catalog ID. The list of identifiers can be retrieved using the method getInventories. |
products | array | An 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.
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 |
counter | int | Number of updated products. |
warnings | array | Warning 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: