PostEmployeeLeaveFromNHRDetails
PostEmployeeLeaveFromNHRDetails
Description:
Insert Employee leave records.
Request:
https://dev02-api-gateway.moorepay.co.uk/hrtopay/v1/HRToPay/PostEmployeeLeaveFromNHRDetails
Request headers:
Name |
Required |
Type |
Description |
Authorization |
Yes |
string |
access token |
Request body:
{
"hr_employee_id": "string",
"transaction_id": "string",
"start_date": "string",
"end_date": "string",
"first_name": "string",
"sur_name": "string",
"leave_type": "str",
"other_leave_reason": "st",
"absence_dates": [
{
"date": "string",
"absence_meter": "string",
"absence_duration": "string"
}
],
"status": 0,
"duration": "string",
"doctors_certificate": "s",
"employee_comments": "string",
"half_day_am": true,
"half_day_pm": true
}
Response example:
Response: 200 OK
"string"
Response: 400 Bad Request
Bad Request
Response: 401 Unauthorized
Unauthorized
Response: 404 Not Found
Not Found
Response: 405 Method Not Allowed
Method Not Allowed
Response: 500 Internal Server Error
Internal Server Error
Created with the Personal Edition of HelpNDoc: Maximize Your Reach: Convert Your Word Document to an ePub or Kindle eBook