Skip to main content
POST
Create an earning line item

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
business_preset_id
string
earning_type
enum<string>

The type of earning for this line item.

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

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_citizenship,
leave_domestic_and_sexual_violence,
leave_general,
leave_jury_duty,
leave_maternity,
leave_organ_donor,
leave_parental,
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,
time_off_in_lieu,
time_off_in_lieu_overtime,
vacation_accrual_adjustment,
vacation_pay,
vacation_pay_employee_terminated,
vacation_pay_no_time_taken,
vacation_pay_time_taken,
wage
pay_rate_id
string

On line items of type wage and overtime you may pass a pay_rate_id and hours to automatically calculate the amount.

overtime_rate_id
string

On line items of type overtime you may pass a overtime_rate_id and hours to automatically calculate the amount.

custom_amount
number<decimal>

An override for managed_amount. When set, amount reflects this value instead of managed_amount.

Required range: x <= 999999
custom_hours
number<decimal>

An override for managed_hours. When set, hours reflects this value instead of managed_hours. Can be used to prorate the dollar amount on salary line items.

Required range: x <= 9999
accrued_vacation_pay
number<decimal>

The vacation pay accrued on this line item, calculated based on the Work Assignment's Vacation Pay Settings.

Required range: -99999 <= x <= 99999
title
string | null
Maximum string length: 255
title_translations
object | null

Optional translations for the title property.

component_settings
object
expense_accounting_code_id
string
custom_expense_accounting_code_id
string
liability_accounting_code_id
string
custom_liability_accounting_code_id
string
custom_earned_on
string<date>
external_ref
string
Maximum string length: 255
custom_tag_assignment
object

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

data
Earning Line Item · object