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
| Attribute | Description |
|---|---|
codestring | For deduction warnings, the action taken on the deduction: For time off warnings (when |
reasonstring | For deduction warnings, why the deduction was not fully applied (for example, For time off warnings, a human-readable explanation of the warning. |
deduction_typestring | Type of deduction the warning is for. One of |
deductionstring | ID of the deduction the warning is for. When deduction_type is time_off_balance, the time off balance ID. |
actual_deduction_amountstring | Actual amount of the deduction withheld. |
expected_deduction_amountstring | 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 | |
|---|---|
| skipped | The deduction was not applied to the payroll item and is not included in any calculations. |
| partially_applied | A partial amount of the deduction was able to be withheld from the payroll item. |
| time_off_balance_insufficient | The hours spent exceed the hours available on the spend date. Returned when deduction_type is time_off_balance. |
| time_off_spend_waiting_period_not_met | Hours are spent before the policy's usage waiting period has elapsed. Returned when deduction_type is time_off_balance. |
| Warning reason | |
|---|---|
| negative_net_pay | Applying the deduction to the payroll item would have resulted in an employee net pay (excluding reimbursements) below $0. |
| exceeds_max_percent | Applying the child support deductions would have resulted in the amount being a larger percent of disposable earnings than the max_percent field. |

