---
title: "Get most recent pay period ending before date"
method: GET
path: "/v2/employee/pay-schedules/{id}/periods/{periodDate}"
tags: ["Pay Schedules"]
---

# Get most recent pay period ending before date

`GET /v2/employee/pay-schedules/{id}/periods/{periodDate}`

## Request

- Base URL: `https://api.quinyx.com`
- URL: `https://api.quinyx.com/v2/employee/pay-schedules/{id}/periods/{periodDate}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/oauth/token` scopes: `pay_schedules:read`
- TypeScript: <https://skmtc.dev/quinyx/apis/quinyx-api/docs/v2/employee/pay-schedules/:id/periods/:periodDate/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `periodDate` string, date, required

## Query parameters

- `payScheduleRestId` string, required

## Response `200`

Previous pay period along with list of allowed employees and unit IDs

- EmployeeIntegrationPayPeriodResponse
  - `payrollSystemId` integer
  - `payPeriod` EmployeeIntegrationPayPeriod
    - `start` string, date
    - `end` string, date
  - `employeeIds` integer[]
  - `unitIds` integer[]

## Other responses

- `401`: Unauthorized. Missing Bearer token.
- `403`: Forbidden. The credential is not valid for this API, or is missing the permission: pay_schedules:read
- `404`: Pay schedule, or credential's customer is not found

## Changes

- **2026-08-13** `70a12bbb88c9`: 1 info
  - the endpoint scheme security `OAuth2ClientCredentials` was added to the API

[Operation history](https://skmtc.dev/quinyx/apis/quinyx-api/changes/v2/employee/pay-schedules/:id/periods/:periodDate/get.md)

---

[API](https://skmtc.dev/quinyx/apis/quinyx-api.md) - [All operations](https://skmtc.dev/quinyx/apis/quinyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/quinyx/apis/quinyx-api/revisions/cd11d3b0af6b?raw)
