Via the REST API (as well as the web interface), you can retrieve an individual price list for a specific company or a specific price list group.
For example, if we want to retrieve the individual price list for a company with the code FIRMA, we use the URL .../c/{firma}/adresar/code:FIRMA/individualni-cenik[.xml].
As usual, a redirect to the numeric record ID will occur, and the resulting URL will be .../c/{firma}/adresar/400/individualni-cenik (if the company FIRMA has the internal ID 400).
You can of course also use a detail level.
| Individual price list for the company with ID |
| Individual price list for the price list group with ID |
Parameters
The parameter date in the URL (format YYYY-MM-DD) sets the date for which the individual price list should be exported. If the parameter is not specified, the current date is used.
The parameter currency in the URL sets the currency for which the individual price list should be exported. If the parameter is not specified, the domestic currency is used. The value of this parameter is the abbreviation of the desired currency.
The parameter centre in the URL sets the cost center for which the individual price list should be exported. If the parameter is not specified, the best prices are exported regardless of the cost center. The value of this parameter is the abbreviation of the desired cost center.
| Individual price list as of December 1, 2011. |
| Individual price list in a currency other than the domestic one. In this case, EUR. |
| Individual price list for a specific cost center. In this case, the cost center with the abbreviation C. |
Finding a General Price for a Customer
Similarly, you can retrieve all price variants for goods across all companies and price list groups:
| Complete price overview |
When looking up a price after downloading the entire "individualni-cenik" table, you must follow these steps:
look up the price for a specific company and product
look up the price for the price level and product (the price level can be found on the company record in the address book)
use the standard product price from the price list
apply the company's percentage discount to the resulting price (this can be found on the company record in the address book)
