Add TimeOff Transactions to the company record.

Query Parameters

ParameterTypeRequiredNotes
TOAccountIDintegerTrue

Parameters

ParameterTypeRequiredNotes
UserID integer True
Description string False
EffectiveDate date True
Amount integer True Indicate the amount(in days) for this transaction
CanEdit boolean False Allow the employee to edit this transaction

Example Query

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

Sample JSON Input

  [
 {
   "UserID": "1",
   "Description": "Test Add",
   "EffectiveDate": "6-16-2014",
   "Amount": "5",
   "CanEdit": "0"
  },
 {
   "UserID": "2",
   "Description": "Test Add2",
   "EffectiveDate": "7-31-2014",
   "Amount": "10",
   "CanEdit": "1"
  }
]  

JSON Response

  {
 "ErrorMessage": "Success",
 "ItemResponses": [
  {
   "ErrorMessage": "Success",
   "ItemNo": "1",
   "ErrorCode": "0"
  },{
   "ErrorMessage": "Success",
   "ItemNo": "2",
   "ErrorCode": "0"
  }],
 "Items": [],
 "ErrorCode": "0"
}  

XML Response

 <WSDN>
  <ErrorMessage>Success</ErrorMessage>
  <ItemResponses>
	<ArrayItem>
	  <ErrorMessage>Success</ErrorMessage>
	  <ItemNo>1</ItemNo>
	  <ErrorCode>0</ErrorCode>
	</ArrayItem>
	<ItemResponses>
	  <ArrayItem>
		<ErrorMessage>Success</ErrorMessage>
		<ItemNo>2</ItemNo>
		<ErrorCode>0</ErrorCode>
	  </ArrayItem>
	</ItemResponses>
  </ItemResponses>
  <ErrorCode>0</ErrorCode>
</WSDN> 

Resource Information

Response Format JSON/XML
Request Type POST