10.4 Prices

GET /prices/{idDist}/{idMeta} returns the product's price records: firstDate, lastDate, price, buyPrice, normalReturnPrice, corruptReturnPrice, advicePrice, ruleNo.

The POST /prices body is a list:

FieldTypeRequiredDescription
distCodetextYesDistributor code
metaCodetextYesProduct code (without batch)
firstDatedateYesFirst day the price is valid
buyPricenumberYesPrice; written as both the sales and the purchase price
normalReturnPrice, corruptReturnPrice, advicePricenumberNoIntact-goods return, damaged-goods return, recommended price
batchtextNoIf filled, the price is written to the batch product; if the batch does not exist, it is created from the main product
degreenumberNoPrice level
customerFilterShape, customerFilterValuetextTogetherRestricts the price to a customer group (e.g. DISTRIBUTOR GROUP and the group code). If both are empty, it is a general price
[{ "distCode": "DBH-TEST", "metaCode": "P0004", "firstDate": "2026-09-01", "buyPrice": 100, "normalReturnPrice": 100, "corruptReturnPrice": 90, "advicePrice": 120, "degree": 1 }]

The server calculates the end date: when a new price starts, the previous price of the same product is closed, and the latest price remains open-ended. If you send more than one period for the same product in a list, they are ordered by firstDate. If an element fails, processing stops; elements before it remain saved.