v1

latestOpenAPI 3.1.02026-07-243113441.2 MB
Payrolls

Get pay periods for a company

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 PUT /v1/companies/{company_id}/payrolls/{payroll_id}/prepare endpoint.

scope: payrolls:read

get/v1/companies/{company_id}/pay_periods

Path parameters

company_idstring required

The UUID of the company

Query parameters

start_datestring date

Start date (YYYY-MM-DD) for the pay periods range. Defaults to 6 months ago.

end_datestring date

End date (YYYY-MM-DD) for the pay periods range. Cannot be more than 3 months in the future. Defaults to today.

payroll_types'regular' | 'transition' | 'regular,transition'

Comma-separated list of payroll types to include (regular, transition). Defaults to regular only.

Headers

X-Gusto-API-Version'2026-06-15'

Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.

Response

Successful

start_datestring

The start date, inclusive, of the pay period.

end_datestring

The end date, inclusive, of the pay period.

pay_schedule_uuidstring

A unique identifier of the pay schedule to which the pay period belongs.