Skip to main content

Blocks

ConfirmWireDetails

Wire transfer confirmation workflow for payroll funding.

Displays a banner when wire transfers are awaiting funds and walks the user through viewing wire instructions and confirming transfer details via a modal.


Example

import { Payroll } from '@gusto/embedded-react-sdk'

function MyComponent() {
return (
<Payroll.ConfirmWireDetails
companyId="your-company-id"
wireInId="your-wire-in-id"
onEvent={() => {}}
/>
)
}

ConfirmWireDetailsProps

Props for the ConfirmWireDetails component.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<PayrollConfirmWireDetailsForm>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
wireInId?stringOptional wire-in request identifier. If not provided, the first active wire-in request is used.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
payroll/wire/startTransferUser initiates the wire transfer flow
payroll/wire/instructions/selectUser selects a wire-in request from the instructions screen{ selectedWireInId: string }
payroll/wire/instructions/doneUser completes viewing wire instructions{ selectedWireInId: string }
payroll/wire/instructions/cancelUser cancels viewing wire instructions
payroll/wire/form/doneUser completes the wire confirmation form{ wireInRequest: WireInRequest }
payroll/wire/form/cancelUser cancels the wire confirmation form

Endpoints


DismissalPayPeriodSelection

Pay period selection step for the dismissal payroll workflow.

Lists the terminated employee's unprocessed termination pay periods and, on submit, creates an off-cycle payroll with the "Dismissed employee" reason for the selected period. When only one pay period is available it is pre-selected. When both payrollId and employeeId are supplied the step is skipped and the selection event fires immediately with the existing payroll.

Remarks

Events:


DismissalPayPeriodSelectionProps

Props for DismissalPayPeriodSelection.

PropertyTypeDescription
companyIdstringIdentifier of the company the dismissal payroll belongs to.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<PayrollDismissal>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
employeeId?stringIdentifier of the terminated employee. When provided, the available pay periods are filtered to this employee.
payrollId?stringIdentifier of an existing dismissal payroll. When provided alongside employeeId, pay period selection is skipped and the component immediately emits the selection event.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
dismissal/payPeriod/selectedFired after a pay period is selected and the off-cycle payroll has been created, or immediately when payrollId is supplied.{ payrollUuid: string }

Endpoints


OffCycleCreation

Creation form for off-cycle (bonus or correction) payrolls.

Walks the user through configuring pay period dates, selecting a reason, choosing employees, and setting deduction and tax withholding preferences, then submits the resulting payroll for execution.


OffCycleCreationProps

Props for the OffCycleCreation component.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<PayrollOffCycleCreation>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
payrollType?OffCyclePayrollDateTypePre-selected off-cycle reason. The creation form starts with this reason selected. Defaults to 'bonus'.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
offCycle/createdThe off-cycle payroll has been created{ payrollUuid: string }

Changing the reason updates the deduction and withholding defaults — 'bonus' skips regular deductions and uses the supplemental withholding rate; 'correction' includes regular deductions and uses the regular rate.


Endpoints


OffCycleDeductionsSetting

Radio control for choosing whether an off-cycle payroll skips regular deductions and contributions.

Remarks

Taxes are always included regardless of the selection. Selecting "Skip" blocks all regular deductions and contributions except 401(k); selecting "Include" runs all regular deductions and contributions normally.


OffCycleDeductionsSettingProps

Props for OffCycleDeductionsSetting.

PropertyTypeDescription
onEventOnEventType<EventType, unknown>Event handler invoked when the deduction preference changes. See the events table on OffCycleDeductionsSetting.
skipRegularDeductionsbooleanWhether regular deductions are currently being skipped.
dictionary?Record<"en", DeepPartial<PayrollOffCycleDeductionsSetting>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues from CommonComponentInterface.


Events

EventDescriptionData
offCycle/deductionsChangeFired when the deduction preference changesOffCycleDeductionsSettingChangePayload

OffCycleReasonSelection

Presents the reason selection UI for choosing between a bonus and correction off-cycle payment.

Remarks

Selecting a reason emits the recommended deduction and withholding defaults alongside the chosen value so a surrounding form can update its state to match.


OffCycleReasonSelectionProps

Props for the OffCycleReasonSelection component.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<PayrollOffCycleReasonSelection>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
offCycle/selectReasonFired when the user selects a reasonSelectReasonPayload

PayrollBlockerList

