Endpoint
Generates an Excel file containing employee data formatted for Law Life insurance (Vida Ley) submission. The response is a downloadable Excel file with standardized columns required by the insurance provider.Request
Headers
Body Parameters
Array of employee objects to include in the Excel file
Response
Returns an Excel file (.xlsx) with the following headers:| Column | Description | Format |
|---|---|---|
| Item | Sequential number | Number |
| Apellido Paterno | Father’s last name | Text |
| Apellido Materno | Mother’s last name | Text |
| Nombres | First name | Text |
| Sexo | Gender | M/F |
| Fecha Nac. | Birth date | Excel serial date |
| Tipo Doc. | Document type | Always “DNI” |
| Numero Doc. | Document number | Text |
| Condición | Employee condition | Always “P” (Permanent) |
| Cargo | Position | Text |
| Monedas Sueldo | Currency | Always “SOLES” |
| Sueldo | Salary | Formatted currency |
| Tasa/Nivel Riesgo | Risk level | Empty (to be filled) |
| Fec. Ingreso | Entry date | Excel serial date |
Response Headers
Example
Error Responses
Empty Request Body
Too Many Employees
Validation Error
Notes
- The generated file includes a yellow header row for easy identification
- Dates are converted to Excel serial date format for compatibility
- Gender values are automatically mapped: “Masculino”/“M” → “M”, “Femenino”/“F” → “F”
- Salary is formatted with currency symbols (S/.)
- Document type is always set to “DNI”
- Currency is always set to “SOLES”
- Condition is always set to “P” (Permanent)
- Risk level field is left empty for manual completion
- Minimum 1 employee required, maximum 50 employees per batch
- File name is always
VIDA_LEY_TRAMA_INV_URB_OP.xlsx