When I Work Payrolls API

Payrolls allows you to select a pay period date range and hours worked within that range. Default range if not supplied is today + 3 days. > Please note that payrolls cannot be created or deleted via the API For more info about managing Payroll, visit the [Help Center](https://help.wheniwork.com/articles/close-and-export-payroll/).

GitHub OpenAPI
Business capability
HR Operations Management BC-300.70

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /2/payrolls List payroll periods and totals · List Payrolls #
Ask an LLM
“What pay periods were run in a date range?”
“Can I see payroll totals for a period?”
Tell an agent
List payrolls from {start} to {end}.
Show payroll periods and totals between {start} and {end}.
GET /2/payrolls/{id} Get a payroll period · Get Payroll #
Ask an LLM
“How do I look up one pay period by ID?”
“Can I see the start and end dates of a payroll?”
Tell an agent
Get payroll {id}.
Show pay period {id}.
PUT /2/payrolls/{id} Update a payroll period · Update Payroll #
Ask an LLM
“Can I change the start or end date of a pay period?”
“Is it possible to close or finalize a payroll?”
Tell an agent
Set payroll {id} end date to {end_date}.
Close payroll {id} with notes {notes}.
GET /2/payrolls/{id}/stats Get current hours statistics for a payroll · Get Payroll Statistics for current hours #
Ask an LLM
“How many hours are in a payroll period right now?”
“Can I get aggregate stats for a pay period?”
Tell an agent
Get current hours stats for payroll {id}.
Show aggregate stats for pay period {id}.
GET /2/payrolls/notices List attendance notices · List Notices #
Ask an LLM
“What absences or late clock-ins have been flagged?”
“Can I see notices from a certain number of days?”
Tell an agent
List attendance notices.
Show notices from the last {rangeInDays} days.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/when-i-work:when-i-work-payrolls-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

when-i-work-payrolls-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: When I Work API Documentation Payrolls API
  description: The When I Work API is thorough, flexible, and restful.
servers:
- url: https://api.wheniwork.com
  description: Production
security:
- W-Token: []
tags:


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/when-i-work/openapi/when-i-work-payrolls-api-openapi.yml