GET api/v1/cancelreasons/department/{departmentId}/category/{categoryId}
Returns Cancel Reasons for a given Department and Category
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| departmentId | integer |
Required |
|
| categoryId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ApiResponseModelOfListOfCancelReasonModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfListOfCancelReasonModel |
None. |
|
| Errors | Collection of string |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"PageSize": 1,
"Page": 2,
"TotalPages": 3,
"TotalResults": 4,
"Results": [
{
"Id": 1,
"ReasonId": 2,
"Reason": "sample string 3",
"DepartmentId": 4,
"DepartmentName": "sample string 5",
"DepartmentCode": "sample string 6",
"IsAssociated": true,
"CategoryId": 8,
"Category": "sample string 9",
"ExcludeCategoryFromReporting": true,
"ExcludeReasonFromReporting": true,
"CategoryIsDisabled": true,
"CategoryIsSystem": true,
"ReasonIsDisabled": true,
"ReasonIsSystem": true,
"ReasonIsExcludedFromStaffReports": true
},
{
"Id": 1,
"ReasonId": 2,
"Reason": "sample string 3",
"DepartmentId": 4,
"DepartmentName": "sample string 5",
"DepartmentCode": "sample string 6",
"IsAssociated": true,
"CategoryId": 8,
"Category": "sample string 9",
"ExcludeCategoryFromReporting": true,
"ExcludeReasonFromReporting": true,
"CategoryIsDisabled": true,
"CategoryIsSystem": true,
"ReasonIsDisabled": true,
"ReasonIsSystem": true,
"ReasonIsExcludedFromStaffReports": true
}
]
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}