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": "608e0a2b-2e3e-46f8-8123-38f637abd758", "PriceType": 0, "Price": 2.0, "PriceVAT": 3.0 }, { "ProductId": "608e0a2b-2e3e-46f8-8123-38f637abd758", "PriceType": 0, "Price": 2.0, "PriceVAT": 3.0 } ], "CustomerId": "932bf93e-7288-46cf-aaa9-91f3cf7b5ace", "PercentualDiscount": 2.0, "Turnover": 3.0, "TurnoverDiscount": 4.0, "PriceLevel": 5, "ProductGroupDiscounts": [ { "ProductGroupId": "e0bdb9d1-8ff8-463e-91fe-dbebd41d1cdb", "ProductId": "28bfb516-b9ee-4f30-adb8-812efab9a3af", "PercentualDiscount": 3.0 }, { "ProductGroupId": "e0bdb9d1-8ff8-463e-91fe-dbebd41d1cdb", "ProductId": "28bfb516-b9ee-4f30-adb8-812efab9a3af", "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>932bf93e-7288-46cf-aaa9-91f3cf7b5ace</CustomerId> <PercentualDiscount>2</PercentualDiscount> <Turnover>3</Turnover> <TurnoverDiscount>4</TurnoverDiscount> <PriceLevel>5</PriceLevel> <ProductGroupDiscounts> <ProductGroupDiscount> <ProductGroupId>e0bdb9d1-8ff8-463e-91fe-dbebd41d1cdb</ProductGroupId> <ProductId>28bfb516-b9ee-4f30-adb8-812efab9a3af</ProductId> <PercentualDiscount>3</PercentualDiscount> </ProductGroupDiscount> <ProductGroupDiscount> <ProductGroupId>e0bdb9d1-8ff8-463e-91fe-dbebd41d1cdb</ProductGroupId> <ProductId>28bfb516-b9ee-4f30-adb8-812efab9a3af</ProductId> <PercentualDiscount>3</PercentualDiscount> </ProductGroupDiscount> </ProductGroupDiscounts> <CustomerPrices> <CustomerProductPrice> <ProductId>608e0a2b-2e3e-46f8-8123-38f637abd758</ProductId> <PriceType>Standard</PriceType> <Price>2</Price> <PriceVAT>3</PriceVAT> </CustomerProductPrice> <CustomerProductPrice> <ProductId>608e0a2b-2e3e-46f8-8123-38f637abd758</ProductId> <PriceType>Standard</PriceType> <Price>2</Price> <PriceVAT>3</PriceVAT> </CustomerProductPrice> </CustomerPrices> </CustomerDiscountsAndPrices>