Latin America Iberia Payroll API

API ID 13070

Calculate net monthly salary and payroll deductions for 20 countries across Latin America, Spain and Portugal. Ideal for HR tech, fintech and remote-work platforms.

339 ms avg response

API Documentation

Endpoints

Request

Returns service health status and version.

Endpoint ID: 26434
GET https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26434/health+check
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
{"status":"ok","version":"2.3.0"}
Health Check — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26434/health+check' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Gross-to-net payroll API with employer cost for 20 LATAM and Iberia countries.

Endpoint ID: 26435
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26435/calculate+payroll
INPUT PARAMETERS

Calculate Payroll — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":25000.0,"net_monthly":22937.66,"total_deductions":2062.34,"effective_rate_pct":8.25,"deductions":[{"code":"isr","label":"ISR (estimated)","amount":1265.37},{"code":"imss","label":"IMSS employee (approx.)","amount":625.0},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":5100.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":1250.0},{"code":"sar","label":"SAR / retirement (2%)","amount":500.0}],"employer_contributions_total":6850.0,"employer_total_cost":31850.0,"calculation_mode":"gross_to_net","disclaimer":"Salary planning estimate for HR/fintech use — not legal, tax or payroll compliance advice. Rules change by jurisdiction; verify with a local accountant before payroll processing.","year":2026}
Calculate Payroll — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26435/calculate+payroll' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"gross_monthly":25000}'

    
Request

Returns 20 supported LATAM and Iberia countries with currency and reverse payroll support.

Endpoint ID: 26436
GET https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26436/list+countries
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[{"code":"mx","name":"Mexico","currency":"MXN","endpoint":"/v1/payroll/mx","reverse_endpoint":"/v1/payroll/mx/reverse","supports_net_to_gross":true},{"code":"ec","name":"Ecuador","currency":"USD","endpoint":"/v1/payroll/ec","reverse_endpoint":"/v1/payroll/ec/reverse","supports_net_to_gross":true},{"code":"br","name":"Brazil","currency":"BRL","endpoint":"/v1/payroll/br","reverse_endpoint":"/v1/payroll/br/reverse","supports_net_to_gross":true},{"code":"ar","name":"Argentina","currency":"ARS","endpoint":"/v1/payroll/ar","reverse_endpoint":"/v1/payroll/ar/reverse","supports_net_to_gross":true},{"code":"co","name":"Colombia","currency":"COP","endpoint":"/v1/payroll/co","reverse_endpoint":"/v1/payroll/co/reverse","supports_net_to_gross":true},{"code":"pe","name":"Peru","currency":"PEN","endpoint":"/v1/payroll/pe","reverse_endpoint":"/v1/payroll/pe/reverse","supports_net_to_gross":true},{"code":"cl","name":"Chile","currency":"CLP","endpoint":"/v1/payroll/cl","reverse_endpoint":"/v1/payroll/cl/reverse","supports_net_to_gross":true},{"code":"uy","name":"Uruguay","currency":"UYU","endpoint":"/v1/payroll/uy","reverse_endpoint":"/v1/payroll/uy/reverse","supports_net_to_gross":true},{"code":"py","name":"Paraguay","currency":"PYG","endpoint":"/v1/payroll/py","reverse_endpoint":"/v1/payroll/py/reverse","supports_net_to_gross":true},{"code":"do","name":"Dominican Republic","currency":"DOP","endpoint":"/v1/payroll/do","reverse_endpoint":"/v1/payroll/do/reverse","supports_net_to_gross":true},{"code":"bo","name":"Bolivia","currency":"BOB","endpoint":"/v1/payroll/bo","reverse_endpoint":"/v1/payroll/bo/reverse","supports_net_to_gross":true},{"code":"cr","name":"Costa Rica","currency":"CRC","endpoint":"/v1/payroll/cr","reverse_endpoint":"/v1/payroll/cr/reverse","supports_net_to_gross":true},{"code":"pa","name":"Panama","currency":"USD","endpoint":"/v1/payroll/pa","reverse_endpoint":"/v1/payroll/pa/reverse","supports_net_to_gross":true},{"code":"gt","name":"Guatemala","currency":"GTQ","endpoint":"/v1/payroll/gt","reverse_endpoint":"/v1/payroll/gt/reverse","supports_net_to_gross":true},{"code":"hn","name":"Honduras","currency":"HNL","endpoint":"/v1/payroll/hn","reverse_endpoint":"/v1/payroll/hn/reverse","supports_net_to_gross":true},{"code":"sv","name":"El Salvador","currency":"USD","endpoint":"/v1/payroll/sv","reverse_endpoint":"/v1/payroll/sv/reverse","supports_net_to_gross":true},{"code":"ve","name":"Venezuela","currency":"USD","endpoint":"/v1/payroll/ve","reverse_endpoint":"/v1/payroll/ve/reverse","supports_net_to_gross":true},{"code":"ni","name":"Nicaragua","currency":"NIO","endpoint":"/v1/payroll/ni","reverse_endpoint":"/v1/payroll/ni/reverse","supports_net_to_gross":true},{"code":"pt","name":"Portugal","currency":"EUR","endpoint":"/v1/payroll/pt","reverse_endpoint":"/v1/payroll/pt/reverse","supports_net_to_gross":true},{"code":"es","name":"Spain (employee SS)","currency":"EUR","endpoint":"/v1/payroll/es","reverse_endpoint":"/v1/payroll/es/reverse","supports_net_to_gross":true}]
List Countries — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26436/list+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Batch payroll calculations for up to 50 countries in one request. Ideal for HR platforms processing multiple employees.

