List employer statutory withholding types
curl --request GET \
--url https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types', 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/employer_statutory_withholding_types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "cpp",
"label": "CPP"
},
"links": {
"self": "/employer_statutory_withholding_types/cpp"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "cpp_2",
"label": "CPP 2"
},
"links": {
"self": "/employer_statutory_withholding_types/cpp_2"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "eht",
"label": "EHT"
},
"links": {
"self": "/employer_statutory_withholding_types/eht"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "ei",
"label": "EI"
},
"links": {
"self": "/employer_statutory_withholding_types/ei"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "qpip",
"label": "QPIP"
},
"links": {
"self": "/employer_statutory_withholding_types/qpip"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "qpp",
"label": "QPP"
},
"links": {
"self": "/employer_statutory_withholding_types/qpp"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "qpp_2",
"label": "QPP 2"
},
"links": {
"self": "/employer_statutory_withholding_types/qpp_2"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "wcb",
"label": "WCB"
},
"links": {
"self": "/employer_statutory_withholding_types/wcb"
}
}
],
"links": {
"first": "/employer_statutory_withholding_types?page=1",
"last": "/employer_statutory_withholding_types?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 8,
"has_more": false
}
}Employer Statutory Withholding Types
List employer statutory withholding types
GET
/
employer_statutory_withholding_types
List employer statutory withholding types
curl --request GET \
--url https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types', 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/employer_statutory_withholding_types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/employer_statutory_withholding_types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "cpp",
"label": "CPP"
},
"links": {
"self": "/employer_statutory_withholding_types/cpp"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "cpp_2",
"label": "CPP 2"
},
"links": {
"self": "/employer_statutory_withholding_types/cpp_2"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "eht",
"label": "EHT"
},
"links": {
"self": "/employer_statutory_withholding_types/eht"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "ei",
"label": "EI"
},
"links": {
"self": "/employer_statutory_withholding_types/ei"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "qpip",
"label": "QPIP"
},
"links": {
"self": "/employer_statutory_withholding_types/qpip"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "qpp",
"label": "QPP"
},
"links": {
"self": "/employer_statutory_withholding_types/qpp"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "qpp_2",
"label": "QPP 2"
},
"links": {
"self": "/employer_statutory_withholding_types/qpp_2"
}
},
{
"id": "<id>",
"object": "employer_statutory_withholding_type",
"data": {
"type": "wcb",
"label": "WCB"
},
"links": {
"self": "/employer_statutory_withholding_types/wcb"
}
}
],
"links": {
"first": "/employer_statutory_withholding_types?page=1",
"last": "/employer_statutory_withholding_types?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 8,
"has_more": false
}
}Authorizations
Query Parameters
Country code that adds each type's payroll calculations to the response, as the features and form_mappings fields. Currently only ca is supported. See Line item type features.
Available options:
CA, GB Response
200 - application/json
OK
Hide child attributes
Hide child attributes

