Documentation - API (Update Employee Code)

API for the employee from the zinghr system. Each API request require the token as an input which identifies the request and check if the required api is valid or not.



Employee Master

Overview

URL

https://portal.zinghr.com/2015/route/EmployeeMaster/UpdateEmployeeCode

Methods Supported

POST

Description

Update OLD Employee Code

 



Input

The following are the elements required to get the details of attribute master.

SubscriptionName

Name of account (max length =10)

Token

For verification of the account and request.

OldEmployeeCode (Mandatory)

Max length 15

NewEmployeeCode(Mandatory)

Max length 15

 


Response 

Message

Messages

Code

Codes

 



API Codes & Message: 

Code : 1

Message : Success

Code : 2

Message : Employee not found

Code : 3

Message : Invalid Token

Code : 4

Message : Internal Server Error

Code : 5

Message : Invalid date format

Code : 6

Message : Token Expired

 

 

 

 

Employee Master Collection : 

EmployeeCode

Employee Code

EmployeeID

Employee's Id  in the system

Salutation

Employee's salutation

EmployeeName

Employee full name

LastName

Employee last name

MiddleName

Employee middle name

Email

Employee email Id

Gender

Employee gender

Mobile

Employee mobile number

DateofBirth

Employee Date of birth

DateOfJoining

Employee Date of joining

Dateofconfirmation

Employee Date of confirmation

DateOfLeaving

Employee Date of leaving ( if resigned)

EmployeeStatus

Employee status in the system

Age

Employee  Age

PAN

Employee PAN number

UAN

Employee UAN number

AadhaarNumber

Employee Aadhar number

PFAccountNumber

Employee PF account number

ESICAccountNumber

Employee ESIC account number

Attributes

List of Attributes & unit collection

LastModified

Date on which employee record is modified in the system recently.

CreatedDate

Date on which employee record is created in the system.

EmpFlag

Specify whether Employee is created or edited

'ADD' OR 'EDIT' OR 'DELETE'

ReportingManagerCode

Reporting manager code in the system of the given employees

ReportingManagerName

Reporting manager Name in the system 

ResginationDate

Date of resignation by employee

ExitDate

Last working day of an employee 

ExitReason1

Reason for resignation  

ExitReason2

Remarks specified if any 

ExitTypeName

Type of resignation  

GroupDOJ

Group DOJ  

EmploymentType

Employment Type of employee

ApproverDetails

Approver details collection

 

 

 


 

Attribute& Unit Collection: 

AttributeTypeID

Attribute type id 

AttributeTypeDesc

Attribute Type Description

AttributeTypeCode

Attribute Type Code

AttributeTypeUnitID

Attribute Type unit Id

AttributeTypeUnitDesc

Attribute type unit description

AttributeTypeUnitCode

Attribute type unit code

 

 


Approver Details Collection: 

Module

Which module the current approver belongs to 

ApproverName

Approver full name

ApproverEmployeeCode

Approver Employee code

ApprovalLevel

Approver level (in case of multiple)