Endpoint ID: 26437
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26437/batch+payroll
INPUT PARAMETERS

Batch Payroll — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"total":2,"succeeded":2,"failed":0,"results":[{"index":0,"status":"ok","result":{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":50000.0,"net_monthly":45712.66,"total_deductions":4287.34,"effective_rate_pct":8.57,"deductions":[{"code":"isr","label":"ISR (estimated)","amount":2865.37},{"code":"imss","label":"IMSS employee (approx.)","amount":1250.0},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":10200.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":2500.0},{"code":"sar","label":"SAR / retirement (2%)","amount":1000.0}],"employer_contributions_total":13700.0,"employer_total_cost":63700.0,"calculation_mode":"gross_to_net","disclaimer":"Salary planning estimate for HR/fintech use — not legal, tax or payroll compliance advice. Rules change by jurisdiction; verify with a local accountant before payroll processing.","year":2026},"error":null},{"index":1,"status":"ok","result":{"country":"br","country_name":"Brazil","currency":"BRL","gross_monthly":8000.0,"net_monthly":6089.21,"total_deductions":1910.79,"effective_rate_pct":23.88,"deductions":[{"code":"inss","label":"INSS (progressive)","amount":908.86},{"code":"irrf","label":"IRRF (2026 table est.)","amount":1001.93}],"employer_contributions":[{"code":"inss_patron","label":"INSS employer (~20%)","amount":1600.0},{"code":"fgts","label":"FGTS (8%)","amount":640.0},{"code":"rat","label":"RAT / work accident (avg. 2%)","amount":160.0}],"employer_contributions_total":2400.0,"employer_total_cost":10400.0,"calculation_mode":"gross_to_net","disclaimer":"Salary planning estimate for HR/fintech use — not legal, tax or payroll compliance advice. Rules change by jurisdiction; verify with a local accountant before payroll processing.","year":2026},"error":null}]}
Batch Payroll — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26437/batch+payroll' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"items":[{"country":"mx","gross_monthly":50000},{"country":"br","gross_monthly":8000,"dependents":1}]}'

    
Request

Net-to-gross reverse salary calculation API. Provide target net monthly pay to get required gross amount.

Endpoint ID: 26438
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26438/reverse+payroll
INPUT PARAMETERS

Reverse Payroll — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":38240.22,"net_monthly":34999.5,"total_deductions":3240.72,"effective_rate_pct":8.47,"deductions":[{"code":"isr","label":"ISR (estimated)","amount":2112.74},{"code":"imss","label":"IMSS employee (approx.)","amount":956.01},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":7801.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":1912.01},{"code":"sar","label":"SAR / retirement (2%)","amount":764.8}],"employer_contributions_total":10477.81,"employer_total_cost":48718.03,"calculation_mode":"net_to_gross","disclaimer":"Salary planning estimate for HR/fintech use — not legal, tax or payroll compliance advice. Rules change by jurisdiction; verify with a local accountant before payroll processing.","year":2026}
Reverse Payroll — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26438/reverse+payroll' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"net_monthly":35000,"include_bonuses":true}'

    
Request

Lists supported countries for employee exit payout estimates. Supported countries: BR MX CL CO AR PE EC (7 countries total).

Endpoint ID: 26445
GET https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26445/list+termination+countries
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[{"code":"br","name":"Brazil","currency":"BRL","endpoint":"/v1/termination/br","termination_types":["without_cause","with_cause","resignation"]},{"code":"mx","name":"Mexico","currency":"MXN","endpoint":"/v1/termination/mx","termination_types":["without_cause","with_cause","resignation","mutual","end_contract"]},{"code":"cl","name":"Chile","currency":"CLP","endpoint":"/v1/termination/cl","termination_types":["without_cause","with_cause","resignation","mutual"]},{"code":"co","name":"Colombia","currency":"COP","endpoint":"/v1/termination/co","termination_types":["without_cause","with_cause","resignation","mutual"]},{"code":"ar","name":"Argentina","currency":"ARS","endpoint":"/v1/termination/ar","termination_types":["without_cause","with_cause","resignation","mutual"]},{"code":"pe","name":"Peru","currency":"PEN","endpoint":"/v1/termination/pe","termination_types":["without_cause","with_cause","resignation","mutual"]},{"code":"ec","name":"Ecuador","currency":"USD","endpoint":"/v1/termination/ec","termination_types":["without_cause","with_cause","resignation","mutual","end_contract"]}]
List Termination Countries — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26445/list+termination+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Process up to 50 severance and termination calculations in a single API call for HR platforms and offboarding workflows across LATAM.

Endpoint ID: 26446
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26446/batch+termination
INPUT PARAMETERS

Batch Termination — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"total":2,"succeeded":2,"failed":0,"results":[{"index":0,"status":"ok","result":{"country":"mx","country_name":"Mexico","currency":"MXN","termination_type":"without_cause","total_severance":177916.66,"components":[{"code":"aguinaldo","label":"Aguinaldo proporcional","amount":12500.0},{"code":"vacaciones","label":"Vacaciones proporcionales","amount":8333.33},{"code":"prima_vacacional","label":"Prima vacacional (25%)","amount":2083.33},{"code":"indemnizacion_3m","label":"Indemnización 3 meses (despido injustificado)","amount":75000.0},{"code":"indemnizacion_20d","label":"20 días por año de servicio","amount":50000.0},{"code":"prima_antiguedad","label":"Prima de antigüedad (12 días/año)","amount":30000.0}],"inputs_used":{"gross_monthly":25000.0,"daily_salary":833.3333333333334,"days_worked":365,"vacation_days_pending":10.0,"years_of_service":3.0,"include_severance_indemnity":true},"disclaimer":"Severance and termination estimate for HR/fintech use — not legal, labor or payroll compliance advice. Rules vary by contract, collective agreements and jurisdiction; verify with a local labor lawyer before processing a real termination.","year":2026},"error":null},{"index":1,"status":"ok","result":{"country":"br","country_name":"Brazil","currency":"BRL","termination_type":"without_cause","total_severance":11553.34,"components":[{"code":"aviso_previo","label":"Aviso prévio (estimado)","amount":8000.0},{"code":"ferias_terco","label":"Férias + 1/3 proporcional","amount":886.67},{"code":"decimo_terceiro","label":"13º salário proporcional","amount":666.67},{"code":"fgts_multa","label":"Multa FGTS (40%)","amount":2000.0}],"inputs_used":{"gross_monthly":8000.0,"fgts_balance":5000.0,"months_worked":18},"disclaimer":"Severance and termination estimate for HR/fintech use — not legal, labor or payroll compliance advice. Rules vary by contract, collective agreements and jurisdiction; verify with a local labor lawyer before processing a real termination.","year":2026},"error":null}]}
Batch Termination — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26446/batch+termination' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"items":[{"country":"mx","gross_monthly":25000,"years_of_service":3,"vacation_days_pending":10,"termination_type":"without_cause"},{"country":"br","gross_monthly":8000,"months_worked":18,"fgts_balance":5000,"termination_type":"without_cause"}]}'

    
Request

Calculate severance and termination payout for Brazil Mexico Chile Colombia Argentina Peru and Ecuador (7 countries) with itemized payout components for HR offboarding workflows.

Endpoint ID: 26447
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26447/calculate+termination
INPUT PARAMETERS

Calculate Termination — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"country":"mx","country_name":"Mexico","currency":"MXN","termination_type":"without_cause","total_severance":177916.66,"components":[{"code":"aguinaldo","label":"Aguinaldo proporcional","amount":12500.0},{"code":"vacaciones","label":"Vacaciones proporcionales","amount":8333.33},{"code":"prima_vacacional","label":"Prima vacacional (25%)","amount":2083.33},{"code":"indemnizacion_3m","label":"Indemnización 3 meses (despido injustificado)","amount":75000.0},{"code":"indemnizacion_20d","label":"20 días por año de servicio","amount":50000.0},{"code":"prima_antiguedad","label":"Prima de antigüedad (12 días/año)","amount":30000.0}],"inputs_used":{"gross_monthly":25000.0,"daily_salary":833.3333333333334,"days_worked":365,"vacation_days_pending":10.0,"years_of_service":3.0,"include_severance_indemnity":true},"disclaimer":"Severance and termination estimate for HR/fintech use — not legal, labor or payroll compliance advice. Rules vary by contract, collective agreements and jurisdiction; verify with a local labor lawyer before processing a real termination.","year":2026}
Calculate Termination — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26447/calculate+termination' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"gross_monthly":25000,"years_of_service":3,"vacation_days_pending":10,"termination_type":"without_cause"}'

    
Request

Lists 20 LATAM and Iberia countries for total employment cost with breakdown endpoint paths.

Endpoint ID: 26449
GET https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26449/list+employment+cost+countries
INPUT PARAMETERS

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
[{"code":"mx","name":"Mexico","currency":"MXN","endpoint":"/v1/employment-cost/mx","breakdown_endpoint":"/v1/employment-cost/mx/breakdown","supports_severance_provision":true},{"code":"ec","name":"Ecuador","currency":"USD","endpoint":"/v1/employment-cost/ec","breakdown_endpoint":"/v1/employment-cost/ec/breakdown","supports_severance_provision":true},{"code":"br","name":"Brazil","currency":"BRL","endpoint":"/v1/employment-cost/br","breakdown_endpoint":"/v1/employment-cost/br/breakdown","supports_severance_provision":true},{"code":"ar","name":"Argentina","currency":"ARS","endpoint":"/v1/employment-cost/ar","breakdown_endpoint":"/v1/employment-cost/ar/breakdown","supports_severance_provision":true},{"code":"co","name":"Colombia","currency":"COP","endpoint":"/v1/employment-cost/co","breakdown_endpoint":"/v1/employment-cost/co/breakdown","supports_severance_provision":true},{"code":"pe","name":"Peru","currency":"PEN","endpoint":"/v1/employment-cost/pe","breakdown_endpoint":"/v1/employment-cost/pe/breakdown","supports_severance_provision":true},{"code":"cl","name":"Chile","currency":"CLP","endpoint":"/v1/employment-cost/cl","breakdown_endpoint":"/v1/employment-cost/cl/breakdown","supports_severance_provision":true},{"code":"uy","name":"Uruguay","currency":"UYU","endpoint":"/v1/employment-cost/uy","breakdown_endpoint":"/v1/employment-cost/uy/breakdown","supports_severance_provision":false},{"code":"py","name":"Paraguay","currency":"PYG","endpoint":"/v1/employment-cost/py","breakdown_endpoint":"/v1/employment-cost/py/breakdown","supports_severance_provision":false},{"code":"do","name":"Dominican Republic","currency":"DOP","endpoint":"/v1/employment-cost/do","breakdown_endpoint":"/v1/employment-cost/do/breakdown","supports_severance_provision":false},{"code":"bo","name":"Bolivia","currency":"BOB","endpoint":"/v1/employment-cost/bo","breakdown_endpoint":"/v1/employment-cost/bo/breakdown","supports_severance_provision":false},{"code":"cr","name":"Costa Rica","currency":"CRC","endpoint":"/v1/employment-cost/cr","breakdown_endpoint":"/v1/employment-cost/cr/breakdown","supports_severance_provision":false},{"code":"pa","name":"Panama","currency":"USD","endpoint":"/v1/employment-cost/pa","breakdown_endpoint":"/v1/employment-cost/pa/breakdown","supports_severance_provision":false},{"code":"gt","name":"Guatemala","currency":"GTQ","endpoint":"/v1/employment-cost/gt","breakdown_endpoint":"/v1/employment-cost/gt/breakdown","supports_severance_provision":false},{"code":"hn","name":"Honduras","currency":"HNL","endpoint":"/v1/employment-cost/hn","breakdown_endpoint":"/v1/employment-cost/hn/breakdown","supports_severance_provision":false},{"code":"sv","name":"El Salvador","currency":"USD","endpoint":"/v1/employment-cost/sv","breakdown_endpoint":"/v1/employment-cost/sv/breakdown","supports_severance_provision":false},{"code":"ve","name":"Venezuela","currency":"USD","endpoint":"/v1/employment-cost/ve","breakdown_endpoint":"/v1/employment-cost/ve/breakdown","supports_severance_provision":false},{"code":"ni","name":"Nicaragua","currency":"NIO","endpoint":"/v1/employment-cost/ni","breakdown_endpoint":"/v1/employment-cost/ni/breakdown","supports_severance_provision":false},{"code":"pt","name":"Portugal","currency":"EUR","endpoint":"/v1/employment-cost/pt","breakdown_endpoint":"/v1/employment-cost/pt/breakdown","supports_severance_provision":false},{"code":"es","name":"Spain (employee SS)","currency":"EUR","endpoint":"/v1/employment-cost/es","breakdown_endpoint":"/v1/employment-cost/es/breakdown","supports_severance_provision":false}]
List Employment Cost Countries — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26449/list+employment+cost+countries' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Calculate fully loaded employer cost with aguinaldo 13th salary and vacation provisions for 20 LATAM and Iberia countries.

Endpoint ID: 26450
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26450/calculate+employment+cost
INPUT PARAMETERS

Calculate Employment Cost — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":50000.0,"net_monthly":45712.66,"employer_contributions_total":13700.0,"employer_total_cost_monthly":63700.0,"statutory_extras":[{"code":"aguinaldo","label":"Aguinaldo minimum (15 days)","annual_amount":25000.0,"monthly_provision":2083.33},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":25020.0,"monthly_provision":2085.0}],"statutory_extras_monthly":4168.33,"statutory_extras_annual":50020.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":67868.33,"annual_employer_cost":814420.0,"cost_multipliers":{"vs_gross":1.3574,"vs_net":1.4847},"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":10200.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":2500.0},{"code":"sar","label":"SAR / retirement (2%)","amount":1000.0}],"deductions":[{"code":"isr","label":"ISR (estimated)","amount":2865.37},{"code":"imss","label":"IMSS employee (approx.)","amount":1250.0},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026}
Calculate Employment Cost — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26450/calculate+employment+cost' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"gross_monthly":50000,"include_statutory_provisions":true}'

    
Request

