Job description
I will commission a PHP script that works as follows:
Iterating in a loop through a list of products.
1) Retrieve the product variant based on the given ID.
2) Retrieving the main product for the variant
3) Updating the 'wholesale price' field and saving the main product (updating only this field)
4) Updating the total stock of variants in the main product (i.e. if we have clothing X in variants S M L of 2pcs each, the main product should have a stock of 6pcs).
The shopper api is publicly available: