GET api/{DataId}/customerdiscounts?CustomerId={CustomerId}
Vráti odberateľskú zľavu a zľavy na tovarové skupiny pre dané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
CustomerDiscountsName | Description | Type | Additional information |
---|---|---|---|
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:
{ "CustomerId": "d3442b33-5aed-4b04-8def-3d25690218e4", "PercentualDiscount": 2.0, "Turnover": 3.0, "TurnoverDiscount": 4.0, "PriceLevel": 5, "ProductGroupDiscounts": [ { "ProductGroupId": "ce48a900-b87f-4345-9d41-96a6a9aac493", "ProductId": "15cd05d0-7c92-4dfd-924a-87c5849d35e4", "PercentualDiscount": 3.0 }, { "ProductGroupId": "ce48a900-b87f-4345-9d41-96a6a9aac493", "ProductId": "15cd05d0-7c92-4dfd-924a-87c5849d35e4", "PercentualDiscount": 3.0 } ] }
application/xml, text/xml
Sample:
<CustomerDiscounts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CustomerId>d3442b33-5aed-4b04-8def-3d25690218e4</CustomerId> <PercentualDiscount>2</PercentualDiscount> <Turnover>3</Turnover> <TurnoverDiscount>4</TurnoverDiscount> <PriceLevel>5</PriceLevel> <ProductGroupDiscounts> <ProductGroupDiscount> <ProductGroupId>ce48a900-b87f-4345-9d41-96a6a9aac493</ProductGroupId> <ProductId>15cd05d0-7c92-4dfd-924a-87c5849d35e4</ProductId> <PercentualDiscount>3</PercentualDiscount> </ProductGroupDiscount> <ProductGroupDiscount> <ProductGroupId>ce48a900-b87f-4345-9d41-96a6a9aac493</ProductGroupId> <ProductId>15cd05d0-7c92-4dfd-924a-87c5849d35e4</ProductId> <PercentualDiscount>3</PercentualDiscount> </ProductGroupDiscount> </ProductGroupDiscounts> </CustomerDiscounts>