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:
| Field | Type | Required | Description |
|---|---|---|---|
distCode | text | Yes | Distributor code |
metaCode | text | Yes | Product code (without batch) |
firstDate | date | Yes | First day the price is valid |
buyPrice | number | Yes | Price; written as both the sales and the purchase price |
normalReturnPrice, corruptReturnPrice, advicePrice | number | No | Intact-goods return, damaged-goods return, recommended price |
batch | text | No | If filled, the price is written to the batch product; if the batch does not exist, it is created from the main product |
degree | number | No | Price level |
customerFilterShape, customerFilterValue | text | Together | Restricts 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.