Update the prices of many products and variations in one request, by id, product code, EAN code or ERP id.
Update prices in bulk
Updates the prices of products and variations. The body is an array; each element names one product or variation, or a code that can match several, and the prices to set. Prices you leave out keep their value. Products and variations are not created.
Which items an element updates depends on its identifier and its price fields:
product_idupdates that product withprice,suggested_retail_price,vatandinventory_price.additional_priceis ignored.variation_idupdates that variation withinventory_priceandadditional_price. The other price fields are ignored.code,ean_codeanderp_idare looked up in both products and variations, and every match is updated: products if the element has a product price field, variations if it hasinventory_priceoradditional_price. An element that hasadditional_priceand a product-only field (price,suggested_retail_priceorvat) returns400.
Deleted products and variations are never matched. Send each product or variation once per request.
The response lists the updated products and variations, highest id first, not in request order. If some
elements updated nothing (an unknown identifier, or price fields that don't apply to it), the response
lists them in not_found. If no element matched anything, the response is 404; if no element has a
price field that applies to its identifier, it is 400.
Update prices in bulk › Request Body
product_idUpdates the product with this id.
variation_idUpdates the variation with this id.
codeUpdates every product whose product code is this value and every variation whose code is this value.
ean_codeUpdates every product and variation with this EAN code.
erp_idUpdates every product and variation with this ERP id.
priceThe product's base price, stored with 5 decimals. Products only.
suggested_retail_priceThe product's suggested retail price, stored with 5 decimals. Products only.
vatThe product's VAT percentage, stored with 2 decimals. Products only.
inventory_priceThe inventory price, stored with 2 decimals. Products and variations.
additional_priceThe variation's additional price on top of the product's price, stored with 2 decimals. Variations only.
Update prices in bulk › Responses
The updated products and variations, and not_found if some elements updated nothing. The response has no paging links.
hrefThe URL of the request.
The elements that updated nothing, each as its identifier field and the value you sent. Present only if some elements updated nothing.