Prepare a payroll for update
Changed onPrepares an unprocessed payroll for update, including: adding eligible employees to off-cycle payrolls that support multiple employees (Bonus, Correction, and Adhoc), and updating check_date, payroll_deadline, and payroll_status_meta dates and times.
Use this endpoint before calling PUT /v1/companies/{company_id}/payrolls/{payroll_id}.
Notes
- Nullifies calculated_at and totals if the payroll was previously calculated
- Returns the version parameter required for updating the payroll
- employees:read scope is required to include employee compensations data in the response.
- Results are paginated, with a maximum page size of 100 employee compensations.
scope: payrolls:write employees:read
Request
- Base URLhttps://api.gusto-demo.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The UUID of the company
The UUID of the payroll
Query parameters
The page that is requested. When unspecified, will load all objects unless endpoint forces pagination.
Number of objects per page. For majority of endpoints will default to 25
Sort employee compensations by one or more fields. Options: first_name, last_name. Append :asc or :desc to specify direction (e.g., last_name:asc or last_name:asc,first_name:asc). Defaults to ascending.
Headers
Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Request body
Response
Successful
Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - info
added the optional property
////////to the response with the status - info
added the optional property
////////to the response with the status - info
added the optional property
////////to the response with the status - info
added the optional property
to the response with the status
- breaking