Displays the list of blockers preventing payroll from being processed for a company.

Remarks

Blockers indicate issues that must be resolved before a payroll can be calculated or submitted, such as missing employee information, invalid tax setups, or incomplete company configuration. The component also renders open recovery cases and outstanding information requests for the company when present, and re-emits any events those embedded surfaces fire through onEvent.


PayrollBlockerListProps

Props for PayrollBlockerList.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<PayrollPayrollBlocker>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Endpoints


PayrollConfiguration

Handles the configuration phase of payroll processing, allowing users to review and modify employee compensation before calculating the payroll.

Remarks

Emits the following events:


PayrollConfigurationProps

Props for PayrollConfiguration.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
payrollIdstringThe associated payroll identifier.
alerts?ReactNodeOptional alert components to render above the configuration content.
dictionary?Record<"en", DeepPartial<PayrollPayrollConfiguration>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
withReimbursements?booleanWhether to show the reimbursements column in the compensation table. Defaults to true.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
runPayroll/employee/editAn employee row is selected for editing{ employeeId, firstName, lastName }
runPayroll/employee/skipAn employee is skipped or unskipped for this payroll{ employeeId }
runPayroll/employee/savedEmployee compensation changes are persisted{ payrollPrepared }
runPayroll/calculatedPayroll calculation completes successfully{ payrollId, alert, payPeriod }
runPayroll/processingFailedPayroll calculation fails or times out
runPayroll/blockers/viewAllThe "view all blockers" affordance is selected
runPayroll/grossUp/selectedThe set-net-earnings menu item is selected for an employee{ employeeUuid }
runPayroll/grossUp/calculatedA gross-up amount is calculated from a target net pay{ grossUp, netPay, employeeUuid }

Endpoints


PayrollEditEmployee

Editor for an individual employee's compensation within a payroll run.

Allows modification of pay rates, hours, time off, additional earnings, reimbursements, and payment method for a single employee on the specified payroll.


Example

import { Payroll } from '@gusto/embedded-react-sdk'

function MyComponent() {
return (
<Payroll.PayrollEditEmployee
employeeId="your-employee-id"
companyId="your-company-id"
payrollId="your-payroll-id"
onEvent={() => {}}
/>
)
}

PayrollEditEmployeeProps

Props for PayrollEditEmployee.

PropertyTypeDescription
companyIdstringThe associated company identifier.
employeeIdstringThe associated employee identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
payrollIdstringThe associated payroll identifier.
dictionary?Record<"en", DeepPartial<PayrollPayrollEditEmployee>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
withReimbursements?booleanWhether to show reimbursement fields. Defaults to true.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
runPayroll/employee/savedFired when employee payroll compensation changes are saved{ payrollPrepared, employee }
runPayroll/employee/cancelledFired when the user cancels editing employee payroll compensation

Endpoints


PayrollHistory

Displays historical payroll records with filtering and management capabilities.

Remarks

Lists processed regular, off-cycle, and external payrolls for a company and supports filtering by pay period, viewing payroll summaries and receipts, and cancelling processed payrolls when they remain within the cancellation window. Each row shows the pay period, payroll type, pay date, status, and total pay amount.


PayrollHistoryProps

Props for the PayrollHistory component.

PropertyTypeDescription
companyIdstringIdentifier of the company whose processed payrolls should be listed.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
dictionary?Record<"en", DeepPartial<PayrollPayrollHistory>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
runPayroll/summary/viewedUser views a payroll summary{ payrollId: string; startDate?: string; endDate?: string }
runPayroll/receipt/viewedUser views a payroll receipt{ payrollId: string; startDate?: string; endDate?: string }
runPayroll/cancelledA payroll is cancelled{ payrollId: string; result: PayrollsCancelResponse }

Endpoints


PayrollLanding

Main landing surface for payroll operations, with tabs for running payroll and viewing payroll history, plus inline navigation to a payroll's overview and receipt.


PayrollLandingProps

