Skip to main content
PUT
/
earnings
/
{earning}
Update an earning
curl --request PUT \
  --url https://sandbox.nmbr.co/services/payroll/earnings/{earning} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "frequency": "per_payroll",
  "earning_type": "parental_top_up_insurable",
  "amount": "5000",
  "effective_from": "2026-01-01"
}
'
{
  "id": "<id>",
  "object": "earning",
  "data": {
    "work_assignment": {
      "id": "<id>",
      "object": "work_assignment",
      "links": {
        "self": "/work_assignments/<id>"
      }
    },
    "earning_type": {
      "id": "<id>",
      "object": "earning_type",
      "data": {
        "type": "parental_top_up_insurable",
        "label": "Parental Top-Up (Insurable)",
        "supported_payroll_types": {
          "regular": true,
          "historical": true,
          "off_cycle": true
        }
      },
      "links": {
        "self": "/earning_types/parental_top_up_insurable"
      }
    },
    "title": null,
    "title_translations": null,
    "title_translated": null,
    "amount": 5000,
    "frequency": "per_payroll",
    "date_basis": null,
    "pay_period_cadence": null,
    "effective_from": "2026-01-01",
    "effective_to": 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": "/earnings/<id>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

earning
string
required

Body

application/json
business_preset_id
string
frequency
enum<string>

The frequency at which this earning is applied to Pay Stubs. When per_month, the amount is distributed evenly across all Payrolls in the calendar month.

Available options:
once,
per_month,
per_payroll
earning_type
enum<string>

The type of earning, which determines how it is taxed.

Available options:
bonus_discretionary,
bonus_non_discretionary,
bonus_non_taxable,
commission,
commission_periodic,
commission_self_employed,
death_benefit,
gift_cash,
gratuity,
in_lieu_wages,
income_replacement_indemnity_non_taxable,
income_replacement_indemnity_taxable,
invoice_payment,
invoice_sales_tax,
leave_bereavement,
leave_domestic_and_sexual_violence,
leave_general,
leave_paternity,
leave_personal,
leave_sick,
leave_voting,
leave_wedding,
overtime,
parental_top_up_insurable,
parental_top_up_non_insurable,
pension,
retiring_allowance,
retiring_allowance_eligible,
retroactive_pay,
retroactive_pay_increase,
salary,
salary_continuance,
severance_pay,
statutory_holiday_pay,
supplemental_unemployment,
vacation_pay,
vacation_pay_employee_terminated,
vacation_pay_no_time_taken,
vacation_pay_time_taken,
wage
amount
number<decimal>

The monetary amount applied each time this earning is included on a Pay Stub.

Required range: 0 <= x <= 9999
title
string | null
Maximum string length: 255
title_translations
object

Optional translations for the title property.

effective_from
string<date>

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

effective_to
string<date>

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

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 per_month recurrences.

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 per_month recurrences.

Minimum array length: 1

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 ("earning").

data
Earning · object