Payroll Management
Get List of Paystubs
GET
/api/paystubs
Description:
Returns a list of paystubs for the authenticated company.
Headers:
Content-Type
application/json
Authorization
Bearer <token>
Query Parameters:
company_id
integer (optional)
ID of the company. Defaults to the authenticated company ID.
user_id
integer (optional)
Filter paystubs by a specific user (employee) ID.
transaction_id
string (optional)
Filter paystubs by a specific transaction ID.
status
string (optional)
Filter paystubs by their status (paid
, unpaid
, etc.).
page
integer (optional)
Page number for pagination.
per_page
integer (optional)
Number of items per page (default is 10).
Response:
Create a New Paystub
POST
/api/paystubs
Description:
Creates a new paystub for the authenticated company.
Headers:
Content-Type
application/json
Authorization
Bearer <token>
Body:
id
string
ID of the user
string
The start date of the pay period
string
The end date of the pay period
number
The taxable amount for the period
number
Reimbursement for the period
number
Other non taxable pay for the period
company_id
integer (optional)
ID of the company. Defaults to the authenticated company ID.
Request example:
Response example:
Last updated