Props for PayrollLanding.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
ConfirmWireDetailsComponent?ConfirmWireDetailsComponentTypeCustom component that replaces the default wire details confirmation UI.
dictionary?Record<"en", DeepPartial<PayrollPayrollLanding>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
showPayrollCancelledAlert?booleanWhen true, displays a dismissible success alert indicating a payroll was cancelled.
withReimbursements?booleanWhether to show reimbursement fields throughout the landing flow. Defaults to true.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
runPayroll/selectedUser selected a payroll to run{ payrollUuid: string, payPeriod: object }
payroll/reviewUser selected a calculated payroll to review{ payrollUuid: string, payPeriod: object }
payroll/skippedA payroll was skipped{ payrollId: string }
payroll/deletedA cancellable off-cycle payroll was deleted{ payrollId: string }
runPayroll/offCycle/startUser clicked the Run off-cycle call-to-action
transition/runPayrollUser chose to run an unprocessed transition payroll from the Transition Payroll Alert{ startDate: string, endDate: string, payScheduleUuid?: string }
transition/payrollSkippedUser skipped an unprocessed transition payroll from the Transition Payroll Alert{ startDate: string, endDate: string, payScheduleUuid?: string }
runPayroll/summary/viewedUser opened a payroll's summary view{ payrollId: string }
runPayroll/receipt/viewedUser opened a payroll's receipt view{ payrollId: string }
runPayroll/blockers/viewAllUser opened the full list of payroll blockers
runPayroll/cancelledA payroll was cancelled{ payrollId: string, result: object }
runPayroll/cancelled/alertDismissedUser dismissed the payroll-cancelled success alert

When unprocessed transition pay periods exist, the landing surface renders a Transition Payroll Alert. It looks ahead 90 days for upcoming transition periods, groups them by pay schedule, and offers to run or skip each one. Choosing to run emits transition/runPayroll (handle it by rendering Payroll.TransitionFlow with the supplied dates and pay schedule). Skipping opens a confirmation dialog — warning that employees will not be paid for the period — then skips the payroll and emits transition/payrollSkipped. Transition pay periods should be resolved (run or skipped) before regular payrolls are run; the Gusto API may reject regular payrolls while unresolved transition periods exist.


Endpoints


PayrollList

Lists upcoming payrolls and lets users start running them.

Displays available payrolls with pay period dates, payroll type, check date, deadline, and status. Each row offers actions to run, submit a calculated payroll, skip, or delete (for cancellable off-cycle payrolls). A separate call-to-action starts an off-cycle payroll.

Remarks

When the company has unprocessed transition pay periods within the next 90 days, the Run Payroll action on Regular rows is disabled to prevent a regular payroll from being run before the transition is resolved. Off-cycle rows and the Run off-cycle action remain enabled, since off-cycle is the path used to run a transition payroll. PayrollLanding pairs this list with an alert that lets users run or skip the pending transition; when using PayrollList directly, render an equivalent resolution surface alongside it.


PayrollListBlockProps

Props for PayrollList.

PropertyTypeDescription
companyIdstringThe associated company identifier.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.

Inherits children, className, defaultValues, dictionary, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
runPayroll/selectedUser selected a payroll to run{ payrollUuid, payPeriod }
payroll/reviewUser selected a calculated payroll to review and submit{ payrollUuid, payPeriod }
payroll/skippedA payroll was successfully skipped{ payrollId }
payroll/deletedA cancellable off-cycle payroll was successfully deleted{ payrollId }
runPayroll/offCycle/startUser clicked the Run off-cycle call-to-action

Endpoints


PayrollOverview

Final review screen for a calculated payroll before submission, with submit, cancel, and edit controls. After submission, tracks processing status and surfaces the receipt and per-employee paystub downloads once complete.

Remarks

The payroll referenced by payrollId must already be calculated; rendering with an uncalculated payroll throws. Unresolved submission blockers (e.g. fast-ACH threshold, wire-in funding) are surfaced inline and the submit action stays disabled until each blocker has a selected unblock option. While the payroll is processing, the component polls until success or failure and emits the corresponding event.


PayrollOverviewProps

Props for PayrollOverview.

PropertyTypeDescription
companyIdstringIdentifier of the company that owns the payroll.
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
payrollIdstringIdentifier of the payroll being reviewed. The payroll must already be calculated.
alerts?PayrollFlowAlert[]Alert banners to display above the payroll summary.
ConfirmWireDetailsComponent?ConfirmWireDetailsComponentTypeCustom component to replace the default wire details confirmation UI.
dictionary?Record<"en", DeepPartial<PayrollPayrollOverview>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
withReimbursements?booleanWhether reimbursement fields are shown in the totals and per-employee tables. Defaults to true.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
runPayroll/editUser chose to edit the payroll before submitting
runPayroll/submittingSubmit request was sent to the API
runPayroll/submittedPayroll was successfully submittedSubmit payroll response
runPayroll/processedPayroll finished processing successfully{ payPeriod, payrollUuid }
runPayroll/processingFailedPayroll processing failed
runPayroll/cancelledPayroll was cancelledCancel payroll response
runPayroll/receipt/getUser requested the payroll receipt{ payrollId }
runPayroll/pdfPaystub/viewedUser opened an employee's paystub PDF{ employeeId }
payroll/wire/form/doneWire-in details were confirmed via the embedded wire formSubmit wire-in response

