The Flow Payroll API lets you automate payroll management programmatically: configure pay runs, manage employees and clients, upload payroll data, calculate gross-to-net, generate payslips, and stay HMRC-compliant through RTI submissions. The API follows REST principles, uses JSON for requests and responses, and wraps every response in a consistent envelope.Documentation Index
Fetch the complete documentation index at: https://docs.flowpayroll.ai/llms.txt
Use this file to discover all available pages before exploring further.
Need a
client_id / client_secret? See Authentication. Want the whole surface in one file for Postman or Insomnia? See Use in Postman.Base URLs
Each service is reached through the API gateway under a versioned path. The core Pay API lives at/v1; every other domain has its own /v1/<service> (or /v2/<service>) prefix.
| Environment | Base URL |
|---|---|
| Sandbox | https://api.sandbox.flowpayroll.ai |
| Live | https://api.flowpayroll.ai |
API families
The reference is grouped by service. Each group below is generated directly from that service’s OpenAPI specification.Pay API
The core of payroll: employees, payroll runs, the gross-to-net calculator, payslips, and RTI (FPS & EPS).
Statutory pay
Calculate and record SSP, SMP, SPP, ShPP, SAP and more, with average-earnings checks and reconciliation.
Court orders
Attachment of earnings — CMS DEO, AEO, DEA, CTAEO and others — plus payees and protected-earnings handling.
Holiday & leave
Leave records, opening balances, accrual configuration, and average holiday-pay history.
Pensions
Auto-enrolment assessment, schemes, providers, groups, calculations, exports and enrolment letters.
Recurring line items
Recurring pay and deduction items, their periods, and skip/patch operations.
HMRC DPS
Retrieve and apply HMRC Data Provisioning Service notifications (tax codes, student loans, and more).
HMRC P-forms
Generate statutory forms such as the P45.
Billing
Clients, invoices, credit notes, finance settings, and accounting-provider sync.
A typical payroll run
Add people
Add employees with
POST /employee, and clients with POST /client if you run payroll for multiple entities.Preview
Preview payslips at any time with
GET /payslip/data/{employeeId}/{year}/{period} — even outside the configured frequency.Conventions
- Organisation scoping — every resource belongs to an organisation, which is derived from your credentials. You never pass an organisation ID in the request body.
- IDs — resources use ULID-based identifiers.
- Dates — ISO‑8601. Response metadata states the exact
dateFormatanddateTimeFormatin use. - Pagination — list endpoints are paginated; page through large result sets rather than requesting everything at once.