Using the REST API (as well as the web interface), you can retrieve an individual price list for a given company or price list group.
For example, if we want to get 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, this will redirect to the numeric record ID, so the resulting URL is .../c/{firma}/adresar/400/individualni-cenik (if the company FIRMA has the internal ID 400).
You can, of course, also use the level of detail parameter.
| 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 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 the general price for a customer
Similarly, you can retrieve all price variants for goods for all companies and price list groups:
| Complete price overview |
When searching for a price, if you have downloaded the entire "individualni-cenik" table, you need to follow these steps:
Search for the price for a specific company and item
Search for the price for a price level and item (the price level can be found for the company in the address book)
Use the standard item price from the price list
Apply the company's percentage discount to the resulting price (found for the company in the address book)
