Why does the API use cents instead of dollars?
Integers add exactly. Dollar amounts stored as floating point drift by fractions of a cent, which can round the wrong way and break reconciliation to deposits.
Developers
Why every amount is a whole number, and where rounding happens.
Payroll amounts must tie to the penny. Withheld tax is deposited and reported, and a one-cent difference per paycheck becomes a reconciliation problem across thousands of them. The Omnia Express API therefore uses integer cents for every amount, in requests and responses.
In most programming languages 0.1 + 0.2 is not 0.3. Add enough dollar amounts stored as floating point and totals drift by fractions of a cent, which then round the wrong way on one line. Integers do not drift. $3,000.00 is 300000, and 300000 plus 300000 is exactly 600000.
3000.5 is refused with a message showing what to send instead.employeeTaxTotal equals the sum of the employee lines exactly.In the Columbus example the employee lines add up to $700.65 and employeeTaxTotal is $700.65. They match because there is nothing to disagree about.
Math.round(dollars * 100), then never touch floats again.JSON payroll tax API · Payroll tax API error codes · Paycheck calculation formula · Payroll tax API Python example · All guides
Integers add exactly. Dollar amounts stored as floating point drift by fractions of a cent, which can round the wrong way and break reconciliation to deposits.
The request is refused with a 422 invalid_input error that names the field and shows the whole-cent value to send.
14-day free trial, then $0.08 per paycheck calculation. Omnia Express calculates; it does not file, deposit tax, or give tax advice. Disclaimer.