curl --request PUT \
--url https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employee_benefit_type": "dental",
"amount": "325.5",
"amount_type": "fixed",
"hours_basis": "all_earnings",
"income_basis": "regular_earnings",
"coverage_multiplier": "1",
"max_annual_contribution": "2500.5",
"max_annual_contribution_basis": "this_benefit",
"frequency": "per_month",
"effective_from": "2026-01-01",
"effective_to": "2026-12-31",
"apply_sales_tax": false,
"title": "Dental",
"title_translations": {
"en": "Dental",
"fr": "Assurance dentaire"
},
"external_ref": "01KG003XG877R33YKHA40HJP84",
"date_basis": "by_period_start_date",
"pay_period_cadence": [
1
]
}
'import requests
url = "https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}"
payload = {
"employee_benefit_type": "dental",
"amount": "325.5",
"amount_type": "fixed",
"hours_basis": "all_earnings",
"income_basis": "regular_earnings",
"coverage_multiplier": "1",
"max_annual_contribution": "2500.5",
"max_annual_contribution_basis": "this_benefit",
"frequency": "per_month",
"effective_from": "2026-01-01",
"effective_to": "2026-12-31",
"apply_sales_tax": False,
"title": "Dental",
"title_translations": {
"en": "Dental",
"fr": "Assurance dentaire"
},
"external_ref": "01KG003XG877R33YKHA40HJP84",
"date_basis": "by_period_start_date",
"pay_period_cadence": [1]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
employee_benefit_type: 'dental',
amount: '325.5',
amount_type: 'fixed',
hours_basis: 'all_earnings',
income_basis: 'regular_earnings',
coverage_multiplier: '1',
max_annual_contribution: '2500.5',
max_annual_contribution_basis: 'this_benefit',
frequency: 'per_month',
effective_from: '2026-01-01',
effective_to: '2026-12-31',
apply_sales_tax: false,
title: 'Dental',
title_translations: {en: 'Dental', fr: 'Assurance dentaire'},
external_ref: '01KG003XG877R33YKHA40HJP84',
date_basis: 'by_period_start_date',
pay_period_cadence: [1]
})
};
fetch('https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'employee_benefit_type' => 'dental',
'amount' => '325.5',
'amount_type' => 'fixed',
'hours_basis' => 'all_earnings',
'income_basis' => 'regular_earnings',
'coverage_multiplier' => '1',
'max_annual_contribution' => '2500.5',
'max_annual_contribution_basis' => 'this_benefit',
'frequency' => 'per_month',
'effective_from' => '2026-01-01',
'effective_to' => '2026-12-31',
'apply_sales_tax' => false,
'title' => 'Dental',
'title_translations' => [
'en' => 'Dental',
'fr' => 'Assurance dentaire'
],
'external_ref' => '01KG003XG877R33YKHA40HJP84',
'date_basis' => 'by_period_start_date',
'pay_period_cadence' => [
1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}"
payload := strings.NewReader("{\n \"employee_benefit_type\": \"dental\",\n \"amount\": \"325.5\",\n \"amount_type\": \"fixed\",\n \"hours_basis\": \"all_earnings\",\n \"income_basis\": \"regular_earnings\",\n \"coverage_multiplier\": \"1\",\n \"max_annual_contribution\": \"2500.5\",\n \"max_annual_contribution_basis\": \"this_benefit\",\n \"frequency\": \"per_month\",\n \"effective_from\": \"2026-01-01\",\n \"effective_to\": \"2026-12-31\",\n \"apply_sales_tax\": false,\n \"title\": \"Dental\",\n \"title_translations\": {\n \"en\": \"Dental\",\n \"fr\": \"Assurance dentaire\"\n },\n \"external_ref\": \"01KG003XG877R33YKHA40HJP84\",\n \"date_basis\": \"by_period_start_date\",\n \"pay_period_cadence\": [\n 1\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"employee_benefit_type\": \"dental\",\n \"amount\": \"325.5\",\n \"amount_type\": \"fixed\",\n \"hours_basis\": \"all_earnings\",\n \"income_basis\": \"regular_earnings\",\n \"coverage_multiplier\": \"1\",\n \"max_annual_contribution\": \"2500.5\",\n \"max_annual_contribution_basis\": \"this_benefit\",\n \"frequency\": \"per_month\",\n \"effective_from\": \"2026-01-01\",\n \"effective_to\": \"2026-12-31\",\n \"apply_sales_tax\": false,\n \"title\": \"Dental\",\n \"title_translations\": {\n \"en\": \"Dental\",\n \"fr\": \"Assurance dentaire\"\n },\n \"external_ref\": \"01KG003XG877R33YKHA40HJP84\",\n \"date_basis\": \"by_period_start_date\",\n \"pay_period_cadence\": [\n 1\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"employee_benefit_type\": \"dental\",\n \"amount\": \"325.5\",\n \"amount_type\": \"fixed\",\n \"hours_basis\": \"all_earnings\",\n \"income_basis\": \"regular_earnings\",\n \"coverage_multiplier\": \"1\",\n \"max_annual_contribution\": \"2500.5\",\n \"max_annual_contribution_basis\": \"this_benefit\",\n \"frequency\": \"per_month\",\n \"effective_from\": \"2026-01-01\",\n \"effective_to\": \"2026-12-31\",\n \"apply_sales_tax\": false,\n \"title\": \"Dental\",\n \"title_translations\": {\n \"en\": \"Dental\",\n \"fr\": \"Assurance dentaire\"\n },\n \"external_ref\": \"01KG003XG877R33YKHA40HJP84\",\n \"date_basis\": \"by_period_start_date\",\n \"pay_period_cadence\": [\n 1\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<id>",
"object": "employee_benefit",
"data": {
"work_assignment": {
"id": "<id>",
"object": "work_assignment",
"links": {
"self": "/work_assignments/<id>"
}
},
"business_preset": null,
"employee_benefit_type": {
"id": "<id>",
"object": "employee_benefit_type",
"data": {
"type": "dental",
"label": "Dental"
},
"links": {
"self": "/employee_benefit_types/dental"
}
},
"employer_benefit": null,
"title": "Dental",
"title_translations": {
"en": "Dental",
"fr": "Assurance dentaire"
},
"title_translated": "Dental",
"income_basis": "regular_earnings",
"income_includes": [],
"max_annual_contribution_basis": "this_benefit",
"apply_sales_tax": false,
"remittance_account_id": null,
"remittance_account": null,
"amount": 325.5,
"amount_type": "fixed",
"hours_basis": "all_earnings",
"hours_includes": [],
"coverage_multiplier": 1,
"max_annual_contribution": 2500.5,
"frequency": "per_month",
"date_basis": "by_period_start_date",
"pay_period_cadence": [
1
],
"effective_from": "2026-01-01",
"effective_to": "2026-12-31",
"expense_accounting_code": null,
"liability_accounting_code": null,
"external_ref": "01KG003XG877R33YKHA40HJP84",
"created_at": "2026-01-01T00:00:00.000000Z",
"updated_at": "2026-01-01T00:00:00.000000Z"
},
"links": {
"self": "/employee_benefits/<id>"
}
}Update an employee benefit
curl --request PUT \
--url https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employee_benefit_type": "dental",
"amount": "325.5",
"amount_type": "fixed",
"hours_basis": "all_earnings",
"income_basis": "regular_earnings",
"coverage_multiplier": "1",
"max_annual_contribution": "2500.5",
"max_annual_contribution_basis": "this_benefit",
"frequency": "per_month",
"effective_from": "2026-01-01",
"effective_to": "2026-12-31",
"apply_sales_tax": false,
"title": "Dental",
"title_translations": {
"en": "Dental",
"fr": "Assurance dentaire"
},
"external_ref": "01KG003XG877R33YKHA40HJP84",
"date_basis": "by_period_start_date",
"pay_period_cadence": [
1
]
}
'import requests
url = "https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}"
payload = {
"employee_benefit_type": "dental",
"amount": "325.5",
"amount_type": "fixed",
"hours_basis": "all_earnings",
"income_basis": "regular_earnings",
"coverage_multiplier": "1",
"max_annual_contribution": "2500.5",
"max_annual_contribution_basis": "this_benefit",
"frequency": "per_month",
"effective_from": "2026-01-01",
"effective_to": "2026-12-31",
"apply_sales_tax": False,
"title": "Dental",
"title_translations": {
"en": "Dental",
"fr": "Assurance dentaire"
},
"external_ref": "01KG003XG877R33YKHA40HJP84",
"date_basis": "by_period_start_date",
"pay_period_cadence": [1]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
employee_benefit_type: 'dental',
amount: '325.5',
amount_type: 'fixed',
hours_basis: 'all_earnings',
income_basis: 'regular_earnings',
coverage_multiplier: '1',
max_annual_contribution: '2500.5',
max_annual_contribution_basis: 'this_benefit',
frequency: 'per_month',
effective_from: '2026-01-01',
effective_to: '2026-12-31',
apply_sales_tax: false,
title: 'Dental',
title_translations: {en: 'Dental', fr: 'Assurance dentaire'},
external_ref: '01KG003XG877R33YKHA40HJP84',
date_basis: 'by_period_start_date',
pay_period_cadence: [1]
})
};
fetch('https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'employee_benefit_type' => 'dental',
'amount' => '325.5',
'amount_type' => 'fixed',
'hours_basis' => 'all_earnings',
'income_basis' => 'regular_earnings',
'coverage_multiplier' => '1',
'max_annual_contribution' => '2500.5',
'max_annual_contribution_basis' => 'this_benefit',
'frequency' => 'per_month',
'effective_from' => '2026-01-01',
'effective_to' => '2026-12-31',
'apply_sales_tax' => false,
'title' => 'Dental',
'title_translations' => [
'en' => 'Dental',
'fr' => 'Assurance dentaire'
],
'external_ref' => '01KG003XG877R33YKHA40HJP84',
'date_basis' => 'by_period_start_date',
'pay_period_cadence' => [
1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}"
payload := strings.NewReader("{\n \"employee_benefit_type\": \"dental\",\n \"amount\": \"325.5\",\n \"amount_type\": \"fixed\",\n \"hours_basis\": \"all_earnings\",\n \"income_basis\": \"regular_earnings\",\n \"coverage_multiplier\": \"1\",\n \"max_annual_contribution\": \"2500.5\",\n \"max_annual_contribution_basis\": \"this_benefit\",\n \"frequency\": \"per_month\",\n \"effective_from\": \"2026-01-01\",\n \"effective_to\": \"2026-12-31\",\n \"apply_sales_tax\": false,\n \"title\": \"Dental\",\n \"title_translations\": {\n \"en\": \"Dental\",\n \"fr\": \"Assurance dentaire\"\n },\n \"external_ref\": \"01KG003XG877R33YKHA40HJP84\",\n \"date_basis\": \"by_period_start_date\",\n \"pay_period_cadence\": [\n 1\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"employee_benefit_type\": \"dental\",\n \"amount\": \"325.5\",\n \"amount_type\": \"fixed\",\n \"hours_basis\": \"all_earnings\",\n \"income_basis\": \"regular_earnings\",\n \"coverage_multiplier\": \"1\",\n \"max_annual_contribution\": \"2500.5\",\n \"max_annual_contribution_basis\": \"this_benefit\",\n \"frequency\": \"per_month\",\n \"effective_from\": \"2026-01-01\",\n \"effective_to\": \"2026-12-31\",\n \"apply_sales_tax\": false,\n \"title\": \"Dental\",\n \"title_translations\": {\n \"en\": \"Dental\",\n \"fr\": \"Assurance dentaire\"\n },\n \"external_ref\": \"01KG003XG877R33YKHA40HJP84\",\n \"date_basis\": \"by_period_start_date\",\n \"pay_period_cadence\": [\n 1\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/employee_benefits/{employee_benefit}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"employee_benefit_type\": \"dental\",\n \"amount\": \"325.5\",\n \"amount_type\": \"fixed\",\n \"hours_basis\": \"all_earnings\",\n \"income_basis\": \"regular_earnings\",\n \"coverage_multiplier\": \"1\",\n \"max_annual_contribution\": \"2500.5\",\n \"max_annual_contribution_basis\": \"this_benefit\",\n \"frequency\": \"per_month\",\n \"effective_from\": \"2026-01-01\",\n \"effective_to\": \"2026-12-31\",\n \"apply_sales_tax\": false,\n \"title\": \"Dental\",\n \"title_translations\": {\n \"en\": \"Dental\",\n \"fr\": \"Assurance dentaire\"\n },\n \"external_ref\": \"01KG003XG877R33YKHA40HJP84\",\n \"date_basis\": \"by_period_start_date\",\n \"pay_period_cadence\": [\n 1\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<id>",
"object": "employee_benefit",
"data": {
"work_assignment": {
"id": "<id>",
"object": "work_assignment",
"links": {
"self": "/work_assignments/<id>"
}
},
"business_preset": null,
"employee_benefit_type": {
"id": "<id>",
"object": "employee_benefit_type",
"data": {
"type": "dental",
"label": "Dental"
},
"links": {
"self": "/employee_benefit_types/dental"
}
},
"employer_benefit": null,
"title": "Dental",
"title_translations": {
"en": "Dental",
"fr": "Assurance dentaire"
},
"title_translated": "Dental",
"income_basis": "regular_earnings",
"income_includes": [],
"max_annual_contribution_basis": "this_benefit",
"apply_sales_tax": false,
"remittance_account_id": null,
"remittance_account": null,
"amount": 325.5,
"amount_type": "fixed",
"hours_basis": "all_earnings",
"hours_includes": [],
"coverage_multiplier": 1,
"max_annual_contribution": 2500.5,
"frequency": "per_month",
"date_basis": "by_period_start_date",
"pay_period_cadence": [
1
],
"effective_from": "2026-01-01",
"effective_to": "2026-12-31",
"expense_accounting_code": null,
"liability_accounting_code": null,
"external_ref": "01KG003XG877R33YKHA40HJP84",
"created_at": "2026-01-01T00:00:00.000000Z",
"updated_at": "2026-01-01T00:00:00.000000Z"
},
"links": {
"self": "/employee_benefits/<id>"
}
}Authorizations
Body
The type of employee benefit, which determines how it is taxed and reported.
accident_insurance_plan, critical_illness, debt_relief, dental, employee_assistance_program, fondaction, fondaction_rrsp, fonds_solidarite_ftq, fonds_solidarite_ftq_rrsp, group_dependent_life_insurance, group_term_life_insurance, health, health_spending_account, long_term_disability, non_group_long_term_disability, non_group_short_term_disability, pension_dbpp, pension_dcpp, pension_mfpp, pension_prpp, pension_restricted_rrsp, pension_rrsp, pension_rrsp_non_periodic, pension_unregistered_prpp, pension_vrsp, profit_sharing_dpsp, savings_tfsa, second_opinion_medical_consultation, short_term_disability, virtual_health_service, wellness_spending_account The contribution amount per pay period. When amount_type is percent, this is interpreted as a percentage of the income basis (0-100). When fixed_per_hour, it is multiplied by the hours on the Pay Stub's earning line items selected by hours_basis and hours_includes. Otherwise it is a fixed dollar amount.
Up to 2 decimal places.
x >= 0Must be a multiple of 0.01Which earnings' hours a fixed_per_hour benefit multiplies amount by. all_earnings includes the hours on all earnings except shift_premium_wage and shift_premium_overtime, whose hours repeat hours on other earnings. regular_earnings includes only the hours on salary and wage earnings. none doesn't include any earnings, and can be used with hours_includes to count only the hours on specific earnings. Defaults to all_earnings, and can only be changed when amount_type is fixed_per_hour.
all_earnings, none, regular_earnings An optional list of earnings whose hours are counted in addition to those included via hours_basis. Each entry has a type of earning and a subtype. Can only be changed when amount_type is fixed_per_hour.
Determines the income used as the base for percentage-based benefit calculations. regular_earnings includes only salary and wage earnings. all_earnings includes all earnings. total_income includes all earnings, taxable allowances, and taxable reimbursements. none doesn't include any line items, and can be used with income_includes for completely custom definitions of income.
all_earnings, none, regular_earnings, total_income The most this benefit will contribute in a tax year, including sales tax when apply_sales_tax is true. Once the contributions on approved payrolls in the tax year reach this maximum, contributions stop until the next tax year, and the Pay Stub that reaches it contributes only the remainder. Changing it later changes the limit, not the remaining amount: contributions already made in the tax year still count toward it.
Up to 2 decimal places.
0 <= x <= 99999Must be a multiple of 0.01Which earlier contributions count toward max_annual_contribution. this_benefit counts only the contributions on line items created by this benefit earlier in the tax year. all_line_items_of_type counts every contribution of the same type on the Work Assignment earlier in the tax year, including those created by other benefits and those added directly to a Pay Stub.
all_line_items_of_type, this_benefit Hide child attributes
Hide child attributes
Response
OK
Hide child attributes
Hide child attributes
The type of employee benefit, which determines how it is taxed and reported.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
How this type affects the calculation, broken down by jurisdiction. Jurisdictions where it does not apply are omitted.
Hide child attributes
Hide child attributes
How this type affects the payroll calculation in this jurisdiction.
accrues_vacation_pay, included_in_gross_pay, included_in_hour_totals, included_in_stat_holiday_pay, moves_money, reduces_base, tax_credit, withholding Hide child attributes
Hide child attributes
The boxes on the form this type contributes to in at least one province.
Hide child attributes
Hide child attributes
The provinces of employment where amounts of this type are reported in this box. RL-1 boxes apply only in Quebec. Most T4 and T4A boxes apply in every province; a few, such as for Quebec tips, do not.
The province of employment (e.g. ca_on, ca_qc).
Determines the income used as the base for percentage-based benefit calculations. regular_earnings includes only salary and wage earnings. all_earnings includes all earnings. total_income includes all earnings, taxable allowances, and taxable reimbursements. none doesn't include any line items, and can be used with income_includes for completely custom definitions of income.
all_earnings, none, regular_earnings, total_income Which earlier contributions count toward max_annual_contribution. this_benefit counts only the contributions on line items created by this benefit earlier in the tax year. all_line_items_of_type counts every contribution of the same type on the Work Assignment earlier in the tax year, including those created by other benefits and those added directly to a Pay Stub.
all_line_items_of_type, this_benefit The contribution amount per pay period. When amount_type is percent, this is interpreted as a percentage of the income basis (0-100). When fixed_per_hour, it is multiplied by the hours on the Pay Stub's earning line items selected by hours_basis and hours_includes. Otherwise it is a fixed dollar amount.
Which earnings' hours a fixed_per_hour benefit multiplies amount by. all_earnings includes the hours on all earnings except shift_premium_wage and shift_premium_overtime, whose hours repeat hours on other earnings. regular_earnings includes only the hours on salary and wage earnings. none doesn't include any earnings, and can be used with hours_includes to count only the hours on specific earnings. Defaults to all_earnings, and can only be changed when amount_type is fixed_per_hour.
all_earnings, none, regular_earnings The most this benefit will contribute in a tax year, including sales tax when apply_sales_tax is true. Once the contributions on approved payrolls in the tax year reach this maximum, contributions stop until the next tax year, and the Pay Stub that reaches it contributes only the remainder. Changing it later changes the limit, not the remaining amount: contributions already made in the tax year still count toward it.