Endpoints


PayrollReceipts

Displays a detailed receipt for a completed payroll, including the debited total, per-category breakdown, tax breakdown, and a per-employee summary of payment method, garnishments, reimbursements, taxes, and net pay.


Example

import { Payroll } from '@gusto/embedded-react-sdk'

function MyComponent() {
return <Payroll.PayrollReceipts payrollId="your-payroll-id" onEvent={() => {}} />
}

PayrollReceiptsProps

Props for PayrollReceipts.

PropertyTypeDescription
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
payrollIdstringIdentifier of the payroll whose receipt should be displayed.
dictionary?Record<"en", DeepPartial<PayrollPayrollReceipts>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.
withReimbursements?booleanWhether to include reimbursement amounts in the breakdown and employee tables. Defaults to true.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Endpoints


RecoveryCases

Displays open recovery cases for a company and provides an in-modal resubmit workflow for resolving them.

Remarks

Recovery cases are issues that surface after a payroll has been submitted (for example, a returned ACH transfer) and must be resolved before subsequent payrolls can run cleanly. This component is also embedded inside PayrollBlockerList, but can be used standalone when you want a dedicated recovery cases surface.


RecoveryCasesProps

Props for RecoveryCases.

PropertyTypeDescription
companyIdstringUUID of the company whose recovery cases should be listed.
onEvent?OnEventType<EventType, unknown>Callback invoked each time the component emits an event.

Inherits children, className, defaultValues, dictionary, FallbackComponent, LoaderComponent from Omit.


Events

EventDescriptionData
recoveryCase/resolveUser opens the resubmit modal for a recovery case{ recoveryCaseId: string }
recoveryCase/resubmit/doneUser successfully resubmits a recovery caseResubmit result payload
recoveryCase/resubmit/cancelUser cancels the resubmit modal

Endpoints


TransitionCreation

Creation form for transition payrolls covering the gap between an old and new pay schedule.

Displays the transition pay period and pay schedule information, and collects a check date, deduction preference, and tax withholding configuration before submitting the resulting off-cycle payroll for execution.


TransitionCreationProps

Props for the TransitionCreation component.

PropertyTypeDescription
companyIdstringThe associated company identifier.
endDatestringThe end date of the transition pay period (YYYY-MM-DD).
onEventOnEventType<EventType, unknown>Callback invoked each time the component emits an event — user interactions, successful API responses, step transitions, or errors. Receives the event type constant and an optional payload whose shape varies by event. See the Event Handling guide and each component's event table for the full list of emitted events.
payScheduleUuidstringThe UUID of the pay schedule this transition is associated with.
startDatestringThe start date of the transition pay period (YYYY-MM-DD).
dictionary?Record<"en", DeepPartial<PayrollTransitionCreation>>Overrides for the component's i18n strings. Supply a partial object whose keys match the component's resource namespace — any omitted keys fall back to SDK defaults. See the Translation guide for details.

Inherits children, className, defaultValues, FallbackComponent, LoaderComponent from BaseComponentInterface.


Events

EventDescriptionData
transition/createdThe transition payroll has been created{ payrollUuid: string }

The check date must be at least the company's ACH lead time (typically two business days) from today. Deductions default to included and tax withholding defaults to the regular rate with an every-other-week pay period.


Endpoints


Utility types

ApiPayrollBlocker

A single payroll blocker entry: an issue that must be resolved before a payroll can be calculated or submitted (for example, missing employee information, invalid tax setups, or incomplete company configuration).

Properties

PropertyTypeDescription
keystringStable identifier for the blocker type, used to look up display copy and behavior.
message?stringHuman-readable message describing the blocker, when provided by the API.

ConfirmWireDetailsComponentType

ConfirmWireDetailsComponentType = ComponentType<ConfirmWireDetailsProps>

