This article covers the KEBS Integration Layer Middleware — the API gateway that connects KEBS with external application servers. It documents the integration architecture, data processing pipeline, error handling, and the complete set of HR Employee APIs (Hire, Update, Exit) available for inbound data synchronization.
Integration Architecture Overview
Ensure reliable, validated data flows from external systems into KEBS through a structured middleware layer with built-in error handling and audit logging.
The KEBS Integration Architecture is designed to connect KEBS with an external application server. All inbound data passes through a multi-step validation and transformation pipeline before being stored in the KEBS staging layer.
Inbound Payload Validation
Any data sent to KEBS from an external system goes through these initial validation steps:
- 1Payload Size Validation — The system checks that the incoming payload does not exceed size limits.
- 2Payload Schema Validation — The structure and format of the payload is validated against the expected API schema.
Data Processing Pipeline
Once the payload passes initial validation, the data is processed through five stages:
Validation
Verification
Transformation
Mapping
Storage
After processing, the data is stored in the KEBS Staging Layer, which is then consumed by the respective application layer (e.g., Employee Directory). Staging layer data is cleared periodically based on the data lifecycle policy.
Error Handling & Logging
Minimize data loss and speed up resolution with structured error traces, automated notifications, and a self-learning error repository.
All errors encountered during integration are logged in KEBS and an error trace is created. Notifications are automatically sent to both the external support team and the KEBS team.
Error Resolution Flow
- 1The system checks if the error is a payload validation error.
- 2If it is a payload error, the payload details are added to the error trace and stakeholders are notified.
- 3If it is not a payload error, the system searches the Error Repository for the error code.
- 4If a match is found, the probable cause and suggestive recovery steps are added to the error trace and stakeholders are notified.
- 5If the error is not found in the repository, a new support ticket is created in KEBS automatically.
- 6After the error is analyzed and fixed, RCA (Root Cause Analysis) and CAPA (Corrective and Preventive Action) are updated in the Error Repository.
- 7Ticket details and error occurrence information are sent to all relevant stakeholders.
Employee Hire API
Automatically create employee records in KEBS when a new hire is onboarded in the source system — eliminating manual data entry and ensuring consistency.
| Property | Value |
|---|---|
| Scenario | Employee Hire |
| Description | Create Employee API |
| Method | POST |
| Frequency | Real time |
For every new employee hire record in the source system, the Employee Hire API is called once to send the data from the source to KEBS.
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
associate_id | Numeric | Employee / Associate ID | Yes |
associate_oid | Text | Employee OID | No |
first_name | Textbox | First Name | Yes |
last_name | Textbox | Last Name | Yes |
middle_name | Textbox | Middle Name | No |
display_name | Textbox | Display Name | No |
salutation | Dropdown | Salutation | No |
work_email | Textbox | Work Mail ID | No |
personal_email_id | Textbox | Personal Email ID | No |
contact_number | Textbox | Contact Number | No |
image_url | Text | Display Image | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
doj | Date | Date of Joining | No |
employment_type | Dropdown | Employment Type | No |
employment_status | Dropdown | Employment Status | No |
effective_date | Date | Effective Date | No |
entity | Dropdown | Entities | Yes |
division | Dropdown | Division | Yes |
sub_division | Dropdown | Sub Division | Yes |
region | Dropdown | Region | Yes |
level | Dropdown | Levels | No |
department | Dropdown | Department | No |
position | Dropdown | Position | No |
work_location | Dropdown | Work Location | Yes |
holiday_calendar | — | Holiday Calendar | No |
direct_manager | Dropdown | Direct Manager | Yes |
work_schedule | Dropdown | Work Schedule | No |
contract_type | Dropdown | Contract Type | No |
contract_end_date | Date | Contract End Date | No |
probation_end_date | Date | Probation Ends On | No |
job_classification | Dropdown | Job | No |
delivery_premises | Dropdown | Onsite / Offshore | No |
cost_centre | Dropdown | Cost Centre | No |
hr_admin | Dropdown | HR Admin | No |
functional_manager | Dropdown | Line Manager | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
dob | Date | Date of Birth | No |
gender | Dropdown | Gender | No |
blood_group | Dropdown | Blood Group | No |
nationality | Dropdown | Nationality | No |
national_id | Textbox | National ID | No |
marital_status | Dropdown | Marital Status | No |
date_of_marriage | Date | Married Date | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
perm_house_no | Textbox | House Number | No |
perm_address_line_1 | Textbox | Address Line 1 | No |
perm_address_line_2 | Textbox | Address Line 2 | No |
perm_address_line_3 | Textbox | Address Line 3 | No |
perm_country | Dropdown | Country | No |
perm_state | Dropdown | State | No |
perm_city | Dropdown | City | No |
perm_pin | Textbox | Postal Code | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
comm_house_no | Textbox | House Number | No |
comm_address_line_1 | Textbox | Address Line 1 | No |
comm_address_line_2 | Textbox | Address Line 2 | No |
comm_address_line_3 | Textbox | Address Line 3 | No |
comm_country | Dropdown | Country | No |
comm_state | Dropdown | State / City | No |
comm_city | Textbox | Postal Code | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
emergency_contact_person | Text | Person | No |
emergency_contact_person_relationship | Text | Relationship | No |
emergency_contact_number | Number | Number | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
bank_name | Text | Bank Name | No |
account_number | Text | Account Number / IBAN | No |
bank_identifier_type | Number | Bank Identifier Type | No |
bank_identifier_value | Text | Bank Identifier Value | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
assignment_start_date | Date | Assignment Start Date | No |
assignment_end_date | Date | Assignment End Date | No |
project_name | Dropdown | Project Name | No |
project_type | Dropdown | Project Type | No |
project_industry_type | Dropdown | Project Industry Type | No |
project_location | Dropdown | Project Location | No |
project_cost_centre | Dropdown | Project Cost Center | No |
split_percentage | Number | Split Percentage | No |
client_name | Free Text | Client Name | No |
billable | Dropdown | Billable | No |
incentive | Dropdown | Incentive | No |
pmo | Dropdown | PMO | No |
line_manager | Dropdown | Line Manager | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
daily_hours | Number (Decimal) | Daily Hours | No |
monthly_hours | Time | Monthly Hours | No |
in_time | Dropdown | In Time | No |
out_time | Dropdown | Out Time | No |
next_calendar_day | Checkbox | Next Calendar Day | No |
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
action_type | Text | Action Type | Yes |
last_modified_on | DateTime | Last Modified On | No |
action_type field must be set to the constant value “created” for the Employee Hire API. Field names and customer-specific mappings may differ from organization to organization.Employee Update API
Keep employee records synchronized in real time — when a role change, transfer, or data correction happens in the source system, KEBS reflects it automatically.
| Property | Value |
|---|---|
| Scenario | Employee Update |
| Description | Update Employee API |
| Method | PUT |
| Frequency | Real time |
For every employee update record in the source system, the Employee Update API is called to send the changed data to KEBS. The field schema is the same as the Employee Hire API (with an additional last_working_date field), using the same field names, types, and KEBS mappings.
Mandatory Fields for Employee Update
| API Field | Required |
|---|---|
associate_id | Yes |
associate_oid | Yes |
first_name | Yes |
last_name | Yes |
work_location | Yes |
region | Yes |
action_type | Yes |
entity | Yes |
division | Yes |
sub_division | Yes |
direct_manager | Yes |
Employee Exit API
Automatically process employee exits in KEBS when an offboarding is initiated in the source system — ensuring timely deactivation and accurate records.
| Property | Value |
|---|---|
| Scenario | Employee Exit |
| Description | Exit Employee API |
| Method | PUT |
| Frequency | Real time |
For every employee exit record in the source system, the Employee Exit API is called to initiate the offboarding process in KEBS.
API Field Reference
| API Field | Type | KEBS Field | Required |
|---|---|---|---|
associate_id | Numeric | Employee / Associate ID | Yes |
date_of_exit | Date | Date of Exit | Yes |
last_working_date | Date | Last Working Date | Yes |
action_type | Text | Action Type | Yes |
last_modified_on | Date | Effective Date | Yes |
action_type field must be set to the constant value “exit” for this API. All five fields are mandatory — the API will reject requests with missing fields.Key Assumptions & Guidelines
Ensure smooth integration operations by understanding the ground rules, data ownership boundaries, and change management processes.
Data Flow Rules
- For inbound data to KEBS, only created or changed data should be sent in the API request from the external application server.
- Employee ID and Email are always unique and must be available for every employee.
- Employee data should not be directly altered in KEBS, except for Project Data, Calendar, and Skills.
- All data field mapping for inbound APIs is processed at the external application’s end.
- KEBS does not support parallel API hits for the same employee APIs with different data for the same employee.
Authentication & Protocol
- All data flows use REST APIs with JSON response format.
- Both KEBS and external systems follow OAuth 2.0 authentication protocol.
- All employees use SSO for login in the production environment, with email as the unique identifier.
Master Data & Configuration
- All master data and configuration is maintained in both systems manually.
- Any addition or change to master data or config in the external system must be raised as a support ticket in KEBS — updates will reflect within 48 hours of ticket creation.
- For any addition or change to the API field config on the external system’s end, a support ticket must be created 48 hours prior to the change.
- If any configuration or master data not present in KEBS is sent in the payload, an error response will be returned.
Employee Lifecycle Rules
- For each employee, there is one Hire record, one Exit record, and zero or many Update records.
- Employee Update and Exit APIs will fail if the employee was not first created via the Hire API.
- Future exit scenarios are not supported — only current exits are processed.
- Employee exit request revocation must be handled manually through a support ticket.



