{
"message": "Paystub processing completed",
"created_paystubs": [
{
"paystub": {
"id": 1,
"user_id": 1,
"company_id": 1,
"pay_period_start": "2023-01-01",
"pay_period_end": "2023-01-15",
"taxable_income": 5000.00,
"reimbursements": 1000.00,
"other_allowances": 500.00,
"gross_pay": 6500.00,
"net_pay": 4500.00,
"tax_withheld": 500.00,
"pension_contribution": 200.00,
"nhf_contribution": 100.00,
"nhis_contribution": 50.00,
"other_deductions": 150.00,
"status": "unpaid",
"transaction_id": "COMPANYCODE-ABC123",
"created_at": "2023-01-16T10:00:00Z",
"updated_at": "2023-01-16T10:00:00Z"
},
"custom_contributions": [
{
"id": 1,
"contribution_id": 1,
"user_id": 1,
"name": "Health Insurance",
"employee_contribution": 50.00,
"employer_contribution": 100.00,
"created_at": "2023-01-16T10:00:00Z",
"updated_at": "2023-01-16T10:00:00Z"
}
// ... other custom contributions
]
},
{
"paystub": {
"id": 2,
"user_id": 2,
"company_id": 1,
"pay_period_start": "2023-01-01",
"pay_period_end": "2023-01-15",
"taxable_income": 6000.00,
"reimbursements": 0.00,
"other_allowances": 0.00,
"gross_pay": 6000.00,
"net_pay": 4800.00,
"tax_withheld": 600.00,
"pension_contribution": 240.00,
"nhf_contribution": 120.00,
"nhis_contribution": 60.00,
"other_deductions": 180.00,
"status": "unpaid",
"transaction_id": "COMPANYCODE-DEF456",
"created_at": "2023-01-16T10:00:00Z",
"updated_at": "2023-01-16T10:00:00Z"
},
"custom_contributions": [
{
"id": 2,
"contribution_id": 2,
"user_id": 2,
"name": "Retirement Fund",
"employee_contribution": 60.00,
"employer_contribution": 120.00,
"created_at": "2023-01-16T10:00:00Z",
"updated_at": "2023-01-16T10:00:00Z"
}
// ... other custom contributions
]
}
],
"failed_paystubs": [
// ... any paystubs that failed to be created, along with error messages
]
}