Skip to main content
Closed beta: We’re still testing this API and it can change. If anything is unclear, let us know through your Kombo contact or support.
This page is a reference for when you build your error handling. For how the API works, start with the Write deductions guide. All errors use the standard Kombo error format: code, title, message, and log_url. Build your logic on the code, never on the message, because message texts can change. The log_url opens the request in the Kombo dashboard. You see errors at three moments:

When you schedule

Kombo checks each item when you call POST /payroll/one-time-deductions/schedule. An item with an error isn’t saved, but the other items in the same request still are.

PLATFORM.INPUT_INVALID

The whole request was rejected and nothing was saved. Something is wrong with the request itself: a missing field, a wrong format, more than 1,000 items, or the same origin_id twice in one request. What to do: Fix the request and send it again.

PAYROLL.DEDUCTION_TYPE_NOT_CONFIGURED

There’s no deduction code mapped to this deduction_type on this connection, so Kombo doesn’t know what to write in the payroll tool. What to do: Add the mapping in the Kombo dashboard, then schedule the item again.

PAYROLL.EMPLOYMENT_NOT_FOUND

Kombo doesn’t know an employment with this employment_id, or the employee left and has no regular pay run left that still takes deductions. An employee who left but still gets a final pay run can get deductions until that pay run’s cutoff. What to do: Check the employment_id. It has to come from GET /hris/employments or the employments on an employee. If the employee left, there’s nothing to deduct from anymore.

PAYROLL.ORIGIN_ID_CONFLICT

You already scheduled a deduction with this origin_id, but with other values. Kombo keeps the existing deduction as it is, so you don’t deduct twice by accident. What to do: Use a new origin_id. If you meant to change the existing deduction and it’s still QUEUED or FAILED, cancel it first and then schedule it again with the same origin_id.

After the sync

These come up when the sync writes the deduction to the payroll tool, or when Kombo reads it back later. The deduction gets the status FAILED and carries the error in its error field. Find them with GET /payroll/one-time-deductions?statuses=FAILED. A FAILED deduction never got into a pay run, so nothing was taken from the employee.

REMOTE.INPUT_INVALID

The payroll tool rejected the deduction. message has the tool’s own reason, for example an inactive pay code. What to do: Fix the cause, often together with your customer. Then cancel the failed deduction and schedule it again.

PAYROLL.CUTOFF_MISSED

Kombo couldn’t write the deduction before its pay run’s cutoff, for example because it couldn’t log in to the payroll tool until after the cutoff. Kombo doesn’t move it to the next pay run on its own. What to do: Cancel it and schedule it again. Kombo then plans it for the next pay run that still takes deductions.

PAYROLL.EMPLOYMENT_NOT_FOUND

The employee left, and by the time Kombo wrote the deduction they had no regular pay run left that still takes deductions. As long as the employee still gets a pay run, for example their final one, Kombo writes the deduction into it. What to do: Check with your customer whether the employee left. If they did, there’s nothing to deduct from anymore.

PAYROLL.DEDUCTION_REMOVED_IN_TOOL

The deduction was PENDING in the payroll tool, and HR removed it there before the pay run. What to do: Ask your customer’s HR team why before you schedule it again. They usually removed it on purpose.

When you cancel

Kombo checks each item when you call POST /payroll/one-time-deductions/cancel. The other items in the same request are still cancelled.

PAYROLL.DEDUCTION_ALREADY_WRITTEN

The deduction is already in the payroll tool (PENDING_APPROVAL, PENDING, PROCESSED, or DECLINED), so Kombo can’t cancel it anymore. What to do: Ask your customer’s HR team to remove it in the payroll tool.

PAYROLL.DEDUCTION_LOCKED

A sync is writing this deduction to the payroll tool right now. It locks the deductions it’s writing, so they can’t be cancelled halfway through. What to do: Wait until the sync is done and list the deduction again. If it’s FAILED, you can cancel it. If it’s in the payroll tool, ask your customer’s HR team to remove it there.

PAYROLL.DEDUCTION_NOT_FOUND

There’s no deduction with this origin_id for this integration. What to do: Check the origin_id, and that you’re calling with the right integration.