GET Discounts/GetDiscountWithPrices?SiteID={SiteID}&DiscountID={DiscountID}
Returns the list of PriceIds that the discount is valid against
Request Information
URI Parameters
| Name | Type | Description | Additional information |
|---|---|---|---|
| SiteID | integer | ||
| DiscountID | integer |
Body Parameters
None.
Response Information
Resource Description
DiscountWithPricesModel| Name | Type | Description | Additional information |
|---|---|---|---|
| DiscountID | integer |
None. |
|
| ReasonTypeID | integer |
None. |
|
| Name | string |
None. |
|
| TriggerBarcode | string |
None. |
|
| Amount | decimal number |
None. |
|
| IsPercent | boolean |
None. |
|
| PriceIDs | Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"DiscountID": 1,
"ReasonTypeID": 2,
"Name": "sample string 3",
"TriggerBarcode": "sample string 4",
"Amount": 5.0,
"IsPercent": true,
"PriceIDs": [
1,
2
]
}
application/xml, text/xml
Sample:
<DiscountWithPricesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.App.Models">
<Amount>5</Amount>
<DiscountID>1</DiscountID>
<IsPercent>true</IsPercent>
<Name>sample string 3</Name>
<PriceIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</PriceIDs>
<ReasonTypeID>2</ReasonTypeID>
<TriggerBarcode>sample string 4</TriggerBarcode>
</DiscountWithPricesModel>