curl --request POST \
--url https://sandbox.nmbr.co/services/payroll/employee_benefits/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_entity_id": "<id>",
"work_assignments": {
"include": "all"
}
}
'import requests
url = "https://sandbox.nmbr.co/services/payroll/employee_benefits/search"
payload = {
"business_entity_id": "<id>",
"work_assignments": { "include": "all" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({business_entity_id: '<id>', work_assignments: {include: 'all'}})
};
fetch('https://sandbox.nmbr.co/services/payroll/employee_benefits/search', 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/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'business_entity_id' => '<id>',
'work_assignments' => [
'include' => 'all'
]
]),
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/search"
payload := strings.NewReader("{\n \"business_entity_id\": \"<id>\",\n \"work_assignments\": {\n \"include\": \"all\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://sandbox.nmbr.co/services/payroll/employee_benefits/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_entity_id\": \"<id>\",\n \"work_assignments\": {\n \"include\": \"all\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/employee_benefits/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_entity_id\": \"<id>\",\n \"work_assignments\": {\n \"include\": \"all\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"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": "health",
"label": "Health"
},
"links": {
"self": "/employee_benefit_types/health"
}
},
"employer_benefit": null,
"title": null,
"title_translations": null,
"title_translated": null,
"income_basis": "regular_earnings",
"income_includes": [],
"max_annual_contribution_basis": "this_benefit",
"apply_sales_tax": true,
"remittance_account_id": null,
"remittance_account": null,
"amount": 35,
"amount_type": "fixed",
"hours_basis": "all_earnings",
"hours_includes": [],
"coverage_multiplier": 1,
"max_annual_contribution": null,
"frequency": "per_payroll",
"date_basis": null,
"pay_period_cadence": null,
"effective_from": "2026-01-01",
"effective_to": null,
"expense_accounting_code": null,
"liability_accounting_code": null,
"external_ref": null,
"created_at": "2026-01-01T00:00:00.000000Z",
"updated_at": "2026-01-01T00:00:00.000000Z"
},
"links": {
"self": "/employee_benefits/<id>"
}
}
],
"links": {
"first": "http://localhost/employee_benefits/search?page=1",
"last": "http://localhost/employee_benefits/search?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 1,
"has_more": false
}
}Search employee benefits
Search benefits under the given business entity, returning the same set the equivalent bulk update/delete operation would target with this body.
curl --request POST \
--url https://sandbox.nmbr.co/services/payroll/employee_benefits/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_entity_id": "<id>",
"work_assignments": {
"include": "all"
}
}
'import requests
url = "https://sandbox.nmbr.co/services/payroll/employee_benefits/search"
payload = {
"business_entity_id": "<id>",
"work_assignments": { "include": "all" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({business_entity_id: '<id>', work_assignments: {include: 'all'}})
};
fetch('https://sandbox.nmbr.co/services/payroll/employee_benefits/search', 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/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'business_entity_id' => '<id>',
'work_assignments' => [
'include' => 'all'
]
]),
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/search"
payload := strings.NewReader("{\n \"business_entity_id\": \"<id>\",\n \"work_assignments\": {\n \"include\": \"all\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://sandbox.nmbr.co/services/payroll/employee_benefits/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"business_entity_id\": \"<id>\",\n \"work_assignments\": {\n \"include\": \"all\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/employee_benefits/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"business_entity_id\": \"<id>\",\n \"work_assignments\": {\n \"include\": \"all\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"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": "health",
"label": "Health"
},
"links": {
"self": "/employee_benefit_types/health"
}
},
"employer_benefit": null,
"title": null,
"title_translations": null,
"title_translated": null,
"income_basis": "regular_earnings",
"income_includes": [],
"max_annual_contribution_basis": "this_benefit",
"apply_sales_tax": true,
"remittance_account_id": null,
"remittance_account": null,
"amount": 35,
"amount_type": "fixed",
"hours_basis": "all_earnings",
"hours_includes": [],
"coverage_multiplier": 1,
"max_annual_contribution": null,
"frequency": "per_payroll",
"date_basis": null,
"pay_period_cadence": null,
"effective_from": "2026-01-01",
"effective_to": null,
"expense_accounting_code": null,
"liability_accounting_code": null,
"external_ref": null,
"created_at": "2026-01-01T00:00:00.000000Z",
"updated_at": "2026-01-01T00:00:00.000000Z"
},
"links": {
"self": "/employee_benefits/<id>"
}
}
],
"links": {
"first": "http://localhost/employee_benefits/search?page=1",
"last": "http://localhost/employee_benefits/search?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 1,
"has_more": false
}
}Authorizations
Body
Hide child attributes
Hide child attributes
The date from which this benefit is applied to Pay Stubs.
Date filters support two formats:
Exact Date Match: Provide a well-formatted date in YYYY-MM-DD format for an exact match. Example: effective_from=2024-01-01
Use an array-like syntax to specify a range with one or more comparison operators:
gt(greater than)gte(greater than or equal to)lte(less than or equal to)lt(less than) Example:effective_from[gte]=2024-01-01&effective_from[lt]=2024-12-31
The date after which this benefit is no longer applied. null if the benefit applies indefinitely.
Date filters support two formats:
Exact Date Match: Provide a well-formatted date in YYYY-MM-DD format for an exact match. Example: effective_to=2024-01-01
Use an array-like syntax to specify a range with one or more comparison operators:
gt(greater than)gte(greater than or equal to)lte(less than or equal to)lt(less than) Example:effective_to[gte]=2024-01-01&effective_to[lt]=2024-12-31
Response
OK
Hide child attributes
Hide child attributes
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.

