Payrolls
Cancel a payroll
Changed onTransitions a processed payroll back to the unprocessed state. A payroll can be canceled if it meets both criteria:
- processed is true
- Current time is earlier than 4pm PT on the payroll_deadline
scope: payrolls:run
put/v1/companies/{company_id}/payrolls/{payroll_id}/cancel
Request
- Base URLhttps://api.gusto-demo.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
company_idstring required
The UUID of the company
payroll_idstring required
The UUID of the payroll
Headers
X-Gusto-API-Version'2026-06-15'
Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Response
Successful
Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status
- breaking