Company Configuration
Create a company
The first action is to create a company, the overarching container that represents a single customer. Authentication Note You will use yourpartner_secret to create the top-level company.
Once a company is created, future API calls should use the returned access_token to ensure
interactions are always scoped to an individual company account.
Company-level access_tokens are short-lived and will need to be refreshed before they expire.
Read more about Authentication in API Reference.
Request
Create a business entity
The next action is to create a business entity, the employer that is paying employees. Each business entity is a separate tax entity to tax agencies and has one Canadian payroll account and business number (BN). Use the customer scopedaccess_token for all requests related to this customer going forward.
Request
Create a pay schedule
A payroll schedule determines the length of a business’s pay period and how often it pays its employees. The most common payroll schedules are weekly, biweekly, semimonthly, and monthly. RequestEmployee Configuration
Create an employee
Creating an employee is very similar to creating a business entity. You will make an API request to create an employee entity in the payroll system. RequestCreate Work Assignment
You will be required to tie an employee and pay schedules together to ensure accurate payroll statutory withholdings. A Work Assignment can be created by providing the appropriate IDs to the Work Assignments endpoint. RequestSetup pay rates
Paying out earnings to employees is one of the primary functions of payroll software. Depending on the province or territory of employment, different labour laws apply relating to minimum wage and vacation earnings. You can create a Pay Rate for an employee using the pay_rate endpoint: RequestPayroll Configuration
Retrieve payroll information
When a payroll is first created, it will be in the draft status. You can retrieve draft payrolls and display totals for the end user. First, retrieve a list of all payrolls, then retrieve the individual payroll that you would like to review, change, or approve. RequestRetrieve an employee’s earnings & deductions
In order to make adjustments to individual employee’s earnings and deductions, you will need to retrieve the corresponding pay stub. Payments to employees can be added and removed, earnings and hours worked can be modified on individual payroll items, etc. You can retrieve a payroll and include all corresponding pay stubs using the ?expands=[] functionality. Read more about working with related resources in the API Reference. RequestApprove payroll
When a payroll is approved (via the/payrolls/<payroll_id>/ approve endpoint), its status changes to approved. Once approved, the payroll can no longer be modified. This is because the taxes, net pay, and benefits have been calculated and saved for the payroll.
Request
Generate pay stubs
Nmbr also provides the ability to generate pay stubs for employees both as a rendered PDF and as a JSON object. Because CRA regulations generally require that all information in the pay stub JSON response be rendered and the pay stub be printable, Nmbr recommends directly rendering a singular pay stub to PDF to satisfy this requirement. To return a pay stub as a JSON response, make a GET call to the /pay_stubs endpoint:/pay_stubs/{pay_stub_id}/render endpoint:

