Generates payrolls month by month for every employee of the authenticated user's organization that has a salary configuration for the given year. Months where an employee already has a payroll or is not employed are skipped. Returns a per-month summary.
POST
/api-v1/payroll/generate/{calendarYear}
curl \
--request POST 'https://wyzio.app/api-v1/payroll/generate/{calendarYear}'
Response examples (200)
[
{
"monthType": "JANUARY",
"generated": 42,
"skippedExisting": 42,
"skippedNotEmployed": 42,
"error": "string"
}
]