GET employment cost breakdown for a country using gross_monthly query parameter with statutory extras and employer contributions.

Endpoint ID: 26451
GET https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26451/employment+cost+breakdown
INPUT PARAMETERS

Employment Cost Breakdown — Endpoint Features

Object Description
gross_monthly Required Enter a gross monthly

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

gross_monthly
API EXAMPLE RESPONSE
JSON
{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":50000.0,"net_monthly":45712.66,"employer_contributions_total":13700.0,"employer_total_cost_monthly":63700.0,"statutory_extras":[{"code":"aguinaldo","label":"Aguinaldo minimum (15 days)","annual_amount":25000.0,"monthly_provision":2083.33},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":25020.0,"monthly_provision":2085.0}],"statutory_extras_monthly":4168.33,"statutory_extras_annual":50020.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":67868.33,"annual_employer_cost":814420.0,"cost_multipliers":{"vs_gross":1.3574,"vs_net":1.4847},"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":10200.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":2500.0},{"code":"sar","label":"SAR / retirement (2%)","amount":1000.0}],"deductions":[{"code":"isr","label":"ISR (estimated)","amount":2865.37},{"code":"imss","label":"IMSS employee (approx.)","amount":1250.0},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026}
Employment Cost Breakdown — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26451/employment+cost+breakdown?gross_monthly=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Compare fully loaded employer cost for the same gross salary across multiple countries ranked from cheapest to most expensive.

