How do I test a payroll tax API with cURL?
Set an environment variable KEY to a test key, then POST a JSON paycheck to https://omniatax.io/v1/paycheck with an Authorization: Bearer header and a Content-Type of application/json.
Developers
The quickest way to see what the API returns.
cURL needs no setup beyond a key. Set KEY to a test key, paste a request, and read the answer. Three requests follow, with the net pay each returns, so you can confirm your own run matches.
curl https://omniatax.io/v1/paycheck \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"checkDate": "2026-09-15",
"payFrequency": "biweekly",
"earnings": [{ "code": "REG", "category": "regular", "amount": 300000 }],
"deductions": [],
"federalW4": { "filingStatus": "single", "multipleJobs": false,
"dependentCredit": 0, "otherIncome": 0, "deductions": 0, "extraWithholding": 0 },
"ytd": { "socialSecurity": 0, "medicare": 0, "futa": 0 },
"workState": { "code": "TX" }
}'Net pay on $3,000.00 is $2,450.12.
curl https://omniatax.io/v1/paycheck \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"checkDate": "2026-09-15",
"payFrequency": "biweekly",
"earnings": [{ "code": "REG", "category": "regular", "amount": 300000 }],
"deductions": [],
"federalW4": { "filingStatus": "single", "multipleJobs": false,
"dependentCredit": 0, "otherIncome": 0, "deductions": 0, "extraWithholding": 0 },
"ytd": { "socialSecurity": 0, "medicare": 0, "futa": 0 },
"workState": { "code": "CA" }
}'The same pay in California returns net pay of $2,277.06. The difference from Texas is $173.06, made up of California Income Tax $134.06 and California Disability Benefits (Employee) $39.00.
curl https://omniatax.io/v1/paycheck \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"checkDate": "2026-09-15",
"payFrequency": "biweekly",
"earnings": [{ "code": "REG", "category": "regular", "amount": 300000 }],
"deductions": [],
"federalW4": { "filingStatus": "single", "multipleJobs": false,
"dependentCredit": 0, "otherIncome": 0, "deductions": 0, "extraWithholding": 0 },
"ytd": { "socialSecurity": 0, "medicare": 0, "futa": 0 },
"workState": { "code": "OH", "certificate": { "residenceCity": "Columbus", "workCity": "Columbus" } }
}'Net pay is $2,299.35, after Ohio income tax and Columbus city income tax.
Pipe the response through jq to see the lines on their own:
curl -s https://omniatax.io/v1/paycheck \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d @paycheck.json | jq '.result.taxes[] | {id, payer, amount}'Add -i to see the RateLimit-Remaining and X-Request-Id headers.
Payroll tax API test keys · Payroll tax API Python example · Payroll tax API JavaScript example · Paycheck calculator · All guides
Set an environment variable KEY to a test key, then POST a JSON paycheck to https://omniatax.io/v1/paycheck with an Authorization: Bearer header and a Content-Type of application/json.
Create a free test key from your account. Test keys use the same engine and data as live keys, need no card and are never billed.
14-day free trial, then $0.08 per paycheck calculation. Omnia Express calculates; it does not file, deposit tax, or give tax advice. Disclaimer.