{"status":"ok","version":"2.3.0"}
curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26434/health+check' --header 'Authorization: Bearer YOUR_API_KEY'
{"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}
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}'
[{"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}]
curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26436/list+countries' --header 'Authorization: Bearer YOUR_API_KEY'
{"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}]}
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}]}'
{"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}
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}'
[{"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"]}]
curl --location --request GET 'https://zylalabs.com/api/13070/latin+america+iberia+payroll+api/26445/list+termination+countries' --header 'Authorization: Bearer YOUR_API_KEY'
{"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}]}
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"}]}'
{"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}
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"}'
[{"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}]
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'
{"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}
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}'
{"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}
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'
{"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}
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"]}'
{"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}]}
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}]}'
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.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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.
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.
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.
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.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund