Skip to main content
POST
Cancel one-time deductions
Closed Beta Feature: This endpoint is now in closed beta. Please reach out to your account manager or support.
A cancelled deduction won’t be written. It gets the status CANCELLED, stays in the list, and its origin_id is free again, so you can schedule a new deduction with it. Once a deduction is PENDING_APPROVAL, PENDING, PROCESSED or DECLINED, it’s in the payroll tool and Kombo can’t cancel it. That item comes back with an error with the code PAYROLL.DEDUCTION_ALREADY_WRITTEN. While a sync is writing a deduction, it’s locked and can’t be cancelled. That item comes back with PAYROLL.DEDUCTION_LOCKED. Check it again once the sync is done. Safe to retry: cancelling a deduction that’s already cancelled returns it in data again. Write deductions guide

Authorizations

Authorization
string
header
required

Create an API key on the Secrets page in the Kombo dashboard.

Headers

X-Integration-Id
string
required

ID of the integration you want to interact with.

Body

application/json

POST /payroll/one-time-deductions/cancel Request body

origin_ids
string[]
required

1 to 1000 origin_id values of the deductions to cancel.

Required array length: 1 - 1000 elements

Your own unique ID for this deduction, for example your invoice line per employee and month. Kombo matches it per integration to protect against double deductions. 1 to 255 characters: letters, numbers, -, _, . and :.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9\-_.:]+$

Response

POST /payroll/one-time-deductions/cancel Positive response

status
string
required
Allowed value: "success"
data
object
required
Example: