Skip to main content
This quickstart runs one Canadian payroll calculation end to end. Canadian location codes are simple enough to write down up front — one code per province, plus 80-000-0000 for federal taxes — so there is no address lookup to do first and you can go straight to a calculation. Our employee has just started a job in Vancouver, British Columbia and is receiving her first paycheck. She earns $65,000 a year paid biweekly, so gross wages are $2,500 for the period, on a pay date of January 13, 2026.
Two Canada-specific rules apply to every calculation on this page. Set calcMethodSupplementalWages to None — Canada ignores it. And on the on-premise SDK, call the Canadian calculate function rather than the U.S. one. For the complete list, see Differences between Canadian and U.S. calculations.

Authenticate

Hosted API requests need an API key. Staging and production use separate keys, and each works only in its matching environment. Pass the key as the raw value of the Authorization header — no Bearer prefix.
On-premise SDK users have nothing to authenticate — the engine runs locally against your licensed installation. See Licensing.

Send a payCalc request

This calculates four employee taxes and three employer taxes. The two claim amounts come from the employee’s tax forms: 16452 from federal Form TD1 and 13216 from Form TD1BC.
The STE does not store anything between calls. You must track month-to-date, quarter-to-date, and year-to-date wages and withholding in your own system and pass them in. They are all 0 here because this is the employee’s first paycheck of the year.

Read the response

Each entry in the returned taxCalculation array is one tax. The field you withhold on is taxAmount. That is $529.89 withheld from a $2,500.00 paycheck, leaving $1,970.11 net, plus $236.54 owed by the employer.
The response also contains 80-000-0000-CPP2-000 and 80-000-0000-ER_CPP2-000, the CPP second additional contribution, even though you did not request them. Both are $0 here because these wages fall below the first earnings ceiling. Expect them and handle them like any other tax.
subjectWages comes back alongside each tax amount. For Canadian taxes read it as pensionable, insurable, or contributable wages, whichever applies to that tax.

Next steps

Canadian payroll walkthrough

The same calculation in depth, with full code for every interface.

Canadian vs. U.S. calculations

Every difference to know before you go live.

Canadian location codes

The code for each province and territory.

Canadian bonus payments

Off-cycle and bonus runs, which follow different rules.