logo
At this endpoint, we can set the purchase price for products, and additionally, we can set the purchase price for a given warehouse

Table of contents

Glossary

Name
Explanation
default
Default purchase price of product
perWarehouse
Purchase price per warehouse, used to calculate weighted average purchase price
skuId
SKU of product

PUT - import purchase prices

⚠️
Provided purchase price data will override previous stored information for this product.
In order to set or update purchase prices use PUT /api/v1/pricehelper/integrations/auth-required/purchase-prices. The sequence diagram below shows the process:
Image without caption
Example request:
json
curl -X PUT "https://api-preprod.one.unity.pl/api/v1/catalog/integrations/auth-required/dictionaries/manufacturers/cf333fb0-5dde-41e4-a812-50688ef93ee4" -H "accept: */*" -H "one-tenant: {tenant}" -H "ApiAuth: {apiKey}" -d "{ "purchasePrices": [ { "default": 500, "perWarehouse": { }, "skuId": "888" }, { "default": 150, "perWarehouse": { "WRO": 200, "WRO-1": 120 }, "skuId": "zag" } ] }

Powered by Notaku