GET v{version}/Discounts/Get?SiteID={SiteID}

Returns All Discounts for The Site

Request Information

URI Parameters

Name Type Description Additional information
SiteID integer

version string

None.

Body Parameters

None.

Response Information

Resource Description

DiscountDto
Name Type Description Additional information
DiscountID integer

None.

ReasonTypeID integer

None.

Name string

None.

TriggerBarcode string

None.

DiscountCategory string

None.

Amount decimal number

None.

IsPercent boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "DiscountID": 1,
  "ReasonTypeID": 2,
  "Name": "sample string 3",
  "TriggerBarcode": "sample string 4",
  "DiscountCategory": "sample string 5",
  "Amount": 6.0,
  "IsPercent": true
}

application/xml, text/xml

Sample:
<DiscountDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.v2.Discounts">
  <Amount>6</Amount>
  <DiscountCategory>sample string 5</DiscountCategory>
  <DiscountID>1</DiscountID>
  <IsPercent>true</IsPercent>
  <Name>sample string 3</Name>
  <ReasonTypeID>2</ReasonTypeID>
  <TriggerBarcode>sample string 4</TriggerBarcode>
</DiscountDto>