Skip to main content
POST
/
deductions
Create a deduction
curl --request POST \
  --url https://sandbox.nmbr.co/services/payroll/deductions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "work_assignment_id": "<id>",
  "deduction_type": "income_tax",
  "frequency": "per_month",
  "amount": "35",
  "amount_type": "fixed",
  "income_basis": "all_earnings",
  "income_statutory_withholdings": "none",
  "effective_from": "2026-01-01",
  "tag_assignment": {
    "unit": "percentage",
    "tag_allocations": [
      {
        "tags": [
          "<id>"
        ],
        "value": 100
      }
    ]
  }
}
'
{
  "id": "<id>",
  "object": "deduction",
  "data": {
    "work_assignment": {
      "id": "<id>",
      "object": "work_assignment",
      "links": {
        "self": "/work_assignments/<id>"
      }
    },
    "frequency": "per_month",
    "date_basis": "by_period_start_date",
    "pay_period_cadence": [
      1
    ],
    "deduction_type": {
      "id": "<id>",
      "object": "deduction_type",
      "data": {
        "type": "income_tax",
        "label": "Income tax debt",
        "locale": "en"
      },
      "links": {
        "self": "/deduction_types/income_tax"
      }
    },
    "amount": 35,
    "amount_type": "fixed",
    "income_basis": "all_earnings",
    "income_includes": [],
    "income_subtractions": [],
    "income_statutory_withholdings": "none",
    "income_exemption_amount": null,
    "income_exemption_percent": null,
    "effective_from": "2026-01-01",
    "effective_to": null,
    "title": null,
    "title_translations": null,
    "title_translated": null,
    "remittance_account": null,
    "business_preset": 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": "/deductions/<id>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
work_assignment_id
string
required

Must belong to a work assignment associated with an entity of type Employee.

frequency
enum<string>
required

The frequency at which this deduction is applied to Pay Stubs. When per_month, the amount is distributed across selected Payrolls in the calendar month. per_month is only valid when amount_type is fixed; percent and per-hour deductions apply to every paycheque regardless of frequency.

Available options:
once,
per_month,
per_payroll
amount
number<decimal>
required

The deduction amount per occurrence. When amount_type is percentage, this is interpreted as a percentage of the income basis rather than a fixed dollar amount.

Required range: x >= 0
amount_type
enum<string>
required

Whether amount is a fixed dollar value (fixed) or a percentage of the income basis (percentage).

Available options:
fixed,
fixed_per_hour,
percent
effective_from
string<date>
required

The date from which this deduction is applied to Pay Stubs.

business_preset_id
string
deduction_type
enum<string>

The type of deduction, which determines how it is categorized and remitted.

Must be present when business_preset_id is either empty or not set.

Available options:
charitable_donation,
garnishment_order,
income_tax,
other_deduction,
union_dues,
union_dues_post_tax
title
string | null
Maximum string length: 255
title_translations
object

Optional translations for the title property.

income_basis
enum<string>

Determines the income used as the base for percentage-based deductions. 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.

Available options:
all_earnings,
none,
regular_earnings,
total_income
income_includes
object[]

An optional list of specific earnings, allowances, and other line item types to include in the income calculation in addition to those included via income_basis.

income_subtractions
object[]

An optional list of deductions and benefits to subtract from the income before the deduction amount is calculated.

income_statutory_withholdings
enum<string>

Whether to subtract statutory withholdings (CPP, EI, income tax) from the income before the deduction amount is calculated.

Available options:
all,
none
income_exemption_amount
number<decimal>

A fixed dollar amount to exempt from the income before calculating the deduction.

Required range: 0 <= x <= 99999
income_exemption_percent
number<decimal>

A percentage of the income to exempt before calculating the deduction amount.

Required range: 0 <= x <= 100
effective_to
string<date>

The date after which this deduction is no longer applied. null if the deduction applies indefinitely.

remittance_account_id
string

The remittance account to which collected deduction amounts are remitted.

expense_accounting_code_id
string
liability_accounting_code_id
string
external_ref
string
Maximum string length: 255
tag_assignment
object
date_basis
enum<string>

Which payroll date determines the calendar month for the allocation. Applies only to fixed-amount per_month deductions.

Available options:
by_pay_date,
by_period_end_date,
by_period_start_date
pay_period_cadence
integer[]

Which pay periods within the month receive the allocation. An array of 1-based positions; -1 is the final period. Applies only to fixed-amount per_month deductions.

Minimum array length: 1

Response

201 - application/json

Created

id
string
read-only

The unique identifier of the object in Nmbr.

object
string
read-only

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

data
Deduction · object