improved
v2023-04-01
over 2 years ago
This is the changelog for v2023-04-01, which contains payroll API breaking changes.
To learn more about versions in our API, read the Versioning guide.
- Improvements to our existing payroll API endpoints. These changes focus on removing unexpected mutations on the payroll record from existing GET endpoints and improving reliability and performance, see Payroll Guide for more details
- Removed
eligible_employeesfrom the get pay periods endpoint. The eligible employees for a payroll are determined by theemployee_compensationsreturned from the payrolls prepare endpoint. The end date cannot be more than 3 months in the future. - For the get payrolls endpoint
totalsare no longer included by default andemployee_compensationsandversionwere removed. You can optionally request totals with the include param, i.e.?include=totals,payroll_status_meta.- Start and end date range cannot be more than a year. The end date cannot be more than 3 months in the future.
- Added
processing_statusesparam used to returnprocessed,unprocessedor both types of payrolls, defaults to processed, i.e.processing_statuses=unprocessed,processed. - Added
payroll_typesparam used to returnregular,off_cycle, or both types of payrolls, defaults to regular, i.e.payrolls_types=regular,off_cycle
- Introduced a new endpoint used to 'prepare' a payroll for the running payroll process. This will add/remove eligible employees from the payroll
employee_compensationsand provide a payrollversionfor making subsequent updates to the payroll record. - Changed type of
payroll_deadlinefield from Date to Timestamp to give a more accurate time to run payroll by to pay employees on time.payroll_deadlinenow returns the original payroll deadline when the payroll is late. If payroll has not been run by the deadline, apreparerequest will update both the check date and deadline to reflect the soonest employees can be paid and the deadline by which the payroll must be run in order for said check date to be met. - The endpoint to update a payroll by
start_dateandend_datewas removed. Please use Update Payroll by ID for all update requests going forward. - For the show payroll endpoint, the
show_calculationparam was removed and is no longer necessary to see payroll calculations. Also subsequent requests to the show endpoint will not clear out calculations as they used to. Theversionattribute was removed and will now be returned from the prepare endpoint. Theemployee_compensationsandtotalsattributes were removed for unprocessed payrolls, they will still be there for calculated and processed payrolls. check_datewill no longer change when fetching unprocessed payrolls from the index or show endpoints, however the check date will be accurate if the payroll is not late. To get an accurate check_date for a late payroll you need to prepare/calculate/submit the payroll.
- Removed
- Capitalize all off-cycle payroll reasons