Preview pay schedule assignments for a company
POST {{baseUrl}}/v1/companies/:company_id/pay_schedules/assignment_preview
This endpoints returns the employee changes, including pay period and transition pay periods, for changing the pay schedule.
scope: pay_schedules:write
Request Body
{"type"=>"<string>", "hourly_pay_schedule_uuid"=>"<string>", "salaried_pay_schedule_uuid"=>"<string>", "default_pay_schedule_uuid"=>"<string>", "partial_assignment"=>"<boolean>", "employees"=>[{"employee_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}, {"employee_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}], "departments"=>[{"department_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}, {"department_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"type":"hourly_salaried","employee_changes":{"employee_uuid":"43b39ada-dc49-4879-9594-fe95f67ae434","first_name":"Penny","last_name":"Parker","pay_frequency":"Twice per month — Salaried pay schedule","first_pay_period":{"pay_schedule_uuid":"3f029a58-155d-4c30-8361-cc266b2c1f11","start_date":"2023-07-01","end_date":"2023-08-01","check_date":"2023-08-02"},"transition_pay_period":{"start_date":"2023-06-20","end_date":"2023-06-30"}}}