Skip to main content
POST
/
calculations
/
statutory_holiday_pay
Explain statutory holiday pay calculation
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"
  }
}
'
{
  "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
    },
    "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
              }
            },
            "links": {
              "self": "/earning_types/wage"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "retroactive_pay",
              "label": "Retroactive Pay",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": 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
              }
            },
            "links": {
              "self": "/earning_types/retroactive_pay_increase"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "commission",
              "label": "Commission (Non-Periodic)",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": 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
              }
            },
            "links": {
              "self": "/earning_types/commission_periodic"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "bonus_non_discretionary",
              "label": "Bonus (Non-Discretionary)",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": 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
              }
            },
            "links": {
              "self": "/earning_types/bonus_non_taxable"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "statutory_holiday_pay",
              "label": "Statutory Holiday Pay",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": true
              }
            },
            "links": {
              "self": "/earning_types/statutory_holiday_pay"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "leave_sick",
              "label": "Leave (Sick)",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": 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
              }
            },
            "links": {
              "self": "/earning_types/leave_general"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "leave_personal",
              "label": "Leave (Personal)",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": 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
              }
            },
            "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
              }
            },
            "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
              }
            },
            "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
              }
            },
            "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
              }
            },
            "links": {
              "self": "/earning_types/leave_wedding"
            }
          },
          {
            "id": "<id>",
            "object": "earning_type",
            "data": {
              "type": "vacation_pay",
              "label": "Vacation Pay Out",
              "supported_payroll_types": {
                "regular": true,
                "historical": true,
                "off_cycle": true
              }
            },
            "links": {
              "self": "/earning_types/vacation_pay"
            }
          },
          {
            "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
              }
            },
            "links": {
              "self": "/earning_types/vacation_pay_employee_terminated"
            }
          },
          {
            "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
              }
            },
            "links": {
              "self": "/earning_types/vacation_pay_time_taken"
            }
          },
          {
            "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
              }
            },
            "links": {
              "self": "/earning_types/vacation_pay_no_time_taken"
            }
          }
        ],
        "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,
        "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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
pay_stub_id
string
required

The pay stub to explain statutory holiday pay for.

holiday_dates
string<date>[]

Optional array of Y-m-d dates within the pay stub's pay period to treat as statutory holidays. When omitted, the statutory holidays for the work assignment's Province of Work (POW) are used.

configuration
object

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.

Response

200 - application/json

OK

id
string
read-only

The unique identifier of the object in Nmbr.

object
string
read-only

The type of the object in Nmbr ("statutory_holiday_pay_explanation").

data
Statutory Holiday Pay Explanation · object