improved
Updated Autopayroll enablement process
6 days ago
Updated Pay Schedules endpoints, manage_pay_schedules flow, and flow settings to make it easier to understand whether Autopayroll is enabled and if it's not enabled, what issues are preventing it from being enabled.
Updated endpoints
- GET /v1/companies/{company_id}/pay_schedules/{pay_schedule_id}:
- If
auto_payrollis set totrue, the newauto_payroll_enablement_blockersfield will benullbecause requirements are fulfilled - If
auto_payrollis set tofalse, the newauto_payroll_enablement_blockersarray will list out the reasons why certain conditions are not satisfied, such as 1-day ACH or a company has hourly workers.
- If
- POST /v1/companies/{company_id}/pay_schedules and PUT /v1/companies/{company_id}/pay_schedules/{pay_schedule_id}:
- Creating or updating a pay schedule with
auto_payrollset totrueon a pay schedule that hasauto_payroll_enablement_blockersreturns as errors the same blockers surfaced in GET /v1/companies/{company_id}/pay_schedules/{pay_schedule_id}
- Creating or updating a pay schedule with
Flows updates
- Your flow settings now have an option to "Show auto payroll UI in manage_pay_schedules flow". You’ll need to enable this to see Autopayroll updates on the
manage_pay_scheduleflow. - The
manage_pay_schedulesflow now shows the Autopayroll state—whether it's enabled and if it's not, the relevant blockers—for each pay schedule.