# Generate payrolls for a full year **POST /api-v1/payroll/generate/{calendarYear}** 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. ## Servers - Generated server url: https://wyzio.app (Generated server url) ## Parameters ### Headers - **WEAL-TOKEN** () API token (can be retrieved from account settings) - **TARGET-ORGANIZATION-ID** () ID of organization, for which the operation must be performed ### Path parameters - **calendarYear** (integer(int32)) ## Responses ### 200 OK #### Body: application/json (array[object]) - **monthType** (string) - **generated** (integer(int32)) - **skippedExisting** (integer(int32)) - **skippedNotEmployed** (integer(int32)) - **error** (string) ### 400 400 Bad Request ### 401 401 Unauthorized ### 403 403 Access Denied ### 404 404 Not Found ### 500 500 Internal Server Error [Powered by Bump.sh](https://bump.sh)