Upload Excel for Addendum
Addendum
Upload Excel for Addendum
Upload an Excel file to process and generate addendum data for multiple employees
POST
Upload Excel for Addendum
Overview
This endpoint allows you to upload an Excel file containing employee addendum information. The system will validate the data and return a structured response with employee details ready for addendum generation.Request
Headers
Must be
multipart/form-dataBody Parameters
Excel file containing employee addendum dataAllowed formats:
.xlsx, .xls, .csvMaximum file size: 10MB (10,485,760 bytes)MIME types accepted:application/vnd.openxmlformats-officedocument.spreadsheetml.sheetapplication/vnd.ms-excelapplication/excelapplication/x-excelapplication/x-msexcel
Excel File Structure
The Excel file must contain the following columns (field names are flexible - aliases are accepted):Required Fields
Division or work areaAliases: DIVISION, división, division, area, AREA, DivisionValidation: Required, trimmed string
Employee’s document number (DNI)Aliases: Numero Documento, dni, documento, NÚMERO DE DOCUMENTO, Num. DocumentoValidation: Must be exactly 8 digits
Full name of the employeeAliases: TRABAJADOR, trabajador, nombres y apellidos, empleado, colaborador, TrabajadorValidation: Required string
Employee’s original entry date to the companyAliases: fecha de ingreso, fechadeingreso, fecha_de_ingreso, entrydate, entry_date, fecha ingreso, Fecha IngresoFormat: DD/MM/YYYYExample: 15/03/2024
Original contract start dateAliases: INICIO, inicio, InicioFormat: DD/MM/YYYYExample: 01/01/2024
Original contract end dateAliases: FECHA FIN, fecha fin, fin contrato, termino, Fin, FIN, finFormat: DD/MM/YYYYExample: 31/12/2024
Addendum effective start dateAliases: INICIO ADENDA, inicio adenda, fecha inicio adenda, vigencia desde, Inicio AdendaFormat: DD/MM/YYYYExample: 01/01/2025
Addendum effective end dateAliases: FIN ADENDA, fin adenda, fecha fin adenda, vigencia hastaFormat: DD/MM/YYYYExample: 31/12/2025
Employee’s addressAliases: dirección, direccion, address, direccion completa, DOMICILIO, domicilio, DirecciónValidation:
- Minimum 5 characters
- Maximum 200 characters
- Trimmed
Province where the employee residesAliases: provincia, province, PROVINCIA, ProvinciaValidation: Minimum 2 characters, trimmed
District where the employee residesAliases: distrito, district, Distrito, DISTRITOValidation: Minimum 2 characters, trimmed
Department where the employee residesAliases: departamento, department, division, Departamento, DEPARTAMENTOValidation: Minimum 2 characters, trimmed
Employee’s salary amountAliases: salario, salary, sueldo, remuneracion, remuneración, Sueldo, SUELDOValidation: Must be a positive number greater than 0Example: 2500.00
Employee’s salary written in wordsAliases: salario en letras, salarioenletras, salario_en_letras, salaryinwords, salary_in_words, sueldo en letras, Sueldo en LetrasValidation:
- Minimum 5 characters
- Maximum 100 characters
- Trimmed
Excel File Notes
- The first row should contain column headers
- Empty rows are automatically skipped
- Column names are case-insensitive and flexible (multiple aliases accepted)
- Maximum 80 employees per batch
- All date fields must be in DD/MM/YYYY format
Response
Indicates if the operation was successful
Contains the processed employee data
Total number of employee records processed
Array of employee objects with validated addendum data
Employee’s division or work area
Employee’s DNI (8 digits)
Full name of the employee
Original entry date (DD/MM/YYYY)
Original contract start date (DD/MM/YYYY)
Original contract end date (DD/MM/YYYY)
Addendum start date (DD/MM/YYYY)
Addendum end date (DD/MM/YYYY)
Employee’s address
Employee’s province
Employee’s district
Employee’s department
Employee’s salary amount
Employee’s salary in words
Success Response Example
Error Responses
No File Provided (400)
Invalid File Type (400)
Invalid File Extension (400)
File Too Large (400)
Validation Error (400)
Too Many Employees (400)
Missing Required Field (400)
Invalid Date Format (400)
Example Requests
cURL
cURL with Authentication
JavaScript (Fetch API)
Python (Requests)
Node.js (Axios)
Validation Rules Summary
| Field | Type | Format | Min | Max | Special Rules |
|---|---|---|---|---|---|
| division | string | - | - | - | Required, trimmed |
| documentNumber | string | 8 digits | - | - | Exactly 8 numeric digits |
| worker | string | - | - | - | Required |
| entryDate | string | DD/MM/YYYY | - | - | Valid date format |
| start | string | DD/MM/YYYY | - | - | Valid date format |
| end | string | DD/MM/YYYY | - | - | Valid date format |
| startAddendum | string | DD/MM/YYYY | - | - | Valid date format |
| endAddendum | string | DD/MM/YYYY | - | - | Valid date format |
| address | string | - | 5 chars | 200 chars | Trimmed |
| province | string | - | 2 chars | - | Trimmed |
| district | string | - | 2 chars | - | Trimmed |
| department | string | - | 2 chars | - | Trimmed |
| salary | number | - | > 0 | - | Must be positive |
| salaryInWords | string | - | 5 chars | 100 chars | Trimmed |
Best Practices
-
File Preparation
- Use the first row for column headers
- Ensure all required fields are present
- Use consistent date formatting (DD/MM/YYYY)
- Verify DNI numbers are exactly 8 digits
- Remove any empty rows from your Excel file
-
Data Validation
- Validate salary values are positive numbers
- Check that all dates are in the correct format
- Ensure addresses meet minimum character requirements
- Verify salary in words matches the numeric value
-
Error Handling
- Check the response for validation errors
- Review the specific row and field mentioned in error messages
- Correct errors in the Excel file and re-upload
-
Performance
- Keep batch sizes under 80 employees
- Use compressed Excel files (.xlsx) for faster uploads
- Ensure file size is under 10MB limit
Related Endpoints
- Upload Contract Excel - Upload Excel for contract generation
- Generate Contracts - Generate contract PDFs