Documentation
Guides, API reference and events for Payroll.
On this page
Rules shared by every R&D Copilot API are in the Developer guide.
Get started
- Overview: Integrate payroll inputs, run approvals, payment reconciliation and filing records.
- Quickstart: Read a test pay run, calculate it and verify the resulting revision.
- Authentication: Get client credentials, request a token and call the Payroll API with it.
- Sandbox and live: Build and test against a test company, then move the same calls to your live company.
- Go-live checklist: Reconcile a test run before using live payroll data.
Concepts
- Employers and employees: Use employee identities within the legal employer of a run.
- Pay periods and cut-offs: Distinguish the pay period from the input cut-off, approval deadline and payment date.
- Earnings, deductions and contributions: Reconcile the amounts of a standard taxable payroll line in RON.
- Run lifecycle: Follow a pay run from draft through filing.
- Corrections: Use a linked adjustment in the following run for a paid payroll correction.
Guides
- Send payroll inputs: Record time, leave, bonuses and employment changes against a draft pay run.
- Calculate and review: Calculate a draft and reconcile the output against the prior run.
- Handle blockers: Clear approval blockers and recalculate the run.
- Approve and pay: Approve the reviewed revision and reconcile the bank outcomes employee by employee.
- Payslips: Read and reconcile the amounts of an employee payslip.
- Monthly return and journal: Reconcile the filing receipt and accounting journal to the paid run.
Reference
- Errors: The error object of the Payroll API and the codes that say what went wrong.
- Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
- Pagination: Lists come in pages. Follow the cursor until it is empty.
- Limits: The limits of the Payroll API, with their values and what happens over them.
- Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
- Changelog: Track changes to the Payroll API contract.
API reference
- Employees: Read employees and update their draft payment details.
- Inputs: Read and write the inputs that feed each pay run.
- Pay runs: Read, calculate, reopen and approve pay runs.
- Payslips: Read employee amounts and year-to-date totals.
- Payments: Read outstanding payments and record bank outcomes.
- Returns: Record and read accepted monthly filing receipts.
- Webhooks: Read events, register subscriptions and replay deliveries.
- Operations: A request that changes data is accepted once and answered with an operation result you can read again.
Events
- Event envelope: Every Payroll event has the same envelope; only
datachanges with the type of the event. - Event catalogue: Subscribe to pay run and payment changes.
- Subscriptions: Register an HTTPS endpoint and Payroll sends your events to it, each one signed.
- Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
- Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
- Replay: Send a parked event again once your endpoint is ready to take it.