> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nmbr.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Vacation Pay

You can configure the vacation pay percentage and accrual settings per Work Assignment.

## Setting Vacation Pay Percentage

To set the vacation pay percentage for a Work Assignment, you can use the `vacation_pay_settings` endpoint. This entity will allow you to set the percentage, method of vacation pay, and the effective dates for a specific Work Assignment.

* Each Work Assignment may have only one active Vacation Pay Setting at a time.
* The previously active setting must be ended before creating a new one.
* Once a setting has been used to calculate vacation pay, it cannot be deleted.
* The API provides the `earliest_valid_effective_to` attribute to simplify setting the `effective_to` date.

```bash theme={null}
curl --request POST \
     --url https://sandbox.nmbr.co/services/payroll/vacation_pay_settings \
     --header 'Authorization: Bearer <access_token>' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{
           "work_assignment_id": "<work_assignment_id>",
           "percentage": 4,
           "effective_from": "2026-01-01",
           "vacation_pay_method": "manual"
        }'
```

<details>
  <summary>View sample JSON Response</summary>

  ```json theme={null}
  {
    "id": "vapay_01JM383AXX0V98G4HN6HWAX9YB",
    "object": "vacation_pay_setting",
    "data": {
      "percentage": 4,
      "vacation_pay_method": "manual",
      "effective_from": "2026-01-01",
      "earliest_valid_effective_to": "2026-01-01",
      "effective_to": null,
      "is_editable": true,
      "is_deletable": true,
      "work_assignment": {
        "id": "wrkas_01JM383AXGZRCT6VGP5A4TDMWT",
        "object": "work_assignment",
        "links": {
          "self": "/work_assignments/wrkas_01JM383AXGZRCT6VGP5A4TDMWT"
        }
      },
      "business_preset": null,
      "note": "Vacation Pay",
      "created_at": "2026-01-01T00:00:00.000000Z",
      "updated_at": "2026-01-01T00:00:00.000000Z"
    },
    "links": {
      "self": "/vacation_pay_settings/vapay_01JM383AXX0V98G4HN6HWAX9YB"
    }
  }
  ```
</details>

Once the vacation pay percentage is set, all applicable Line Items for that Work Assignment will begin accruing vacation pay. The accrual can be seen on the Line Item in the `accrued_vacation_pay` attribute.

Vacation Pay is accrued on a Line Item if that Line Item's type has vacation applied in the current Province of Employment of the Work Assignment. Nmbr follows the applicable employment standards to determine if vacation pay should be accrued.

## Paying Out Vacation Pay

Accrued vacation pay can be paid out two different ways, `manual` or `per_period`. The default method is `manual`, if one is not specified.

### Manual Vacation Pay

To pay earned vacation pay manually at a time the business chooses, you can select the Vacation Pay earning type when generating a new earning. You should also include the number of hours taken to ensure reporting and records of employment are accurate.

```bash theme={null}
curl --request POST \
     --url https://sandbox.nmbr.co/services/payroll/earning_line_items \
     --header 'Authorization: Bearer <access_token>' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{
          "pay_stub_id": "axzjqzC5oOZ51h3mqmXK",
          "earning_type": "vacation_pay",
          "custom_amount" : 4.00,
          "hours": 1
        }'
```

### Per-Period Vacation Pay

If the business prefers that Vacation Pay is paid out automatically for each pay period, set the vacation pay method to `per_period` when creating the Vacation Pay Setting. The generated vacation pay items can be reviewed and modified before running payroll.

Employees' total vacation pay accrual as well as vacation pay that has been paid out in a given period will be displayed on their pay stubs.

### Using a Business Preset

Set `business_preset_id` on the Vacation Pay Setting to create the payout line item from a [Business Preset](https://docs.nmbr.co/guides/advanced/presets.md). The payout carries the preset's title and accounting codes, and accounting code rules that target the preset apply to it.

The preset must belong to the work assignment's business entity, have the `earning` type, and carry either no subtype or the `vacation_pay` subtype. When the preset sets no title, the payout keeps its default "Vacation Pay Out" title.

```bash theme={null}
curl --request POST \
     --url https://sandbox.nmbr.co/services/payroll/vacation_pay_settings \
     --header 'Authorization: Bearer <access_token>' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{
           "work_assignment_id": "<work_assignment_id>",
           "percentage": 4,
           "effective_from": "2026-01-01",
           "vacation_pay_method": "per_period",
           "business_preset_id": "<business_preset_id>"
        }'
```

A Business Preset can't be deleted while a Vacation Pay Setting still names it. Clear `business_preset_id` on the setting first.

### Tag Attribution

When tags are used for accounting attribution, the automatically generated payout derives its own tag split from the remuneration that funded it, rather than inheriting the work assignment's tag allocations, so a payout is attributed across departments in the same proportions as the pay it accrued from. See [Derived tags on vacation payouts](https://docs.nmbr.co/guides/accounting/tagging.md#derived-tags-on-vacation-payouts).

## Vacation Pay Setting Selection

The Nmbr payroll engine needs to pick one Vacation Pay Setting to apply to each Payroll. Each Vacation Pay Setting has an effective date range (`effective_from` to `effective_to`). The Nmbr payroll engine uses the `vacation_pay_formula_setting` attribute on the Business Entity to decide which of the Payroll's dates must fall in the Vacation Pay Settings' effective date ranges in order to select that Vacation Pay Setting for the Payroll:

* `pay_date` (default) - select the Vacation Pay Setting whose effective range contains the Payroll's `pay_date`.
* `period_start` - select the Vacation Pay Setting whose effective range contains the Payroll's `period_start`.
* `period_end` - select the Vacation Pay Setting whose effective range contains the Payroll's `period_end`.

### Example

A Work Assignment has two Vacation Pay Settings:

| Setting | `effective_from` | `effective_to` |
| - | - | - |
| Setting A (4%) | 2026-01-01 | 2026-06-30 |
| Setting B (6%) | 2026-07-01 | *(open)* |

A Payroll has `period_start = 2026-06-20`, `period_end = 2026-07-03`, and `pay_date = 2026-07-10`.

The selected setting depends on the Business Entity's `vacation_pay_formula_setting`:

* `pay_date`: **Setting B** will be used, because the Payroll's `pay_date` (2026-07-10) falls in B's range
* `period_start`: **Setting A** will be used, because the Payroll's `period_start` (2026-06-20) falls in A's range
* `period_end`: **Setting B** will be used, because the Payroll's `period_end` (2026-07-03) falls in B's range


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.