Preview pay schedule dates
GET {{baseUrl}}/v1/companies/:company_id/pay_schedules/preview?frequency=<string>&anchor_pay_date=<string>&anchor_end_of_pay_period=<string>&day_1=<integer>&day_2=<integer>
Provides a preview of a pay schedule with the specified parameters
scope: pay_schedules:write
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
frequency | string | The frequency that employees on this pay schedule are paid with Gusto. | |
anchor_pay_date | string | The first date that employees on this pay schedule are paid with Gusto. | |
anchor_end_of_pay_period | string | The last date of the first pay period. This can be the same date as the anchor pay date. | |
day_1 | string | An integer between 1 and 31 indicating the first day of the month that employees are paid. This field is only relevant for pay schedules with the “Twice per month” and “Monthly” frequencies. It will be null for pay schedules with other frequencies. | |
day_2 | string | An integer between 1 and 31 indicating the second day of the month that employees are paid. This field is the second pay date for pay schedules with the "Twice per month" frequency. For semi-monthly pay schedules, set this field to 31. For months shorter than 31 days, we will set the second pay date to the last day of the month. It will be null for pay schedules with other frequencies. |
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. | |
Accept | string |
RESPONSES
status: OK
{"pay_periods":[{"check_date":"2023-12-15","end_date":"2023-12-31","start_date":"2023-10-01","run_payroll_by":"2023-12-13"},{"check_date":"2024-03-15","end_date":"2024-03-31","start_date":"2024-01-01","run_payroll_by":"2024-03-13"},{"check_date":"2024-06-14","end_date":"2024-06-30","start_date":"2024-04-01","run_payroll_by":"2024-06-12"},{"check_date":"2024-09-13","end_date":"2024-09-30","start_date":"2024-07-01","run_payroll_by":"2024-09-11"}],"holidays":["2023-10-09","2023-11-11","2023-11-23","2023-12-25","2024-01-01","2024-01-15","2024-02-19","2024-05-27","2024-06-19","2024-07-04","2024-09-02"]}