Authorization: Bearer ********************
{
"employeeNumber": "string"
}
curl --location --request PATCH 'https://api.upbooks.io/api/v1/employee//employee-number' \
--header 'ORGANIZATION-ID: 000000' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeNumber": "string"
}'
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"name": "string",
"employeeNumber": "string",
"type": "full-time",
"email": "string",
"phone": "string",
"dob": "2019-08-24T14:15:22Z",
"employment": [
{
"id": "string",
"isCurrent": true,
"dateOfJoining": "2019-08-24T14:15:22Z",
"dateOfLeaving": "2019-08-24T14:15:22Z",
"specialSchemes": [
{
"enabled": true,
"name": "ESI"
}
],
"salary": {
"componentGroup": {
"id": "string",
"groupName": "string",
"salaryCalculationMode": "month-days",
"sandwichLeaves": true
},
"type": "hourly",
"ctc": 0,
"gross": 0,
"net": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"components": [
{
"name": "string",
"code": "BASIC",
"type": "EARNINGS",
"isTaxable": true,
"isAttendanceBased": true,
"isIncludedInCTC": true,
"isActive": true,
"_id": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"formula": "string",
"custom": true,
"salaryComponentId": "string",
"amount": 0
}
]
},
"designation": "string",
"role": "string",
"supervisor": {
"id": "string",
"name": "string",
"employeeNumber": "string",
"email": "string",
"phone": "string",
"type": "full-time",
"employment": [
{}
]
},
"leavePolicies": [
{
"id": "string",
"name": "string",
"leaves": [
{
"type": "string",
"probationPeriod": 0,
"noOfLeaves": 0,
"monthlyLimit": 0
}
]
}
],
"spendPolicies": [
{
"id": "string",
"title": "string"
}
]
}
],
"isDeleted": true,
"user": {
"role": "string",
"id": "string"
},
"location": "string",
"panNumber": "string",
"adharNumber": "string",
"esiNumber": "string",
"epsNumber": "string",
"uanNumber": "string",
"pfNumber": "string",
"country": "string",
"bankAccountDetails": {
"bankName": "string",
"bankAccountNumber": "string",
"bankBranch": "string",
"payeeName": "string",
"IFSC": "string",
"MICR": "string",
"SWIFT": "string"
},
"currentAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"permanentAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"files": [
{
"docNumber": "string",
"docType": "pan",
"fileUrl": "string"
}
],
"voterIdNumber": "string",
"drivingLicenseNumber": "string",
"picture": "string"
},
"message": "string"
}