Endpoint ID: 26452
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26452/compare+employment+cost
INPUT PARAMETERS

Compare Employment Cost — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"gross_monthly":50000.0,"countries_compared":4,"cheapest_country":"mx","items":[{"country":"mx","country_name":"Mexico","currency":"MXN","monthly_fully_loaded_cost":67868.33,"annual_employer_cost":814420.0,"cost_multiplier_vs_gross":1.3574,"rank":1,"result":{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":50000.0,"net_monthly":45712.66,"employer_contributions_total":13700.0,"employer_total_cost_monthly":63700.0,"statutory_extras":[{"code":"aguinaldo","label":"Aguinaldo minimum (15 days)","annual_amount":25000.0,"monthly_provision":2083.33},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":25020.0,"monthly_provision":2085.0}],"statutory_extras_monthly":4168.33,"statutory_extras_annual":50020.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":67868.33,"annual_employer_cost":814420.0,"cost_multipliers":{"vs_gross":1.3574,"vs_net":1.4847},"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":10200.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":2500.0},{"code":"sar","label":"SAR / retirement (2%)","amount":1000.0}],"deductions":[{"code":"isr","label":"ISR (estimated)","amount":2865.37},{"code":"imss","label":"IMSS employee (approx.)","amount":1250.0},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026},"error":null},{"country":"co","country_name":"Colombia","currency":"COP","monthly_fully_loaded_cost":69251.67,"annual_employer_cost":831020.0,"cost_multiplier_vs_gross":1.385,"rank":2,"result":{"country":"co","country_name":"Colombia","currency":"COP","gross_monthly":50000.0,"net_monthly":46000.0,"employer_contributions_total":12500.0,"employer_total_cost_monthly":62500.0,"statutory_extras":[{"code":"prima","label":"Prima de servicios (1 month)","annual_amount":50000.0,"monthly_provision":4166.67},{"code":"cesantias_interes","label":"Cesantias interest provision (approx.)","annual_amount":6000.0,"monthly_provision":500.0},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":25020.0,"monthly_provision":2085.0}],"statutory_extras_monthly":6751.67,"statutory_extras_annual":81020.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":69251.67,"annual_employer_cost":831020.0,"cost_multipliers":{"vs_gross":1.385,"vs_net":1.5055},"employer_contributions":[{"code":"salud_patron","label":"Health employer (8.5%)","amount":4250.0},{"code":"pension_patron","label":"Pension employer (12%)","amount":6000.0},{"code":"arl","label":"ARL / work risk (avg. 0.5%)","amount":250.0},{"code":"parafiscales","label":"SENA/ICBF/Caja (approx. 4%)","amount":2000.0}],"deductions":[{"code":"salud","label":"Health (4%)","amount":2000.0},{"code":"pension","label":"Pension (4%)","amount":2000.0},{"code":"solidaridad","label":"Solidarity fund","amount":0.0},{"code":"retencion","label":"Withholding tax (est.)","amount":0.0}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026},"error":null},{"country":"ar","country_name":"Argentina","currency":"ARS","monthly_fully_loaded_cost":70831.67,"annual_employer_cost":849980.0,"cost_multiplier_vs_gross":1.4166,"rank":3,"result":{"country":"ar","country_name":"Argentina","currency":"ARS","gross_monthly":50000.0,"net_monthly":43000.0,"employer_contributions_total":12500.0,"employer_total_cost_monthly":62500.0,"statutory_extras":[{"code":"sac","label":"SAC aguinaldo provision","annual_amount":50000.0,"monthly_provision":4166.67},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":49980.0,"monthly_provision":4165.0}],"statutory_extras_monthly":8331.67,"statutory_extras_annual":99980.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":70831.67,"annual_employer_cost":849980.0,"cost_multipliers":{"vs_gross":1.4166,"vs_net":1.6472},"employer_contributions":[{"code":"jub_patron","label":"Pension employer (~16%)","amount":8000.0},{"code":"os_patron","label":"Health employer (~6%)","amount":3000.0},{"code":"art","label":"Work risk (avg. 3%)","amount":1500.0}],"deductions":[{"code":"jubilacion","label":"Pension (~11%)","amount":5500.0},{"code":"obra_social","label":"Health (~3%)","amount":1500.0},{"code":"ganancias","label":"Income tax (est.)","amount":0.0}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026},"error":null},{"country":"br","country_name":"Brazil","currency":"BRL","monthly_fully_loaded_cost":74721.67,"annual_employer_cost":896660.0,"cost_multiplier_vs_gross":1.4944,"rank":4,"result":{"country":"br","country_name":"Brazil","currency":"BRL","gross_monthly":50000.0,"net_monthly":36487.08,"employer_contributions_total":15000.0,"employer_total_cost_monthly":65000.0,"statutory_extras":[{"code":"decimo_terceiro","label":"13th salary provision","annual_amount":50000.0,"monthly_provision":4166.67},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":66660.0,"monthly_provision":5555.0}],"statutory_extras_monthly":9721.67,"statutory_extras_annual":116660.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":74721.67,"annual_employer_cost":896660.0,"cost_multipliers":{"vs_gross":1.4944,"vs_net":2.0479},"employer_contributions":[{"code":"inss_patron","label":"INSS employer (~20%)","amount":10000.0},{"code":"fgts","label":"FGTS (8%)","amount":4000.0},{"code":"rat","label":"RAT / work accident (avg. 2%)","amount":1000.0}],"deductions":[{"code":"inss","label":"INSS (progressive)","amount":908.86},{"code":"irrf","label":"IRRF (2026 table est.)","amount":12604.06}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026},"error":null}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026}
Compare Employment Cost — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26452/compare+employment+cost' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"gross_monthly":50000,"countries":["mx","co","br","ar"]}'

    
Request

Batch up to 50 employment cost calculations in one request for multi-country hire budgeting.

Endpoint ID: 26453
POST https://www.zylalabs.com/api/13070/latin+america+iberia+payroll+api/26453/batch+employment+cost
INPUT PARAMETERS

Batch Employment Cost — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{"total":2,"succeeded":2,"failed":0,"results":[{"index":0,"status":"ok","result":{"country":"mx","country_name":"Mexico","currency":"MXN","gross_monthly":25000.0,"net_monthly":22937.66,"employer_contributions_total":6850.0,"employer_total_cost_monthly":31850.0,"statutory_extras":[{"code":"aguinaldo","label":"Aguinaldo minimum (15 days)","annual_amount":12500.0,"monthly_provision":1041.67},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":12510.0,"monthly_provision":1042.5}],"statutory_extras_monthly":2084.17,"statutory_extras_annual":25010.0,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":33934.17,"annual_employer_cost":407210.0,"cost_multipliers":{"vs_gross":1.3574,"vs_net":1.4794},"employer_contributions":[{"code":"imss_patron","label":"IMSS employer (approx.)","amount":5100.0},{"code":"infonavit_patron","label":"Infonavit employer (5%)","amount":1250.0},{"code":"sar","label":"SAR / retirement (2%)","amount":500.0}],"deductions":[{"code":"isr","label":"ISR (estimated)","amount":1265.37},{"code":"imss","label":"IMSS employee (approx.)","amount":625.0},{"code":"infonavit","label":"Infonavit employee (5%)","amount":171.97}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026},"error":null},{"index":1,"status":"ok","result":{"country":"br","country_name":"Brazil","currency":"BRL","gross_monthly":8000.0,"net_monthly":6037.08,"employer_contributions_total":2400.0,"employer_total_cost_monthly":10400.0,"statutory_extras":[{"code":"decimo_terceiro","label":"13th salary provision","annual_amount":8000.0,"monthly_provision":666.67},{"code":"vacation_provision","label":"Vacation + related provision (approx.)","annual_amount":10665.6,"monthly_provision":888.8}],"statutory_extras_monthly":1555.47,"statutory_extras_annual":18665.6,"severance_provision_monthly":null,"severance_provision_annual":null,"monthly_fully_loaded_cost":11955.47,"annual_employer_cost":143465.6,"cost_multipliers":{"vs_gross":1.4944,"vs_net":1.9803},"employer_contributions":[{"code":"inss_patron","label":"INSS employer (~20%)","amount":1600.0},{"code":"fgts","label":"FGTS (8%)","amount":640.0},{"code":"rat","label":"RAT / work accident (avg. 2%)","amount":160.0}],"deductions":[{"code":"inss","label":"INSS (progressive)","amount":908.86},{"code":"irrf","label":"IRRF (2026 table est.)","amount":1054.06}],"disclaimer":"Total employment cost estimate for HR/fintech/EOR planning — not legal, tax or payroll compliance advice. Statutory provisions and severance accruals are simplified planning models; verify with a local accountant before hiring or budgeting.","year":2026},"error":null}]}
Batch Employment Cost — CODE SNIPPETS

curl --location --request POST 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26453/batch+employment+cost' --header 'Authorization: Bearer YOUR_API_KEY' 

--data-raw '{"items":[{"country":"mx","gross_monthly":25000},{"country":"br","gross_monthly":8000}]}'

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Latin America Iberia Payroll API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan
Custom Volume

  • Custom Rate Limit
  • Team & Access Management
  • SLA-backed Uptime
  • Specialized Customer Support
  • Real-Time API Monitoring
  • Enterprise Security & Compliance
Minimum annual contract: USD 10,000

Trusted by leading companies

Overview

Calculate net monthly salary, payroll tax deductions, total employment cost and severance estimates for 20 countries across Latin America, Spain and Portugal.

Built for: HR tech, fintech, EOR platforms and remote-work apps expanding into LATAM.

Payroll: gross-to-net and net-to-gross salary planning with employer cost breakdown.

Employment cost (v2.3): fully loaded employer cost with statutory provisions (aguinaldo, 13th salary, vacation) and multi-country hire comparison.

Termination (v2.2): severance estimates for Brazil, Mexico, Chile, Colombia, Argentina, Peru and Ecuador.

Endpoints include: health check, list countries, calculate payroll, reverse payroll, batch payroll, employment cost, compare countries, and termination calculations.

Results are estimates for planning purposes. Verify with a local accountant for payroll compliance.

Latin America Iberia Payroll API FAQs

The API returns data related to payroll calculations, including net monthly salary and payroll deductions for specified countries. For example, the Calculate Payroll Mexico endpoint provides the net salary and currency based on the gross amount input.

Key fields in the response include "country," which indicates the country code, "net_monthly," which shows the calculated net salary, and "currency," which specifies the currency used for the salary.

The Calculate Payroll Mexico endpoint requires a parameter for the gross monthly salary amount. Users can customize their requests by providing different gross amounts to calculate varying net salaries.

The response data is structured in JSON format, containing key-value pairs. For instance, a typical response will include the country code, net monthly salary, and currency, making it easy to parse and utilize in applications.

The data is sourced from official payroll regulations and tax guidelines specific to each country. This ensures that the calculations reflect current laws and practices for payroll deductions and net salary estimations.

Typical use cases include HR platforms calculating employee salaries, fintech applications managing payroll for remote workers, and businesses needing accurate gross-to-net salary estimates for budgeting and financial planning.

Users can integrate the returned data into their applications to display net salaries to employees, generate payroll reports, or automate payroll processing. The clear structure allows for straightforward data manipulation and presentation.

Data accuracy is maintained through regular updates based on changes in tax laws and payroll regulations. The API is designed to reflect the most current information, ensuring reliable calculations for users.

The Calculate Payroll Mexico endpoint provides information on the net monthly salary after deductions, based on a specified gross monthly salary. It returns the net salary amount and the currency used (MXN), allowing users to understand the financial implications of payroll calculations in Mexico.

The API covers payroll calculations for 20 countries across Latin America, as well as Spain and Portugal. This broad coverage allows businesses to manage payroll for diverse employee bases in various regions.

Users can customize their requests by providing different gross monthly salary amounts when calling the Calculate Payroll Mexico endpoint. This flexibility allows for tailored calculations based on specific salary scenarios.

The primary accepted parameter for the Calculate Payroll Mexico endpoint is the gross monthly salary amount, which should be a numeric value representing the salary before deductions. Users must ensure this value is valid to receive accurate calculations.

The response from the Calculate Payroll Mexico endpoint typically includes a consistent structure with fields for "country," "net_monthly," and "currency." Users can expect these fields to be present in every response, facilitating easy integration into applications.

Users should implement error handling in their applications to manage cases where the API returns partial or empty results. This may involve checking for null values or missing fields and providing fallback logic or user notifications as necessary.

The API employs quality checks by regularly validating calculations against official payroll regulations and tax guidelines. This ensures that the data returned is accurate and reflects the latest legal requirements for payroll processing.

The API can be integrated into HR or fintech platforms by utilizing its endpoints to automate payroll calculations. Developers can call the Calculate Payroll Mexico endpoint with user-provided gross salary data, allowing for real-time salary estimations and payroll management within their applications.

The Latin America Iberia Payroll API supports payroll calculations for twenty countries across Latin America, Spain, and Portugal.

The API returns detailed information including the net monthly salary, payroll deductions, and a breakdown of the gross to net salary estimates.

Businesses can integrate the API into their HR tech or fintech platforms to provide accurate salary calculations and payroll deductions, enhancing their service offerings for remote work and international employees.

The API provides output in a structured format, typically JSON, which includes specific data fields such as gross salary, net salary, and various deductions.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs