GET v{version}/Discounts/GetReasonTypes?SiteID={SiteID}
Returns All Reason Types for The Site
Request Information
URI Parameters
Name | Type | Description | Additional information |
---|---|---|---|
SiteID | integer | ||
version | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of ReasonTypeDtoName | Type | Description | Additional information |
---|---|---|---|
ReasonTypeId | integer |
None. |
|
Name | string |
None. |
|
ReasonCategory | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ReasonTypeId": 1, "Name": "sample string 2", "ReasonCategory": "sample string 3" }, { "ReasonTypeId": 1, "Name": "sample string 2", "ReasonCategory": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfReasonTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.v2.Discounts"> <ReasonTypeDto> <Name>sample string 2</Name> <ReasonCategory>sample string 3</ReasonCategory> <ReasonTypeId>1</ReasonTypeId> </ReasonTypeDto> <ReasonTypeDto> <Name>sample string 2</Name> <ReasonCategory>sample string 3</ReasonCategory> <ReasonTypeId>1</ReasonTypeId> </ReasonTypeDto> </ArrayOfReasonTypeDto>