GET api/{DataId}/pricelists

Vráti zoznam cenníkov

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DataId

Číslo dátového prostredia

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PriceList
NameDescriptionTypeAdditional 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": "43e88249-0bc9-4e70-a16c-12d4ecdc85d5",
    "Name": "sample string 2",
    "Type": 0,
    "ValidFrom": "2024-05-19T18:54:32.498375+02:00",
    "ValidTo": "2024-05-19T18:54:32.498375+02:00",
    "Currency": "sample string 5",
    "PriceLevel": 6,
    "Customers": [
      {
        "CustomerId": "6666a684-bf51-4563-be59-c2655eeab99f"
      },
      {
        "CustomerId": "6666a684-bf51-4563-be59-c2655eeab99f"
      }
    ],
    "PriceListItems": [
      {
        "ProductId": "ea0139b7-0a5c-4839-b335-5f2fa2a212c8",
        "Price": 2.0,
        "PriceVAT": 3.0
      },
      {
        "ProductId": "ea0139b7-0a5c-4839-b335-5f2fa2a212c8",
        "Price": 2.0,
        "PriceVAT": 3.0
      }
    ]
  },
  {
    "Id": "43e88249-0bc9-4e70-a16c-12d4ecdc85d5",
    "Name": "sample string 2",
    "Type": 0,
    "ValidFrom": "2024-05-19T18:54:32.498375+02:00",
    "ValidTo": "2024-05-19T18:54:32.498375+02:00",
    "Currency": "sample string 5",
    "PriceLevel": 6,
    "Customers": [
      {
        "CustomerId": "6666a684-bf51-4563-be59-c2655eeab99f"
      },
      {
        "CustomerId": "6666a684-bf51-4563-be59-c2655eeab99f"
      }
    ],
    "PriceListItems": [
      {
        "ProductId": "ea0139b7-0a5c-4839-b335-5f2fa2a212c8",
        "Price": 2.0,
        "PriceVAT": 3.0
      },
      {
        "ProductId": "ea0139b7-0a5c-4839-b335-5f2fa2a212c8",
        "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>43e88249-0bc9-4e70-a16c-12d4ecdc85d5</Id>
    <Name>sample string 2</Name>
    <Type>CustomerPriceList</Type>
    <ValidFrom>2024-05-19T18:54:32.498375+02:00</ValidFrom>
    <ValidTo>2024-05-19T18:54:32.498375+02:00</ValidTo>
    <Currency>sample string 5</Currency>
    <PriceLevel>6</PriceLevel>
    <Customers>
      <PriceListCustomer>
        <CustomerId>6666a684-bf51-4563-be59-c2655eeab99f</CustomerId>
      </PriceListCustomer>
      <PriceListCustomer>
        <CustomerId>6666a684-bf51-4563-be59-c2655eeab99f</CustomerId>
      </PriceListCustomer>
    </Customers>
    <PriceListItems>
      <PriceListItem>
        <ProductId>ea0139b7-0a5c-4839-b335-5f2fa2a212c8</ProductId>
        <Price>2</Price>
        <PriceVAT>3</PriceVAT>
      </PriceListItem>
      <PriceListItem>
        <ProductId>ea0139b7-0a5c-4839-b335-5f2fa2a212c8</ProductId>
        <Price>2</Price>
        <PriceVAT>3</PriceVAT>
      </PriceListItem>
    </PriceListItems>
  </PriceList>
  <PriceList>
    <Id>43e88249-0bc9-4e70-a16c-12d4ecdc85d5</Id>
    <Name>sample string 2</Name>
    <Type>CustomerPriceList</Type>
    <ValidFrom>2024-05-19T18:54:32.498375+02:00</ValidFrom>
    <ValidTo>2024-05-19T18:54:32.498375+02:00</ValidTo>
    <Currency>sample string 5</Currency>
    <PriceLevel>6</PriceLevel>
    <Customers>
      <PriceListCustomer>
        <CustomerId>6666a684-bf51-4563-be59-c2655eeab99f</CustomerId>
      </PriceListCustomer>
      <PriceListCustomer>
        <CustomerId>6666a684-bf51-4563-be59-c2655eeab99f</CustomerId>
      </PriceListCustomer>
    </Customers>
    <PriceListItems>
      <PriceListItem>
        <ProductId>ea0139b7-0a5c-4839-b335-5f2fa2a212c8</ProductId>
        <Price>2</Price>
        <PriceVAT>3</PriceVAT>
      </PriceListItem>
      <PriceListItem>
        <ProductId>ea0139b7-0a5c-4839-b335-5f2fa2a212c8</ProductId>
        <Price>2</Price>
        <PriceVAT>3</PriceVAT>
      </PriceListItem>
    </PriceListItems>
  </PriceList>
</ArrayOfPriceList>