v2023-04-01
 over 2 years ago 
This is the changelog for v2023-04-01, which contains 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.
- Removed employee_compensationsandversionfrom Get all payrolls for a company endpoint.
- Introduced a new endpoint used to 'prepare' a payroll for updates and subsequent processing. This endpoint will add/remove eligible employees from the payroll employee_compensationsand provide a payroll version for making updates to the payroll record.
- 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, totals are no longer included by default. For multiple attributes comma separate the values, 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.
- For the get payrolls endpoint, unprocessed payrolls are no longer included by default. To get unprocessed payrolls, include unprocessedin yourprocessing_statusesquery parameter.
- 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.
Deprecations
- Deprecated the Update a payroll [by date]endpoint as a result of launching the Prepare a payroll for update and Update a payroll by ID endpoints.
Miscellaneous changes
- Capitalized all off-cycle payroll reasons