GET api/{DataId}/customerdiscountsandproductprices?CustomerId={CustomerId}
Vráti odberateľskú zľavu a zľavy na tovarové skupiny pre daného zákazníka plus ceny produktov/položiek z cenníkov na špecifikovaného zákazníka
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataId |
Číslo dátového prostredia |
string |
Required |
CustomerId |
Oid (Guid) zákazníka |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
CustomerDiscountsAndPricesName | Description | Type | Additional information |
---|---|---|---|
CustomerPrices |
Zoznam cien po produktoch zo zákazníckeho cenníka |
Collection of CustomerProductPrice |
None. |
CustomerId |
Interný databázový identifikátor zákazníka (Oid) |
globally unique identifier |
None. |
PercentualDiscount |
Odberateľská zľava v % |
decimal number |
None. |
Turnover |
Aktuálny obrat (podľa nastavenej kategórie obratovej zľavy) |
decimal number |
None. |
TurnoverDiscount |
Aktuálne percento obratovej zľavy na základe aktuálneho obratu |
decimal number |
None. |
PriceLevel |
Cenová hladina (0 = nenastavená) |
integer |
None. |
ProductGroupDiscounts |
Zoznam zliav zákazníka na tovarové skupiny |
Collection of ProductGroupDiscount |
None. |
Response Formats
application/json, text/json
Sample:
{ "CustomerPrices": [ { "ProductId": "c1367fc3-3fc1-47a4-833f-b6af2fd3a961", "PriceType": 0, "Price": 2.0, "PriceVAT": 3.0 }, { "ProductId": "c1367fc3-3fc1-47a4-833f-b6af2fd3a961", "PriceType": 0, "Price": 2.0, "PriceVAT": 3.0 } ], "CustomerId": "866e4e1a-8840-4cf9-9ef4-f7086dc236a7", "PercentualDiscount": 2.0, "Turnover": 3.0, "TurnoverDiscount": 4.0, "PriceLevel": 5, "ProductGroupDiscounts": [ { "ProductGroupId": "1e9a2e6d-24b0-4d74-9a32-4882029f8f26", "ProductId": "fcdb9561-921c-4dfa-9fcc-1e9808a33ae8", "PercentualDiscount": 3.0 }, { "ProductGroupId": "1e9a2e6d-24b0-4d74-9a32-4882029f8f26", "ProductId": "fcdb9561-921c-4dfa-9fcc-1e9808a33ae8", "PercentualDiscount": 3.0 } ] }
application/xml, text/xml
Sample:
<CustomerDiscountsAndPrices xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CustomerId>866e4e1a-8840-4cf9-9ef4-f7086dc236a7</CustomerId> <PercentualDiscount>2</PercentualDiscount> <Turnover>3</Turnover> <TurnoverDiscount>4</TurnoverDiscount> <PriceLevel>5</PriceLevel> <ProductGroupDiscounts> <ProductGroupDiscount> <ProductGroupId>1e9a2e6d-24b0-4d74-9a32-4882029f8f26</ProductGroupId> <ProductId>fcdb9561-921c-4dfa-9fcc-1e9808a33ae8</ProductId> <PercentualDiscount>3</PercentualDiscount> </ProductGroupDiscount> <ProductGroupDiscount> <ProductGroupId>1e9a2e6d-24b0-4d74-9a32-4882029f8f26</ProductGroupId> <ProductId>fcdb9561-921c-4dfa-9fcc-1e9808a33ae8</ProductId> <PercentualDiscount>3</PercentualDiscount> </ProductGroupDiscount> </ProductGroupDiscounts> <CustomerPrices> <CustomerProductPrice> <ProductId>c1367fc3-3fc1-47a4-833f-b6af2fd3a961</ProductId> <PriceType>Standard</PriceType> <Price>2</Price> <PriceVAT>3</PriceVAT> </CustomerProductPrice> <CustomerProductPrice> <ProductId>c1367fc3-3fc1-47a4-833f-b6af2fd3a961</ProductId> <PriceType>Standard</PriceType> <Price>2</Price> <PriceVAT>3</PriceVAT> </CustomerProductPrice> </CustomerPrices> </CustomerDiscountsAndPrices>