Often the prices are purchased price (basic price +margin+ transport + VAT). Could you recommend on how to handle this (e.g. via respective default factors)?

For adjust your consumer price to the basis price of the producer, we suggest using the World Bank data on taxes:https://data.worldbank.org/indicator/GC.TAX.IMPT.ZS.