Return the entire list of TimeOffAccounts for the Company

Parameters

ParameterTypeRequiredNotes
None

Example Query

POST https://api.workschedule.net/WS.exe?Module=API&SessionID=123&SP=12345678&Method=getTimeOffAccounts

Sample JSON Input

  None  

JSON Response

  {
 "ErrorMessage": "Success",
 "ItemResponses": [],
 "Items": [
  {
   "EndTime": "1-1-2020",
   "Color": "FFFF00",
   "SortValue": "0000000026",
   "Active": "False",
   "CategoryName": "Group A",
   "ShowEmployee": "False",
   "CatNo": "6",
   "CatItemID": "26",
   "StartTime": "1-1-1900"
  },{
   "EndTime": "1-1-2020",
   "Color": "0066CC",
   "SortValue": "0000000027",
   "Active": "False",
   "CategoryName": "Group B",
   "ShowEmployee": "False",
   "CatNo": "6",
   "CatItemID": "27",
   "StartTime": "1-1-1900"
  }],
  "ErrorCode": "0"
}  

XML Response

 <WSDN>
  <ErrorMessage>Success</ErrorMessage>
  <Items>
	<ArrayItem>
	  <EndTime>1-1-2020</EndTime>
	  <Color>FFFF00</Color>
	  <SortValue>0000000026</SortValue>
	  <Active>False</Active>
	  <CategoryName>Group A</CategoryName>
	  <ShowEmployee>False</ShowEmployee>
	  <CatNo>6</CatNo>
	  <CatItemID>26</CatItemID>
	  <StartTime>1-1-1900</StartTime>
	</ArrayItem>
	<ArrayItem>
	  <EndTime>1-1-2020</EndTime>
	  <Color>0066CC</Color>
	  <SortValue>0000000027</SortValue>
	  <Active>False</Active>
	  <CategoryName>Group B</CategoryName>
	  <ShowEmployee>False</ShowEmployee>
	  <CatNo>6</CatNo>
	  <CatItemID>27</CatItemID>
	  <StartTime>1-1-1900</StartTime>
	</ArrayItem>
  </Items>
  <ErrorCode>0</ErrorCode>
</WSDN> 

Resource Information

Response Format JSON/XML
Request Type POST