curl --request POST \
--url https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pay_stub_id": "<id>",
"configuration": {
"calculate_entitlement": true,
"calculation_strategy": "provincial_rules_only"
}
}
'import requests
url = "https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay"
payload = {
"pay_stub_id": "<id>",
"configuration": {
"calculate_entitlement": True,
"calculation_strategy": "provincial_rules_only"
}
}
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({
pay_stub_id: '<id>',
configuration: {calculate_entitlement: true, calculation_strategy: 'provincial_rules_only'}
})
};
fetch('https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay', 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/calculations/statutory_holiday_pay",
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([
'pay_stub_id' => '<id>',
'configuration' => [
'calculate_entitlement' => true,
'calculation_strategy' => 'provincial_rules_only'
]
]),
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/calculations/statutory_holiday_pay"
payload := strings.NewReader("{\n \"pay_stub_id\": \"<id>\",\n \"configuration\": {\n \"calculate_entitlement\": true,\n \"calculation_strategy\": \"provincial_rules_only\"\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/calculations/statutory_holiday_pay")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pay_stub_id\": \"<id>\",\n \"configuration\": {\n \"calculate_entitlement\": true,\n \"calculation_strategy\": \"provincial_rules_only\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay")
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 \"pay_stub_id\": \"<id>\",\n \"configuration\": {\n \"calculate_entitlement\": true,\n \"calculation_strategy\": \"provincial_rules_only\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "statutory_holiday_pay_explanation",
"data": {
"not_applicable_reason": null,
"jurisdiction": "ca_on",
"configuration": {
"calculate_entitlement": true,
"calculation_strategy": "provincial_rules_only",
"override_rule_set": null,
"override_date_basis": null,
"hours": null,
"pay_rate": null,
"business_preset_id": null
},
"default_rules": [
{
"id": "<id>",
"name": "Regular earnings",
"explanation": "The last 4 weeks of eligible earnings, ending the day before the holiday week begins, divided by 20.",
"earning_date_basis": "before_holiday_week",
"eligible_days_in_range": 28,
"eligible_work_days_in_range": 20,
"eligible_earning_types": [
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "wage",
"label": "Wage",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/wage"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "shift_premium_wage",
"label": "Shift premium (wage)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/shift_premium_wage"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "time_off_in_lieu",
"label": "Time off in lieu",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/time_off_in_lieu"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "statutory_holiday_pay",
"label": "Statutory Holiday Pay",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/statutory_holiday_pay"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay",
"label": "Vacation pay (per period)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay_time_taken",
"label": "Vacation pay (time taken)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay_time_taken"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "retroactive_pay",
"label": "Retroactive Pay",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/retroactive_pay"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "retroactive_pay_increase",
"label": "Retroactive Pay Increase",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/retroactive_pay_increase"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "bonus_non_discretionary",
"label": "Bonus (Non-Discretionary)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/bonus_non_discretionary"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "bonus_non_taxable",
"label": "Bonus (Non-Taxable)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/bonus_non_taxable"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay_employee_terminated",
"label": "Vacation pay (employee terminated)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay_employee_terminated"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay_no_time_taken",
"label": "Vacation pay (no time taken)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay_no_time_taken"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "commission",
"label": "Commission (Non-Periodic)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/commission"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "commission_periodic",
"label": "Commission (Periodic)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/commission_periodic"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_sick",
"label": "Leave (sick, legislated)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_sick"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_general",
"label": "Leave (general)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_general"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_sick_discretionary",
"label": "Leave (sick, non-legislated)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_sick_discretionary"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_personal",
"label": "Leave (personal)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_personal"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_bereavement",
"label": "Leave (bereavement)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_bereavement"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_domestic_and_sexual_violence",
"label": "Leave (domestic and sexual violence)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_domestic_and_sexual_violence"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_paternity",
"label": "Leave (paternity)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_paternity"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_voting",
"label": "Leave (voting)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_voting"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_wedding",
"label": "Leave (wedding)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_wedding"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_citizenship",
"label": "Leave (citizenship)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_citizenship"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_jury_duty",
"label": "Leave (jury duty)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_jury_duty"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_organ_donor",
"label": "Leave (organ donor)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_organ_donor"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_parental",
"label": "Leave (parental)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_parental"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_maternity",
"label": "Leave (maternity)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_maternity"
}
}
],
"eligible_allowance_types": [],
"eligible_reimbursement_types": []
}
],
"overridden_rules": null,
"holidays": [
{
"holiday": {
"id": "<id>",
"object": "holiday",
"data": {
"jurisdiction": "ca_on",
"type": "statutory",
"name": "Victoria Day",
"name_translations": {
"en": "Victoria Day",
"fr": "Fête de la Reine"
},
"name_translated": "Victoria Day",
"original_date": "2026-05-18",
"observed_date": "2026-05-18",
"created_at": "2026-01-26T20:16:33.000000Z",
"updated_at": "2026-01-26T20:16:33.000000Z"
},
"links": {
"self": "/holidays/<id>"
}
},
"line_item_id": null,
"amount": 229.57,
"hours": 7.35,
"gross_amount": 229.57,
"gross_hours": 7.35,
"already_allocated": null,
"entitlement": {
"fixed_hours_calculation": null,
"provincial_rules_calculation": [
{
"id": "<id>",
"amount": 229.57,
"hours": 7.35,
"eligible_date_range": {
"start": "2026-04-17",
"end": "2026-05-14"
},
"totals": {
"dated_amount": 0,
"dated_hours": 0,
"undated_amount": 10000,
"undated_hours": 320,
"undated_amount_prorated": 4591.39785,
"undated_hours_prorated": 146.9247312,
"effective_amount": 4591.39785,
"effective_hours": 146.9247312
},
"payroll_summaries": [
{
"payroll": {
"id": "<id>",
"object": "payroll",
"links": {
"self": "/payrolls/<id>"
}
},
"pay_period": {
"start": "2026-05-01",
"end": "2026-05-31"
},
"dated_amount_total": 0,
"dated_hours_total": 0,
"undated_amount_total": 5000,
"undated_hours_total": 160,
"eligible_days_in_pay_period": 14,
"days_in_pay_period": 31,
"undated_coverage_ratio": 0.4516129,
"undated_amount_prorated": 2258.0645,
"undated_hours_prorated": 72.258064,
"effective_amount": 2258.0645,
"effective_hours": 72.258064,
"earlier_holidays_amount": 0,
"earlier_holidays_hours": 0,
"dated_line_items": [],
"undated_line_items": [
{
"id": "<id>",
"object": "earning_line_item",
"title": "Hourly wage",
"amount": 5000,
"hours": 160
}
]
},
{
"payroll": {
"id": "<id>",
"object": "payroll",
"links": {
"self": "/payrolls/<id>"
}
},
"pay_period": {
"start": "2026-04-01",
"end": "2026-04-30"
},
"dated_amount_total": 0,
"dated_hours_total": 0,
"undated_amount_total": 5000,
"undated_hours_total": 160,
"eligible_days_in_pay_period": 14,
"days_in_pay_period": 30,
"undated_coverage_ratio": 0.46666667,
"undated_amount_prorated": 2333.33335,
"undated_hours_prorated": 74.6666672,
"effective_amount": 2333.33335,
"effective_hours": 74.6666672,
"earlier_holidays_amount": 0,
"earlier_holidays_hours": 0,
"dated_line_items": [],
"undated_line_items": [
{
"id": "<id>",
"object": "earning_line_item",
"title": "Hourly wage",
"amount": 5000,
"hours": 160
}
]
}
]
}
],
"chosen_method": "provincial_rules"
}
}
]
}
}Explain statutory holiday pay calculation
Explain how statutory holiday pay would be calculated for the pay stub’s work assignment, optionally overriding which dates are treated as holidays and/or the statutory holiday pay configuration. With no overrides, behaves as a pure explanation of how statutory holiday pay was or will be calculated under the work assignment’s current configuration.
curl --request POST \
--url https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pay_stub_id": "<id>",
"configuration": {
"calculate_entitlement": true,
"calculation_strategy": "provincial_rules_only"
}
}
'import requests
url = "https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay"
payload = {
"pay_stub_id": "<id>",
"configuration": {
"calculate_entitlement": True,
"calculation_strategy": "provincial_rules_only"
}
}
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({
pay_stub_id: '<id>',
configuration: {calculate_entitlement: true, calculation_strategy: 'provincial_rules_only'}
})
};
fetch('https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay', 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/calculations/statutory_holiday_pay",
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([
'pay_stub_id' => '<id>',
'configuration' => [
'calculate_entitlement' => true,
'calculation_strategy' => 'provincial_rules_only'
]
]),
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/calculations/statutory_holiday_pay"
payload := strings.NewReader("{\n \"pay_stub_id\": \"<id>\",\n \"configuration\": {\n \"calculate_entitlement\": true,\n \"calculation_strategy\": \"provincial_rules_only\"\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/calculations/statutory_holiday_pay")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pay_stub_id\": \"<id>\",\n \"configuration\": {\n \"calculate_entitlement\": true,\n \"calculation_strategy\": \"provincial_rules_only\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.nmbr.co/services/payroll/calculations/statutory_holiday_pay")
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 \"pay_stub_id\": \"<id>\",\n \"configuration\": {\n \"calculate_entitlement\": true,\n \"calculation_strategy\": \"provincial_rules_only\"\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "statutory_holiday_pay_explanation",
"data": {
"not_applicable_reason": null,
"jurisdiction": "ca_on",
"configuration": {
"calculate_entitlement": true,
"calculation_strategy": "provincial_rules_only",
"override_rule_set": null,
"override_date_basis": null,
"hours": null,
"pay_rate": null,
"business_preset_id": null
},
"default_rules": [
{
"id": "<id>",
"name": "Regular earnings",
"explanation": "The last 4 weeks of eligible earnings, ending the day before the holiday week begins, divided by 20.",
"earning_date_basis": "before_holiday_week",
"eligible_days_in_range": 28,
"eligible_work_days_in_range": 20,
"eligible_earning_types": [
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "wage",
"label": "Wage",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/wage"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "shift_premium_wage",
"label": "Shift premium (wage)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/shift_premium_wage"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "time_off_in_lieu",
"label": "Time off in lieu",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/time_off_in_lieu"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "statutory_holiday_pay",
"label": "Statutory Holiday Pay",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/statutory_holiday_pay"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay",
"label": "Vacation pay (per period)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay_time_taken",
"label": "Vacation pay (time taken)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay_time_taken"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "retroactive_pay",
"label": "Retroactive Pay",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/retroactive_pay"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "retroactive_pay_increase",
"label": "Retroactive Pay Increase",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/retroactive_pay_increase"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "bonus_non_discretionary",
"label": "Bonus (Non-Discretionary)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/bonus_non_discretionary"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "bonus_non_taxable",
"label": "Bonus (Non-Taxable)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/bonus_non_taxable"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay_employee_terminated",
"label": "Vacation pay (employee terminated)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay_employee_terminated"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "vacation_pay_no_time_taken",
"label": "Vacation pay (no time taken)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/vacation_pay_no_time_taken"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "commission",
"label": "Commission (Non-Periodic)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/commission"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "commission_periodic",
"label": "Commission (Periodic)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/commission_periodic"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_sick",
"label": "Leave (sick, legislated)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_sick"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_general",
"label": "Leave (general)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_general"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_sick_discretionary",
"label": "Leave (sick, non-legislated)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_sick_discretionary"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_personal",
"label": "Leave (personal)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_personal"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_bereavement",
"label": "Leave (bereavement)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_bereavement"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_domestic_and_sexual_violence",
"label": "Leave (domestic and sexual violence)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_domestic_and_sexual_violence"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_paternity",
"label": "Leave (paternity)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_paternity"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_voting",
"label": "Leave (voting)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_voting"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_wedding",
"label": "Leave (wedding)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_wedding"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_citizenship",
"label": "Leave (citizenship)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_citizenship"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_jury_duty",
"label": "Leave (jury duty)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_jury_duty"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_organ_donor",
"label": "Leave (organ donor)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_organ_donor"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_parental",
"label": "Leave (parental)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_parental"
}
},
{
"id": "<id>",
"object": "earning_type",
"data": {
"type": "leave_maternity",
"label": "Leave (maternity)",
"supported_payroll_types": {
"regular": true,
"historical": true,
"off_cycle": true,
"correction": true
}
},
"links": {
"self": "/earning_types/leave_maternity"
}
}
],
"eligible_allowance_types": [],
"eligible_reimbursement_types": []
}
],
"overridden_rules": null,
"holidays": [
{
"holiday": {
"id": "<id>",
"object": "holiday",
"data": {
"jurisdiction": "ca_on",
"type": "statutory",
"name": "Victoria Day",
"name_translations": {
"en": "Victoria Day",
"fr": "Fête de la Reine"
},
"name_translated": "Victoria Day",
"original_date": "2026-05-18",
"observed_date": "2026-05-18",
"created_at": "2026-01-26T20:16:33.000000Z",
"updated_at": "2026-01-26T20:16:33.000000Z"
},
"links": {
"self": "/holidays/<id>"
}
},
"line_item_id": null,
"amount": 229.57,
"hours": 7.35,
"gross_amount": 229.57,
"gross_hours": 7.35,
"already_allocated": null,
"entitlement": {
"fixed_hours_calculation": null,
"provincial_rules_calculation": [
{
"id": "<id>",
"amount": 229.57,
"hours": 7.35,
"eligible_date_range": {
"start": "2026-04-17",
"end": "2026-05-14"
},
"totals": {
"dated_amount": 0,
"dated_hours": 0,
"undated_amount": 10000,
"undated_hours": 320,
"undated_amount_prorated": 4591.39785,
"undated_hours_prorated": 146.9247312,
"effective_amount": 4591.39785,
"effective_hours": 146.9247312
},
"payroll_summaries": [
{
"payroll": {
"id": "<id>",
"object": "payroll",
"links": {
"self": "/payrolls/<id>"
}
},
"pay_period": {
"start": "2026-05-01",
"end": "2026-05-31"
},
"dated_amount_total": 0,
"dated_hours_total": 0,
"undated_amount_total": 5000,
"undated_hours_total": 160,
"eligible_days_in_pay_period": 14,
"days_in_pay_period": 31,
"undated_coverage_ratio": 0.4516129,
"undated_amount_prorated": 2258.0645,
"undated_hours_prorated": 72.258064,
"effective_amount": 2258.0645,
"effective_hours": 72.258064,
"earlier_holidays_amount": 0,
"earlier_holidays_hours": 0,
"dated_line_items": [],
"undated_line_items": [
{
"id": "<id>",
"object": "earning_line_item",
"title": "Hourly wage",
"amount": 5000,
"hours": 160
}
]
},
{
"payroll": {
"id": "<id>",
"object": "payroll",
"links": {
"self": "/payrolls/<id>"
}
},
"pay_period": {
"start": "2026-04-01",
"end": "2026-04-30"
},
"dated_amount_total": 0,
"dated_hours_total": 0,
"undated_amount_total": 5000,
"undated_hours_total": 160,
"eligible_days_in_pay_period": 14,
"days_in_pay_period": 30,
"undated_coverage_ratio": 0.46666667,
"undated_amount_prorated": 2333.33335,
"undated_hours_prorated": 74.6666672,
"effective_amount": 2333.33335,
"effective_hours": 74.6666672,
"earlier_holidays_amount": 0,
"earlier_holidays_hours": 0,
"dated_line_items": [],
"undated_line_items": [
{
"id": "<id>",
"object": "earning_line_item",
"title": "Hourly wage",
"amount": 5000,
"hours": 160
}
]
}
]
}
],
"chosen_method": "provincial_rules"
}
}
]
}
}Authorizations
Body
Optional override of the work assignment's statutory holiday pay configuration. When omitted, the work assignment's ca_statutory_holiday_pay tax property in effect at the start of the pay period is used.
Hide child attributes
Hide child attributes
Response
OK
Hide child attributes
Hide child attributes
The effective Province of Work (work assignment's POW with any override_rule_set applied) used to look up holidays and provincial rules, in ca_xx format (one of ca_ab, ca_bc, ca_mb, ca_nb, ca_nl, ca_ns, ca_nt, ca_nu, ca_on, ca_pe, ca_qc, ca_sk, ca_yt, or ca_federal). null when no Province of Work could be resolved.
The Statutory Holiday Pay tax property configuration on the work assignment as of the start of the pay period, or the configuration override supplied in the request body. null when neither is present.
The rules defined by the work assignment's own Province of Work (ignoring any override_rule_set). Describes what would apply by default. Quebec defines two: regular_earnings and, for an employee remunerated in whole or in part on a commission basis, commission. They are alternatives, so an employee falls under exactly one of them. See holidays[].entitlement.provincial_rules_calculation[].id for the one that applied.
Hide child attributes
Hide child attributes
Earning types that count toward this rule's look-back sum. Earnings of types not listed here are excluded.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Only present when the configuration actually overrides something (either override_rule_set or override_date_basis). Describes the rules that are used in place of the defaults: sourced from the effective POW and with the overridden earning date basis applied to each rule's prose and earning_date_basis field. Each entry has the same shape as default_rules.
One entry per statutory holiday observed in the pay period (or per holiday_dates entry when an override was supplied in the request).
Hide child attributes
Hide child attributes
The Holiday record being calculated against. id and timestamps are null for hypothetical holidays supplied via holiday_dates.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
The id of the managed Statutory Holiday Pay earning line item on this pay stub that corresponds to this holiday. null when no managed line item exists yet (e.g. statutory holiday pay isn't enabled on the work assignment, the holiday was supplied as a hypothetical via holiday_dates, or the pay stub belongs to a Contractor).
Statutory holiday pay this work assignment has already been allocated for this holiday on a different pay stub covering the same pay period - typically the regular payroll an off-cycle payroll was created against. Entitlement is per employee per holiday, so only the remainder is allocated here. Only line items with is_managed true count, so statutory holiday pay added by hand isn't netted off. null when no other pay stub has allocated anything for the holiday.
The breakdown of how amount and hours were computed. null when entitlement isn't being calculated for this pay stub.
Hide child attributes
Hide child attributes
The results of the provincial rules applied to this holiday. Always populated under provincial_rules_only and provincial_rules_or_hours; null under hours_only. Where a province defines more than one rule they are alternatives, so exactly one applies to a given employee and the array holds that one entry, identified by its id.
Hide child attributes
Hide child attributes
The look-back window for this rule, derived from the rule's earning_date_basis and eligible_days_in_range. Inclusive on both ends.
Aggregated totals across every pay period that overlapped the look-back window, before dividing by the rule's eligible_work_days_in_range. dated_* fields sum line items whose earned_on date falls inside the window (included at 100%); undated_* fields sum line items without an earned_on (prorated by each pay period's coverage ratio); effective_* is dated_* plus undated_*_prorated.
Hide child attributes
Hide child attributes
The per-payroll breakdown that produced totals. Each entry covers one paid prior payroll (or the current draft payroll) whose pay period overlapped the look-back window.
Hide child attributes
Hide child attributes
The Payroll being summarized.
Hide child attributes
Hide child attributes
For cascading provincial rules (e.g. Ontario, where Statutory Holiday Pay itself counts as eligible earnings), the sum of entitlements computed for earlier holidays in the current pay period that fall inside this rule's eligible date range. Always 0 for prior payrolls' summaries. Treated as additional dated earnings.
The line items from this pay period's pay stub that have an earned_on date. Each entry's in_range flag indicates whether the earned_on falls inside the rule's eligible_date_range and therefore counted toward dated_amount / dated_hours.
The line items from this pay period's pay stub that have no earned_on date — they're assumed to be spread evenly across the period and contribute to undated_amount / undated_hours after proration by undated_coverage_ratio.
Hide child attributes
Hide child attributes

