Documentation Index
Fetch the complete documentation index at: https://mintlify.com/RaulQD/kontrak-backend/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Uploads an Excel file containing employee data, validates it against the required schema, and returns the parsed employee records.Request
Headers
Body Parameters
Excel file (.xlsx) containing employee contract data. The file must contain specific headers and follow the expected format.
Required Excel Headers
The Excel file must contain the following columns (case-insensitive, accent-insensitive): Basic Information:NOMBREorNombre completo- Employee’s first nameAPELLIDO PATERNO- Father’s last nameAPELLIDO MATERNO- Mother’s last nameDNI- Document number (8 digits)EMAILorCorreo- Email address
DIRECCIÓNorDOMICILIO- Full addressPROVINCIA- ProvinceDISTRITO- DistrictDEPARTAMENTO- Department
CARGO- Position/Job titlePLAYAorESTACIONAMIENTO- Work location/parkingSUELDO- Salary (numeric)SUELDO EN LETRAS- Salary in wordsINICIOorFECHA DE INGRESO- Start date (DD/MM/YYYY)FINorFECHA DE TERMINO- End date (DD/MM/YYYY)TIPO DE CONTRATO- Contract type (PLANILLA, PART TIME, or SUBSIDIO)
GENEROorSEXO- GenderFECHA DE NACIMIENTO- Birth date (DD/MM/YYYY)
SUPLENCIA DE- Name of person being replacedMOTIVO DE SUPLENCIA- Reason for replacementTIEMPO EN EMPRESA- Time at companyCONDICION LABORAL- Working conditionPERIODO DE PRUEBA- Probationary period
Response
Indicates if the upload was successful
Success message with number of employees imported
Example
Success Response
Error Responses
No File Provided
Invalid Headers
Validation Errors
Corrupt File
Notes
- The file must be in
.xlsxformat (Excel 2007+) - Date format must be
DD/MM/YYYY - DNI must be exactly 8 digits
- Salary must be a positive number
- Maximum 50 employees per batch
- The first row must contain the headers
- Empty rows are automatically skipped
- Header matching is case-insensitive and accent-insensitive