Component type matching the ConfirmWireDetails signature.

Use this when supplying a custom wire-confirmation UI to a payroll flow via a ConfirmWireDetailsComponent prop.


OffCycleCreationFormData

Form values collected by the OffCycleCreation component.

Extends

Properties

PropertyTypeDescription
checkDateDate | nullDate employees will be paid; must be at least the company's ACH lead time of business days from today for direct deposit, unless isCheckOnly is true.
endDateDate | nullEnd of the pay period; required unless isCheckOnly is true, and must be on or after startDate.
includeAllEmployeesbooleanWhen true, every onboarded active employee is included in the payroll.
isCheckOnlybooleanWhen true, all employees are paid by check rather than direct deposit; start and end dates become optional and the check date may be today or any future date.
reasonOffCycleReasonThe off-cycle reason — 'bonus' or 'correction'.
selectedEmployeeUuidsstring[]Employee UUIDs to include. Only consulted when includeAllEmployees is false.
skipRegularDeductionsbooleanWhen true, regular deductions are skipped for this payroll.
startDateDate | nullBeginning of the pay period; required unless isCheckOnly is true, and cannot be in the future when the payroll type is 'correction'.

OffCycleDeductionsSettingChangePayload

Payload emitted by OffCycleDeductionsSetting on the offCycle/deductionsChange event.

Properties

PropertyTypeDescription
skipRegularDeductionsbooleanWhether the user selected to skip regular deductions.

OffCyclePayPeriodDateFormData

Pay-period date selections collected for an off-cycle payroll.

Extended by

Properties

PropertyTypeDescription
checkDateDate | nullDate employees will be paid; must be at least the company's ACH lead time of business days from today for direct deposit, unless isCheckOnly is true.
endDateDate | nullEnd of the pay period; required unless isCheckOnly is true, and must be on or after startDate.
isCheckOnlybooleanWhen true, all employees are paid by check rather than direct deposit; start and end dates become optional and the check date may be today or any future date.
startDateDate | nullBeginning of the pay period; required unless isCheckOnly is true, and cannot be in the future when the payroll type is 'correction'.

OffCyclePayrollDateType

OffCyclePayrollDateType = "bonus" | "correction"

Off-cycle payroll reason that drives pay-period date validation rules.

Remarks

'bonus' is used for paying a bonus, gift, or commission. 'correction' is used for running a correction payment and constrains the start date to today or earlier.


OffCycleReason

OffCycleReason = "bonus" | "correction"

Reason for running an off-cycle payroll.

bonus covers bonuses, gifts, or commissions; correction covers any payroll run outside the regular pay schedule.


OffCycleReasonDefaults

Recommended deduction and withholding defaults paired with an off-cycle reason.

Properties

PropertyTypeDescription
skipDeductionsbooleanWhether regular deductions and contributions should be skipped for this payroll.
withholdingTypeWithholdingTypeWithholding rate to apply for this payroll.

PayrollExecutionInitialState

PayrollExecutionInitialState = "configuration" | "overview"

Entry point for PayrollExecutionFlow. Determines which screen the flow renders first.


PayrollFlowAlert

PayrollFlowAlert = object

An alert banner rendered above payroll content in PayrollOverview and PayrollConfiguration.

Properties

PropertyTypeDescription
titlestringShort heading text displayed in the alert.
type"error" | "info" | "success"Visual severity of the alert.
alertKey?stringStable key used to track alert identity across renders (e.g. for animations or deduplication).
content?ReactNodeOptional body content rendered below the title.
onDismiss?() => voidCalled when the user dismisses the alert. When omitted, the alert is not dismissible.

SelectReasonPayload

Payload emitted with the offCycle/selectReason event when a reason is chosen.

Properties

PropertyTypeDescription
defaultsOffCycleReasonDefaultsRecommended deduction and withholding defaults for the selected reason.
reasonOffCycleReasonThe reason the user selected.

TransitionCreationFormData

Form values collected by the TransitionCreation component.

Properties

PropertyTypeDescription
checkDateDate | nullThe date employees will be paid. Must be at least the company's ACH lead time from today.
skipRegularDeductionsbooleanWhen true, regular deductions are skipped for this payroll.

WithholdingType

WithholdingType = "supplemental" | "regular"

Tax withholding rate applied to an off-cycle payroll.

supplemental applies the IRS supplemental withholding rate; regular applies the employee's regular withholding rate.