Skip to main content
GET
List pay periods

Authorizations

Authorization
string
header
required

Your secret API key, sent as Authorization: Bearer hmk_test_....

Headers

Hammock-Version
string

The API version to use for this request. Defaults to the version pinned to your API key.

Query Parameters

pay_schedule
string
required
from
string<date>

Return pay periods ending on or after this date. Defaults to today.

to
string<date>

Return pay periods starting on or before this date. Defaults to 90 days after from. At most one year after from.

Response

A list of pay periods, earliest first.

object
string
required
Allowed value: "list"
data
object[]
required
has_more
boolean
required

Whether more objects follow this page.

url
string
required

The path of this list.

Example:

"/pay_periods"