GET api/{DataId}/pricelists
Vráti zoznam cenníkov
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataId |
Číslo dátového prostredia |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of PriceListName | Description | Type | Additional information |
---|---|---|---|
Id |
Oid cenníka |
globally unique identifier |
None. |
Name |
Názov cenníka |
string |
None. |
Type |
Typ cenníka |
PriceListType |
None. |
ValidFrom |
Dátum platnosti od (Ak je cenník platný neobmedzene, dátumy budú od MinDate po MaxDate) |
date |
None. |
ValidTo |
Dátum platnosti do (Ak je cenník platný neobmedzene, dátumy budú od MinDate po MaxDate) |
date |
None. |
Currency |
Kód meny |
string |
None. |
PriceLevel |
Cenová hladina. 0 znamená, že cenník platí pre všetky cenové hladiny |
integer |
None. |
Customers |
Odberatelia pre ktorých platí cenník |
Collection of PriceListCustomer |
None. |
PriceListItems |
Položky cenníka |
Collection of PriceListItem |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": "b73e28ab-b941-4b68-9391-e17347a44119", "Name": "sample string 2", "Type": 0, "ValidFrom": "2025-07-01T04:15:39.619124+02:00", "ValidTo": "2025-07-01T04:15:39.619124+02:00", "Currency": "sample string 5", "PriceLevel": 6, "Customers": [ { "CustomerId": "6a3e165e-3690-46a1-ac1f-9c46368334f7", "PrevadzkaId": "0f11cfb3-574a-4d1b-b19f-3a09da99df44" }, { "CustomerId": "6a3e165e-3690-46a1-ac1f-9c46368334f7", "PrevadzkaId": "0f11cfb3-574a-4d1b-b19f-3a09da99df44" } ], "PriceListItems": [ { "ProductId": "e5a6fa41-501c-40be-9e87-d1d0603c33d4", "Price": 2.0, "PriceVAT": 3.0 }, { "ProductId": "e5a6fa41-501c-40be-9e87-d1d0603c33d4", "Price": 2.0, "PriceVAT": 3.0 } ] }, { "Id": "b73e28ab-b941-4b68-9391-e17347a44119", "Name": "sample string 2", "Type": 0, "ValidFrom": "2025-07-01T04:15:39.619124+02:00", "ValidTo": "2025-07-01T04:15:39.619124+02:00", "Currency": "sample string 5", "PriceLevel": 6, "Customers": [ { "CustomerId": "6a3e165e-3690-46a1-ac1f-9c46368334f7", "PrevadzkaId": "0f11cfb3-574a-4d1b-b19f-3a09da99df44" }, { "CustomerId": "6a3e165e-3690-46a1-ac1f-9c46368334f7", "PrevadzkaId": "0f11cfb3-574a-4d1b-b19f-3a09da99df44" } ], "PriceListItems": [ { "ProductId": "e5a6fa41-501c-40be-9e87-d1d0603c33d4", "Price": 2.0, "PriceVAT": 3.0 }, { "ProductId": "e5a6fa41-501c-40be-9e87-d1d0603c33d4", "Price": 2.0, "PriceVAT": 3.0 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfPriceList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <PriceList> <Id>b73e28ab-b941-4b68-9391-e17347a44119</Id> <Name>sample string 2</Name> <Type>CustomerPriceList</Type> <ValidFrom>2025-07-01T04:15:39.619124+02:00</ValidFrom> <ValidTo>2025-07-01T04:15:39.619124+02:00</ValidTo> <Currency>sample string 5</Currency> <PriceLevel>6</PriceLevel> <Customers> <PriceListCustomer> <CustomerId>6a3e165e-3690-46a1-ac1f-9c46368334f7</CustomerId> <PrevadzkaId>0f11cfb3-574a-4d1b-b19f-3a09da99df44</PrevadzkaId> </PriceListCustomer> <PriceListCustomer> <CustomerId>6a3e165e-3690-46a1-ac1f-9c46368334f7</CustomerId> <PrevadzkaId>0f11cfb3-574a-4d1b-b19f-3a09da99df44</PrevadzkaId> </PriceListCustomer> </Customers> <PriceListItems> <PriceListItem> <ProductId>e5a6fa41-501c-40be-9e87-d1d0603c33d4</ProductId> <Price>2</Price> <PriceVAT>3</PriceVAT> </PriceListItem> <PriceListItem> <ProductId>e5a6fa41-501c-40be-9e87-d1d0603c33d4</ProductId> <Price>2</Price> <PriceVAT>3</PriceVAT> </PriceListItem> </PriceListItems> </PriceList> <PriceList> <Id>b73e28ab-b941-4b68-9391-e17347a44119</Id> <Name>sample string 2</Name> <Type>CustomerPriceList</Type> <ValidFrom>2025-07-01T04:15:39.619124+02:00</ValidFrom> <ValidTo>2025-07-01T04:15:39.619124+02:00</ValidTo> <Currency>sample string 5</Currency> <PriceLevel>6</PriceLevel> <Customers> <PriceListCustomer> <CustomerId>6a3e165e-3690-46a1-ac1f-9c46368334f7</CustomerId> <PrevadzkaId>0f11cfb3-574a-4d1b-b19f-3a09da99df44</PrevadzkaId> </PriceListCustomer> <PriceListCustomer> <CustomerId>6a3e165e-3690-46a1-ac1f-9c46368334f7</CustomerId> <PrevadzkaId>0f11cfb3-574a-4d1b-b19f-3a09da99df44</PrevadzkaId> </PriceListCustomer> </Customers> <PriceListItems> <PriceListItem> <ProductId>e5a6fa41-501c-40be-9e87-d1d0603c33d4</ProductId> <Price>2</Price> <PriceVAT>3</PriceVAT> </PriceListItem> <PriceListItem> <ProductId>e5a6fa41-501c-40be-9e87-d1d0603c33d4</ProductId> <Price>2</Price> <PriceVAT>3</PriceVAT> </PriceListItem> </PriceListItems> </PriceList> </ArrayOfPriceList>