Which price list items are assigned to a price level is shown by the relation ceniky to the cenova-uroven records.
Query
GET /c/{firma}/cenova-uroven/16.xml?relations=ceniky&detail=custom:kod,ceniky(kod,nazev)
The response contains the price level and, below it, a list of linked price list items:
<cenova-uroven>
<id>16</id>
<kod>331</kod>
<ceniky>
<cenik>
<id>192</id>
<kod>134-35 KK SD1 SERV1 NM.130</kod>
<nazev>134-35 KK SD1 SERV1 NM.130</nazev>
</cenik>
</ceniky>
</cenova-uroven>
ℹ️ A list of all relations of a price level is returned by /c/{firma}/cenova-uroven/relations.xml — besides ceniky, firmy, skupinyZbozi, and skupinyCen are also available.
The other way round
From the perspective of a price list item, the linked price levels are listed using the relation cenHladiny:
GET /c/{firma}/cenik/192.xml?relations=cenHladiny&detail=custom:kod,cenHladiny(id)
💡 The relation can also be removed using the same syntax — simply insert into cenHladiny the price level with the attribute action="delete", see Deleting the relation between a price level and a price list.
