Payroll API Documentation
Complete REST API reference for BizFirstFi Payroll Management System
API Overview
The BizFirstFi Payroll API provides comprehensive endpoints for managing payroll operations, employee data, tax calculations, and compliance reporting. All endpoints use RESTful conventions and return JSON responses.
RESTful Design
Standard HTTP methods and status codes for predictable API behavior
Secure Authentication
OAuth 2.0 and API key authentication with role-based access control
Comprehensive Documentation
Complete reference with examples, schemas, and interactive testing
API Information | Details |
---|---|
Base URL | https://api.bizfirstfi.com/v1/payroll |
Authentication | OAuth 2.0 / API Key |
Response Format | JSON |
Rate Limit | 1000 requests/hour |
Authentication
The preferred method for authenticating with the Payroll API. Obtain access tokens using the client credentials flow.
For server-to-server integrations, you can use API key authentication by including the key in the Authorization header.
Employee Management
Create Employee
Get Employee
Update Employee
List Employees
Payroll Processing
Create Payroll Run
Calculate Payroll
Approve Payroll
Process Payment
Time & Attendance
Endpoint | Method | Description | Auth Required |
---|---|---|---|
/timesheets | GET | List employee timesheets | Yes |
/timesheets/import | POST | Import timesheet data | Yes |
/timesheets/{id}/approve | POST | Approve timesheet | Yes |
/time-off-requests | GET | List time-off requests | Yes |
Tax Management
The API automatically calculates federal, state, and local taxes based on employee location and tax configuration.
Supported Tax Types
- Federal Income Tax
- State Income Tax
- Social Security (FICA)
- Medicare Tax
- State Unemployment (SUTA)
- Local City/County Taxes
Tax Jurisdictions
- All 50 US States
- Washington D.C.
- Major metropolitan areas
- School district taxes
- Special tax zones
Reporting
Report Type | Endpoint | Format | Schedule |
---|---|---|---|
Payroll Summary | /reports/payroll-summary | JSON, PDF | Per pay period |
Tax Liability | /reports/tax-liability | JSON, Excel | Monthly/Quarterly |
Employee Earnings | /reports/employee-earnings | JSON, CSV | On-demand |
Year-end Reports | /reports/year-end | PDF, CSV | Annual |
Webhooks
Subscribe to real-time notifications for payroll events using webhooks.
Available Events
- payroll.run.created
- payroll.run.calculated
- payroll.run.approved
- payroll.run.processed
- employee.created
- employee.updated
- timesheet.submitted
- payment.completed
Webhook Configuration
Error Handling
Status Code | Description | Common Causes |
---|---|---|
200 OK | Request successful | Standard success response |
400 Bad Request | Invalid request data | Missing required fields, invalid format |
401 Unauthorized | Authentication failed | Invalid API key or expired token |
403 Forbidden | Access denied | Insufficient permissions |
429 Too Many Requests | Rate limit exceeded | Too many API calls in time window |
SDKs & Tools
Official SDKs
- JavaScript/Node.js SDK
- Python SDK
- PHP SDK
- C# .NET SDK
- Java SDK
Interactive Tools
- Swagger UI for API testing
- Postman collection
- Code examples repository
- API explorer interface
Support Resources
- Developer documentation
- API status page
- Community forums
- Technical support
Getting Started
Quick Start Guide
- Sign up for a developer account at developer.bizfirstfi.com
- Create an application and obtain API credentials
- Install the SDK for your preferred programming language
- Make your first API call using our interactive documentation
- Explore the comprehensive examples in our GitHub repository