GuidesAPI ReferenceChangelogAPI PolicyAPI StatusGusto Security
API Reference
v2023-09-01 is in the deprecation process and all prior versions have been deprecated. Click this banner to review our version upgrade guide.

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 payrolls#prepare endpoint.

scope: payrolls:read

Path Params
string
required

The UUID of the company

Query Params
string
string

If left empty, defaults to today's date.

string

regular and/or transition. Multiple options are comma separated. The default is regular pay periods if nothing is passed in.

Headers
string
Defaults to 2024-04-01

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

Responses

Response body
array of objects
object
string

The start date, inclusive, of the pay period.

string
length ≥ 1

The end date, inclusive, of the pay period.

string

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

payroll
object

Information about the payroll for the pay period.

404

Not Found

The requested resource does not exist. Make sure the provided UUID is valid.

Language
Credentials