Correcting Pay History
Processing voids and historical pay adds over the API
Overview
Mistakes happen in payroll. An employee is paid after their termination date, a benefit is set up with the wrong amount, or pay history is imported incorrectly during a company's initial setup.
The Corrections API lets you fix pay history programmatically. It supports two building block operations, which can be combined freely:
- Void payrolls — Creating a payroll that exactly zero out an existing payroll item or contractor payment, canceling its wages and tax liabilities.
- Add payrolls — Adding new (either managed or external) payrolls with a backdated payday.
These are grouped onto a correction, which represents a bundle of changes to a company's pay history that is previewed, approved, and fulfilled as a single unit. Because everything on a correction is processed together, Check offsets the resulting tax liabilities against each other — taxes recovered by a void can fund the taxes owed on its replacement, so nothing is double-collected.
This unlocks three (3) common workflows:
- Standalone voids — canceling pay that should never have been processed (e.g., accidentally paying a terminated employee on a payroll).
- Void and replace — void a mistake on a payroll and replace it with corrected pay history, as either a managed replacement payroll or an external payroll.
- Add missing backdated payrolls — uploading a payroll that was missed during setup or run manually outside of Check.
The Correction lifecycle
A correction moves through the following states:
draft— the correction is editable, and new payrolls or void payrolls can be attached to it.pending— the correction has been approved. Its money movement is scheduled to process on the correction'ssettlement_date. Apendingcorrection can be reopened until itsreopen_deadlineto make further changes, which returns it todraftand deletes its fulfillment.processing— fulfillment has begun processing, and the correction can no longer be reopened.settled— fulfillment has been processed and the correction is reflected in the company's pay history.failed— the fulfillment could not be processed, and must be retried.
Check sends created, updated, and deleted webhooks with the correction topic, so you can track lifecycle changes (like preview completion, approval, and status changes) without polling the API. See Corrections webhooks for when each event is sent.
Example: voiding and replacing a payroll
The example below corrects a payroll item that was processed with the wrong amounts by voiding it and replacing it with corrected values.
1. Create a correction
{
"company": "com_sx3svU6K8c5ZkSFlOh5p",
"year": 2026,
"settlement_date": "2026-07-15",
"description": "Void and replace 3/31 payroll for J. Smith"
}The correction is created in draft. company and year are required — all payrolls attached to the correction must belong to the correction's tax year. The other fields are optional:
settlement_date— the banking day on which any resulting debit or refund will be processed. Must be a banking day between the earliest date ACH can reach and 7 days from today; any other date returnssettlement_date_invalid, and approval checks the date again. Required before approval if the correction will debit or refund the employer. If no money moves, it can be left out and a date is set at approval.bank_account— the bank account to debit or credit at fulfillment. If omitted, Check stamps the company's current default bank account.
2. Void the erroneous payroll item
Use Void a payroll to create a void payroll and attach it to the correction.
By default all items on the payroll are voided; pass a subset object to void only specific payroll items or contractor payments.
{
"correction": "cor_Bw6EkMDmxCPeVQ2eYzLu",
"subset": {
"payroll_items": ["itm_Ue75kUcWex5JRGTRuqux"]
}
}The response is a draft payroll with is_void: true whose amounts are the exact negation of the original item. Void payrolls are not previewed or approved through the Payroll API — they are processed with the correction.
3. Add the corrected payroll item
Create a replacement payroll attached to the same correction via the correction body parameter. This should be done either using the External Payroll API or the Payroll API, depending on whether the payday of the payroll being added is before or after the company's start date.
- If the payday is before the company's start date: The payroll is external (non-managed), meaning that the tax calculation for the payroll was performed by a prior provider and must be entered on the payroll. Create the payroll using the External Payroll API and the Create an external payroll endpoint.
- If the payday is on or after the company's start date: The payroll is managed by Check, and Check will calculate taxes for the payroll. Create the payroll using the regular Payroll API and the Create a payroll endpoint.
{
"company": "com_sx3svU6K8c5ZkSFlOh5p",
"correction": "cor_Bw6EkMDmxCPeVQ2eYzLu",
"period_start": "2026-03-14",
"period_end": "2026-03-27",
"payday": "2026-03-31",
"items": [
{
"employee": "emp_zGGp6wYcxAeu1Ng8IA7v",
"payment_method": "manual",
"earnings": ["..."]
}
]
}When creating a managed payroll (with a payday after the company's start date), you will not be able to preview the payroll directly with the Payroll API. Rather, the payroll will be previewed as part of previewing the correction, as shown below.
4. Preview the correction
Once you have added all of the voids and/or backdated payrolls to the correction, the next step is to preview the correction.
POST /corrections/cor_Bw6EkMDmxCPeVQ2eYzLu/preview
Previewing a correction is asynchronous, and does several things:
- It previews any managed payrolls attached to the correction.
- It computes the
totalsof the correction, which indicates the expected money movement for the correction. This includes the amount that will be directly debited from or refunded to the employer (thecash_requirement), and any tax funds that were already remitted and are refundable from the agency (agency_refundable). - It rebalances any impacted closed quarters, which get added to the list of operations on the correction as shown below. These new payrolls get fulfilled alongside the other payrolls on the correction, in a single transaction. For more on how balancing and fulfillments work generally, see Balancing Payrolls & Fulfillment Receipts.
{
...,
"operations": [
{
"operation": "balance_quarter",
"creates": "pay_Vg3RvNwqLpTz8oYaGdQE", // Balancing adjustment from correction
"corrects": "pay_Jd9nWuBqOxSz5eKmCvhT" // Original balancing payroll
},
...
]
}The preview is invalidated if payrolls are added to or removed from the correction.
5. Approve the correction
POST /corrections/cor_Bw6EkMDmxCPeVQ2eYzLu/approve
Like preview, approving is asynchronous.
The endpoint returns 202 Accepted, and Check recalculates the correction's money movement and compares it against the last preview. There are a variety of reasons why the required money movement may change between preview and approval, such as tax payments being remitted or additional payrolls outside of the correction being approved.
Monitor the approval via the approval object on the correction, by listening for the correction updated webhook, or by polling Get a correction.
- If the approval succeeds, the correction moves to
pending, and its money movement is scheduled to process on thesettlement_date. - If the approval fails,
approval.statusisfailed, the correction remains indraft, andapproval.error_codesays why:fulfillment_changed— the amounts changed since the preview, for example because the company's pay history changed after the preview was run.totalsis refreshed to reflect the updated amounts. Review the new totals, re-run Preview a correction if needed, and then approve again.balancing_changed— the balancing payrolls for an impacted closed quarter changed since the preview. The refreshed balancing payrolls are on the correction. When both the amounts and the balancing changed, this code is the one reported.payroll_item_already_voided— a void of the same payroll item on another correction was approved first. Delete the conflicting void payroll from this correction, then preview and approve again.approval_failed— the approval failed for any other reason.
{
"status": "draft",
"approval": {
"status": "failed",
"started_at": "2026-06-25T12:24:23.441459Z",
"error_code": "fulfillment_changed"
}
}A correction cannot be approved if it has no payrolls attached, if its preview is stale or has not been run, or if it moves money and has no settlement_date. See Approve a correction for every error the request can return. While an approval is in progress, the correction cannot be edited, deleted, or previewed.
Once the correction is pending, if something needs to change, reopen the correction to return it to draft. Reopening is possible until the correction's reopen_deadline, after which fulfillment begins processing.
Voiding a payroll that is still processing
Occasionally, employers may need to void payrolls that are still in a processing status. You can void a processing payroll with the same Void a payroll endpoint and correction flow described above.
However, when a payroll is in a processing status, its employer debit has not cleared its ACH return window yet, so it could still be returned. Because of that, a correction that voids a processing payroll follows the extra rules below.
Eligibility
- None of the original's tax payments can have been sent. Check checks this when the void is created and again at preview and approval. If one of the original's tax payments is remitted before the correction is approved, preview and approval fail with
payroll_not_voidable. Delete the void payroll, wait for the original to reachpaid, and void it then. - One processing void per correction. A correction that voids a processing payroll can't void any other payroll. Adding one returns
payroll_not_voidable. Other payrolls with a payday in the past can be added to the same correction. To void several payrolls, give each its own correction. - The original's debit must not have failed before approval. If the original's debit is returned while the correction is still in
draft, preview and approval fail withpayroll_not_voidable. Delete the void payroll from the correction.
Settlement date
A correction containing a void of a processing payroll will refund the employer the tax liabilities from the voided portion of the original payroll. Because those liabilities are still being processed in the original payroll's debit, there are restrictions on when the refund may be processed.
settlement_datemust be at least one banking day after the date the original's debit is expected to clear its return window. An earlier date is rejected withsettlement_date_invalidwhen you update or approve the correction, and the error message gives the earliest date allowed.- The usual limit of 7 days from today still applies.
- If the original's debit has no expected clear date yet, approval fails with
voided_payroll_clear_date_unknown. Approve again once the debit is scheduled. - If the correction also contains another payroll, the liabilities for that payroll are collected through that same transfer. This means its taxes are not funded until the transfer settles, and tax payments due before then may be paid late. If those taxes are time-sensitive, it is recommended to put that payroll on a separate correction.
Replacing the voided pay
Every payroll added to a correction must have a payday in the past. A payroll that is still processing has a payday in the future, so its replacement can't be added to a correction. To pay the corrected amounts, run a new regular payroll outside of the correction.
Direct deposit payments
The void reverses the original's wages and taxes. It does not automatically cancel or refund the voided employees' and contractors' net pay direct deposits. Handle those payments separately. Canceling a payment is independent of the void: you can cancel before creating the void, while the correction is in draft, or after it is approved, as long as can_cancel is true.
- Unsent payments: cancel each one while its
can_cancelistrue(before itscancel_deadline). After the original's debit clears its return window, refund the canceled payments to the employer. - Payments already sent: Check can't recover these automatically. The employer needs to recover them from the employee or contractor.
Post-tax deduction payments
Check handles managed post-tax deduction payments of the voided payroll items, such as child support payments, automatically. This applies to every void on a correction, including voids of paid payrolls.
When the correction is approved, Check cancels any that haven't been sent yet and refunds them to the employer once the original's debit clears its return window. Payments that were already sent go to the agency, and the employer recovers them from the agency.
The correction receipt totals these payments: post_tax_deduction_refundable is the amount Check refunds to the employer, post_tax_deduction_agency_refundable is the amount already remitted that the employer recovers from the agency, and post_tax_deduction_funding_failed is the part of the refundable amount that won't be refunded because the original's debit failed.
If the original payroll's debit fails
If the original's debit is returned after the correction is approved, but before the correction's transfer is sent, what happens depends on what payrolls are attached to the correction.
The correction's processing_void.closes_on_funding_failure tells you in advance which of these applies, and original_funding_failure on the correction shows the outcome once the debit fails.
If the correction voids the whole original payroll, and has nothing else on it:
- The correction's transfer is canceled.
- The correction moves to
settledwith no money movement. The original's taxes were never collected, so there is nothing to refund. - The original's funding failure is resolved by the void, so you don't need to retry the original.
- On the correction receipt, each tax gets a
funding_failedamount that offsets itsvoidedamount. Each tax and the receipt'scash_requirementthen net to0.00.
If the correction does not void the entire original payroll, or contains other payrolls on it:
- The correction stays
pending, and its transfer is held. The netting calculated at approval doesn't change. - The original's debit must be retried for its full amount with Retry a payment. The retried amount is not reduced by any net pay payments you canceled.
- Before retrying, cancel the net pay payments of the voided payroll items. The failed debit already canceled them, but a retry would send them again, so they still show
can_cancel: true. Until they are canceled, the retry fails withpayment_ineligible_for_retry. - Net pay payments you canceled before the debit failed stay canceled and are not sent again. Once the retried debit clears its return window, refund them to the employer.
- Once the retried debit settles, the correction's transfer is rescheduled automatically, for at least one banking day after that debit clears its return window.
Updated 11 days ago

