Skip to main content

Create Employee

Creates a new employee record in the system.

Authentication

This endpoint requires authentication. See Authentication for details.

Parameters

ParameterTypeRequiredDescription
firstNamestringYesThe first name of the employee
lastNamestringYesThe last name of the employee
emailstringYesEmployee's email address (must be unique)
phonestringYesPhone number with country code
governmentDNIstringYesGovernment-issued identification number
cpfstringNoBrazilian tax identification number
addressstringYesPrimary address of the employee
addressExtraInfostringNoAdditional address information
postCodestringYesPostal/ZIP code
countryCodestringYesTwo-letter ISO country code
companyCodestringYesCompany code for the employee's company
citystringYesCity of residence

Request

Production URL: https://orchestrator.tecspal.com/
Sandbox URL: https://tecspal-orchestrator.sandbox.lexartlabs.uy/
Endpoint: POST /employees

Example Request

{
"request": "employees",
"vendor": "tecspal",
"verb": "POST",
"data": {
"firstName": "John",
"lastName": "Doe",
"email": "john_doe@email.com",
"phone": "+598 99999999",
"governmentDNI": "DNI123456",
"address": "Plaza Independencia 848, Montevidéu, Uruguai",
"addressExtraInfo": "Praça Independência",
"postCode": "11100",
"countryCode": "UY",
"companyCode": "DM1",
"city": "Montevidéu"
}
}

Response Schema

PropertyTypeDescription
statusCodenumberHTTP status code of the response
messagestringDescription of the response status
envelopobjectObject containing the created employee data

Employee Properties

PropertyTypeDescription
idstringUnique identifier of the employee
createdAtstringDate/time when the employee was created (ISO 8601)
updatedAtstringDate/time when the employee was last updated (ISO 8601)
firstNamestringFirst name of the employee
lastNamestringLast name of the employee
emailstringEmail address of the employee
statusstringCurrent status of the employee (e.g., "ACTIVE")
phonestringPhone number including country code
governmentDNIstringGovernment-issued identification number
cpfstring | nullBrazilian ID (nullable)
addressstringPrimary address of the employee
addressExtraInfostringAdditional address information (nullable)
postCodestringPostal or ZIP code
countryCodestringCountry code in ISO 3166-1 alpha-2 format

Example Response

{
"statusCode": 201,
"message": "Employee created successfully",
"envelop": {
"id": "0a86b6c2-7373-42fa-a44a-70857cef0f90",
"createdAt": "2025-04-10T14:58:05.119Z",
"updatedAt": "2025-04-10T14:58:05.119Z",
"firstName": "John",
"lastName": "Doe",
"email": "john_doe@email.com",
"status": "ACTIVE",
"phone": "+598 99999999",
"governmentDNI": "DNI123456",
"cpf": null,
"address": "Plaza Independencia 848, Montevidéu, Uruguai",
"addressExtraInfo": "Praça Independência",
"postCode": "11100",
"countryCode": "UY"
}
}

Error Responses

Bad Request (400)

{
"statusCode": 400,
"message": "Invalid request data",
"error": "Bad Request",
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}

Unauthorized (401)

{
"statusCode": 401,
"message": "Unauthorized access",
"error": "Unauthorized"
}

Conflict (409)

{
"statusCode": 409,
"message": "Employee with this email already exists",
"error": "Conflict"
}

Notes

  • Combination of companyId and email addresses must be unique across the system.
  • Phone numbers should include the country code and + symbol.
  • Once created, employees are set to "ACTIVE" status by default.