---
title: "Prepares a batch for finalization by fully recalculating it, checking that it does not contain validation errors, and setting a temporary StatusId of 35, \"Being finalized\". This status will automatically revert after 30 minutes if the batch has not been finalized in the meantime. The function requires the permission salarybatch.canfinalize"
method: PUT
path: "/api/salarybatches/{batchId}/preparefinalize"
tags: ["SalaryBatches"]
---

# Prepares a batch for finalization by fully recalculating it, checking that it does not contain validation errors, and setting a temporary StatusId of 35, "Being finalized". This status will automatically revert after 30 minutes if the batch has not been finalized in the meantime. The function requires the permission salarybatch.canfinalize

`PUT /api/salarybatches/{batchId}/preparefinalize`

## Path parameters

- `batchId` integer, required

## Request body

- IntectWebAPIFrameworkIntectApiControllerProtectedOperationRequest
  - `Password` string

## Response `200`

OK

- string

---

[API](https://skmtc.dev/intect/apis/intect-rest-api.md) · [All operations](https://skmtc.dev/intect/apis/intect-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/intect/intect-rest-api/revisions/e256dcb495d4/schema)
