Warnings

The payroll item warnings field is populated when previewing or approving a payroll. If there are deductions that cannot be fully applied to a payroll, there will be a corresponding element in the warnings array.

The Warning Object

AttributeDescription
code
string

For deduction warnings, the action taken on the deduction: skipped or partially_applied.

For time off warnings (when deduction_type is time_off_balance), the time off warning type, such as time_off_balance_insufficient or time_off_spend_waiting_period_not_met.

reason
string

For deduction warnings, why the deduction was not fully applied (for example, negative_net_pay or exceeds_max_percent).

For time off warnings, a human-readable explanation of the warning.

deduction_type
string

Type of deduction the warning is for.

One of post_tax_deduction, tax, benefit, and time_off_balance.

deduction
string
ID of the deduction the warning is for. When deduction_type is time_off_balance, the time off balance ID.
actual_deduction_amount
string
Actual amount of the deduction withheld.
expected_deduction_amount
string
The full amount expected to be withheld for this deduction.

On API version 2021-09-02 and later stable versions, time off warnings use the fields above with deduction_type set to time_off_balance and both amount fields set to null. The earliest API version does not return time off warnings. See Working with time off policies for examples.

Check provides the following values for code and reason:

Warning code
skippedThe deduction was not applied to the payroll item and is not included in any calculations.
partially_appliedA partial amount of the deduction was able to be withheld from the payroll item.
time_off_balance_insufficientThe hours spent exceed the hours available on the spend date. Returned when deduction_type is time_off_balance.
time_off_spend_waiting_period_not_metHours are spent before the policy's usage waiting period has elapsed. Returned when deduction_type is time_off_balance.
Warning reason
negative_net_payApplying the deduction to the payroll item would have resulted in an employee net pay (excluding reimbursements) below $0.
exceeds_max_percentApplying the child support deductions would have resulted in the amount being a larger percent of disposable earnings than the max_percent field.