Crear empleado
curl --request POST \
--url https://api.filexpress.app/api/external/hr/employees \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"first_name": "María",
"last_name": "López",
"document_type": "DUI",
"document_number": "01234567-8",
"tax_number": "0614-010190-101-1",
"email": "maria@empresa.com",
"phone": "7000-0000",
"type": "permanent",
"job_title_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"manager_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"hire_date": "2026-10-01",
"salary": 850,
"bank_name": "Banco Agrícola",
"bank_account_type": "Ahorro",
"bank_account_number": "3000123456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: 'María',
last_name: 'López',
document_type: 'DUI',
document_number: '01234567-8',
tax_number: '0614-010190-101-1',
email: 'maria@empresa.com',
phone: '7000-0000',
type: 'permanent',
job_title_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
manager_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
hire_date: '2026-10-01',
salary: 850,
bank_name: 'Banco Agrícola',
bank_account_type: 'Ahorro',
bank_account_number: '3000123456'
})
};
fetch('https://api.filexpress.app/api/external/hr/employees', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/hr/employees"
payload = {
"first_name": "María",
"last_name": "López",
"document_type": "DUI",
"document_number": "01234567-8",
"tax_number": "0614-010190-101-1",
"email": "maria@empresa.com",
"phone": "7000-0000",
"type": "permanent",
"job_title_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"manager_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"hire_date": "2026-10-01",
"salary": 850,
"bank_name": "Banco Agrícola",
"bank_account_type": "Ahorro",
"bank_account_number": "3000123456"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/hr/employees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'María',
'last_name' => 'López',
'document_type' => 'DUI',
'document_number' => '01234567-8',
'tax_number' => '0614-010190-101-1',
'email' => 'maria@empresa.com',
'phone' => '7000-0000',
'type' => 'permanent',
'job_title_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'manager_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'hire_date' => '2026-10-01',
'salary' => 850,
'bank_name' => 'Banco Agrícola',
'bank_account_type' => 'Ahorro',
'bank_account_number' => '3000123456'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": true,
"data": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"first_name": "María",
"last_name": "López",
"document_type": "DUI",
"document_number": "01234567-8",
"tax_number": "0614-010190-101-1",
"email": "maria@empresa.com",
"phone": "7000-0000",
"type": "permanent",
"job_title": "Contadora",
"hire_date": "2024-02-01",
"salary": 850,
"is_active": true
}
}{
"status": false,
"message": "Invalid API Key."
}{
"status": false,
"message": "This integration does not have the 'hr.employees' permission.",
"required_scope": "hr.employees"
}{
"status": false,
"message": "An employee with this document number already exists.",
"employee_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11"
}{
"status": false,
"message": "Validation errors",
"errors": {
"start_date": [
"The start date field is required."
]
}
}{
"status": false,
"message": "Rate limit exceeded. Please try again later.",
"rate_limit": 100
}Crear empleado
Da de alta un empleado. El número de documento debe ser único en el negocio.
Permiso requerido: hr.employees.write
POST
/
hr
/
employees
Crear empleado
curl --request POST \
--url https://api.filexpress.app/api/external/hr/employees \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"first_name": "María",
"last_name": "López",
"document_type": "DUI",
"document_number": "01234567-8",
"tax_number": "0614-010190-101-1",
"email": "maria@empresa.com",
"phone": "7000-0000",
"type": "permanent",
"job_title_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"manager_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"hire_date": "2026-10-01",
"salary": 850,
"bank_name": "Banco Agrícola",
"bank_account_type": "Ahorro",
"bank_account_number": "3000123456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_name: 'María',
last_name: 'López',
document_type: 'DUI',
document_number: '01234567-8',
tax_number: '0614-010190-101-1',
email: 'maria@empresa.com',
phone: '7000-0000',
type: 'permanent',
job_title_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
manager_id: '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
hire_date: '2026-10-01',
salary: 850,
bank_name: 'Banco Agrícola',
bank_account_type: 'Ahorro',
bank_account_number: '3000123456'
})
};
fetch('https://api.filexpress.app/api/external/hr/employees', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.filexpress.app/api/external/hr/employees"
payload = {
"first_name": "María",
"last_name": "López",
"document_type": "DUI",
"document_number": "01234567-8",
"tax_number": "0614-010190-101-1",
"email": "maria@empresa.com",
"phone": "7000-0000",
"type": "permanent",
"job_title_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"manager_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"hire_date": "2026-10-01",
"salary": 850,
"bank_name": "Banco Agrícola",
"bank_account_type": "Ahorro",
"bank_account_number": "3000123456"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.filexpress.app/api/external/hr/employees",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'María',
'last_name' => 'López',
'document_type' => 'DUI',
'document_number' => '01234567-8',
'tax_number' => '0614-010190-101-1',
'email' => 'maria@empresa.com',
'phone' => '7000-0000',
'type' => 'permanent',
'job_title_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'manager_id' => '9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11',
'hire_date' => '2026-10-01',
'salary' => 850,
'bank_name' => 'Banco Agrícola',
'bank_account_type' => 'Ahorro',
'bank_account_number' => '3000123456'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"status": true,
"data": {
"id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11",
"first_name": "María",
"last_name": "López",
"document_type": "DUI",
"document_number": "01234567-8",
"tax_number": "0614-010190-101-1",
"email": "maria@empresa.com",
"phone": "7000-0000",
"type": "permanent",
"job_title": "Contadora",
"hire_date": "2024-02-01",
"salary": 850,
"is_active": true
}
}{
"status": false,
"message": "Invalid API Key."
}{
"status": false,
"message": "This integration does not have the 'hr.employees' permission.",
"required_scope": "hr.employees"
}{
"status": false,
"message": "An employee with this document number already exists.",
"employee_id": "9d1c5a3e-4b7f-4e2a-9c1d-2f6b8a0e7c11"
}{
"status": false,
"message": "Validation errors",
"errors": {
"start_date": [
"The start date field is required."
]
}
}{
"status": false,
"message": "Rate limit exceeded. Please try again later.",
"rate_limit": 100
}Authorizations
API Key de la integración (Integraciones → Nueva Integración).
Body
application/json
Tipo de contratación.
Available options:
permanent, temporary, project_based Fecha de ingreso.
Salario mensual.
Único en el negocio.
NIT.
Puesto (GET /hr/job-titles).
Jefe inmediato.
false para dar de baja.
Response
Empleado creado