Get pay periods for a company

GET {{baseUrl}}/v1/companies/:company_id/pay_periods?start_date=<string>&end_date=<string>&payroll_types=<string>

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 eligibleemployees attribute was removed from the response. The eligible employees for a payroll are determined by the employeecompensations returned from the payrolls#prepare endpoint.

scope: payrolls:read

Request Params

KeyDatatypeRequiredDescription
start_datestring
end_datestringIf left empty, defaults to today's date.
payroll_typesstringregular and/or transition. Multiple options are comma separated. The default is regular pay periods if nothing is passed in.

HEADERS

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Acceptstring

RESPONSES

status: OK

[{&quot;start_date&quot;:&quot;2020-01-11&quot;,&quot;end_date&quot;:&quot;2020-01-24&quot;,&quot;pay_schedule_uuid&quot;:&quot;00ebc4a4-ec88-4435-8f45-c505bb63e501&quot;,&quot;payroll&quot;:{&quot;payroll_uuid&quot;:&quot;bfd8aad4-9c3f-4ca3-b072-a1b2b3ea689f&quot;,&quot;check_date&quot;:&quot;2020-01-30&quot;,&quot;processed&quot;:true,&quot;payroll_deadline&quot;:&quot;2020-01-28&quot;,&quot;payroll_type&quot;:&quot;regular&quot;}},{&quot;start_date&quot;:&quot;2020-12-12&quot;,&quot;end_date&quot;:&quot;2020-12-25&quot;,&quot;pay_schedule_uuid&quot;:&quot;cb53db72-612f-4eb1-9b85-389e79cfa510&quot;,&quot;payroll&quot;:{&quot;payroll_uuid&quot;:&quot;7ed29b45-4bb1-4d38-bd94-4d607d49fd21&quot;,&quot;check_date&quot;:&quot;2020-12-30&quot;,&quot;processed&quot;:true,&quot;payroll_deadline&quot;:&quot;2020-12-28&quot;,&quot;payroll_type&quot;:&quot;regular&quot;}}]