General - Get holidays list that uses input account
API Url
Load a holidays that uses input account id.
GET
http://localhost:16010/ProMarkREST/rest/General/accounts/{id}/holidays
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Path parameters
| Field | Type | Description |
|---|---|---|
| id | String | Unique account identifier. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| holidays | Object[] | Collection of holiday types. |
| description | String | Holiday description. |
| id | String | Unique holiday type. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"holidays": [{"id": "HOLIDAY","description": "Standard Holidays",},{"id": "SERVICE","description": "Extra Service Days",}]}},"errorCode": 0,"errorMessage": ""}