get https://api.gusto-demo.com/v1/companies//pay_periods
Pay periods are the foundation of payroll. Compensation, time & attendance, taxes, and expense reports all rely on when they happened. To begin submitting information for a given payroll, we need to agree on the time period.
By default, this endpoint returns pay periods starting from 6 months ago to the date today. Use the start_date
and end_date
parameters to change the scope of the response. End dates can be up to 3 months in the future and there is no limit on start dates.
Starting in version '2023-04-01', the eligible_employees attribute was removed from the response. The eligible employees for a payroll are determined by the employee_compensations returned from the payrolls#prepare endpoint.
scope: payrolls:read