Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: Bankday Payroll API
version: 1.0.0
description: Business days, holidays and settlement dates for payment rails, exchanges and countries.
contact:
url: https://bankday.dev
servers:
- url: https://bankday.dev
security:
- bearer: []
tags:
- name: Payroll
paths:
/v1/payroll/schedule:
get:
operationId: payroll
summary: Payroll schedule
description: 'Every pay date in a year (or a range of up to 2 years) for a weekly, biweekly, semimonthly or monthly schedule. Pay dates that land on a weekend or holiday move to the previous business day by default, and each one comes with submit_by: the business day the payroll file is due, lead_days business days before the pay date. Use us-fed for US direct deposit and ca-payments for Canada. Pay dates are selected by their scheduled date, so a January 1 payday moved to December 31 still belongs to the new year.'
parameters:
- name: calendar
in: query
required: true
description: e.g. us-fed, ca-payments
schema:
type: string
- name: frequency
in: query
required: true
description: weekly | biweekly | semimonthly | monthly
schema:
type: string
- name: year
in: query
required: false
description: Defaults to this year (or use start and end)
schema:
type: string
- name: anchor
in: query
required: false
description: Any regular pay date; required for weekly and biweekly
schema:
type: string
- name: days
in: query
required: false
description: 'Semimonthly days of the month: 15,last (default), 1,15, ...'
schema:
type: integer
- name: day
in: query
required: false
description: Monthly day of the month, 1-31 or last (default)
schema:
type: string
- name: adjust
in: query
required: false
description: preceding (default) | following | modified_preceding | modified_following | none
schema:
type: string
- name: lead_days
in: query
required: false
description: Business days before the pay date to submit, 0-10 (default 2)
schema:
type: string
- name: format
in: query
required: false
description: json (default) or csv, e.g. for a spreadsheet IMPORTDATA
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
example:
calendar: us-fed
frequency: semimonthly
count: 24
adjusted_count: 8
pay_dates:
- scheduled: '2027-01-15'
pay_date: '2027-01-15'
weekday: Friday
adjusted: false
submit_by: '2027-01-13'
- scheduled: '2027-01-31'
pay_date: '2027-01-29'
weekday: Friday
adjusted: true
reason: weekend
submit_by: '2027-01-27'
- scheduled: '2027-02-15'
pay_date: '2027-02-12'
weekday: Friday
adjusted: true
reason: Washington's Birthday (Presidents Day)
submit_by: '2027-02-10'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'422':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
tags:
- Payroll
components:
responses:
Error:
description: Error
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
securitySchemes:
bearer:
type: http
scheme: bearer