Income tax, social insurance, the martyrs fund and employer cost for any payroll month — calculated exactly as the ETA unified payroll-tax system does. Built for HR systems, payroll providers and employers of record.
Matches ETA
Checked against 235 calculations on the ETA payroll portal, to the piaster.
Partial months
Joiners, leavers and same-month join-and-leave from dates alone.
Batches
Up to 500 employees per call, with totals.
Net to gross
Send the agreed net — get the basic salary that produces it.
Send your key in the X-API-Key header (or Authorization: Bearer …). Keys are created in your EG Payslip account and shown once. Base URL: https://api.egpayslip.com
POST /api/v1/payroll/calculate
curl -X POST https://api.egpayslip.com/api/v1/payroll/calculate \
-H "X-API-Key: egp_live_…" -H "Content-Type: application/json" \
-d '{
"employee_id": "E-001", "period_year": 2026, "period_month": 10,
"gross_salary": 20000,
"allowances": [{ "type": "housing", "amount": 3000 }, { "type": "medical_insurance", "amount": 600 }],
"join_date": "2026-10-12"
}'The response has every figure on a payslip: employee_insurance, employer_insurance, martyrs_fund, monthly_tax, net_salary, total_employer_cost, the ETA working (eta_days, period_exemption, premium_deduction, period_net_taxable, annual_taxable_income), a bilingual breakdown and the rates applied. net_shortfall shows deductions above the pay (for example full-month insurance for a one-day leaver).
| employee_id, period_year, period_month | Required. The payroll month. |
| gross_salary | Full-month basic salary (EGP). Or send net_salary to get the basic for an agreed net. |
| allowances[] | housing, transport, meals, car (excluded from social insurance up to 30% of the insurable wage); mobile, other (insurable); inkind_car, inkind_mobile (taxable in-kind); medical_insurance (premium paid by the employer: taxable benefit, exempt up to the lowest of the premium, 15% of net income, EGP 10,000 a year). |
| employee_paid_premiums | Life / health / pension premiums the employee pays (deduction only, same cap). |
| join_date, termination_date | For a partial month. The API works out the pay (days ÷ 30), the ETA days and the social-insurance rule (none if insurance starts after the 1st, full in the leaving month). |
| employee_type | employee (default) or owner — owner/partner on the commercial register: 21% social insurance, no employer share. |
| insured, disabled, insurance_wage_override | Uninsured employees, the disability exemption (EGP 30,000), a fixed insurance wage. |
| deductions[] | Loans, advances, penalties taken from net pay. |
POST /api/v1/payroll/batch — { period_year, period_month, employees: [...] }, up to 500 employees, per-employee results and totals.GET /api/v1/rates/egypt/current — the rates and rules in force (free).POST /api/v1/validate/national-id — Egyptian national ID check: birth date, gender, governorate (free).Usage is counted in employee calculations per calendar month (UTC): one per calculate call, one per employee in a batch. Rates and ID checks are free. Responses carry X-Quota-Limit and X-Quota-Remaining. Need more? Request an upgrade from your account.
| 401 | UNAUTHORIZED / KEY_REVOKED | Missing, wrong or revoked key |
| 403 | CLIENT_SUSPENDED | Account suspended |
| 429 | QUOTA_EXCEEDED / RATE_LIMITED | Monthly quota used up, or too many requests per minute |
| 400 | MISSING_FIELD / INVALID_FIELD / NOT_ON_PAYROLL | Fix the request — the message says what |
Priced per employee calculation per month. Prices in USD; invoices in EGP available for Egyptian companies.
Free
$0
50 calculations/month
Testing and integration
Starter
$29/month
1,000 calculations/month
$0.029 per calculation
Growth
$99/month
5,000 calculations/month
$0.020 per calculation
Scale
$299/month
25,000 calculations/month
$0.012 per calculation
Partner
Contract
Custom volume
Resellers and high volume, from $0.008
Start on Free from your account; upgrade from the same page.
rates_provisional; quotas and usage; OpenAPI spec.The engine reproduces 235 calculations made on the ETA payroll portal, and each rule is documented with its legal source (Income Tax Law 91/2005 and its Executive Regulations, Law 7/2024, Social Insurance Law 148/2019, Labour Law 14/2025). The test suite runs on every change, and rates are updated each January. The API calculates one payroll month; it does not replace the year-end settlement.
Use of the API is subject to the API Terms of Use.