---
title: "Recalculate journal for a payroll run"
method: POST
path: "/v2/providers/employers/payrolladministrations/payrollruns/{payrollrunId}/journalruns/recalculate"
tags: ["Journal run"]
---

# Recalculate journal for a payroll run

`POST /v2/providers/employers/payrolladministrations/payrollruns/{payrollrunId}/journalruns/recalculate`

__Activity name :__ <a href="https://developer.loket.nl/Activities/PostRecalculateJournalRunByPayrollrunId" target="_blank">PostRecalculateJournalRunByPayrollrunId</a><br><br>This is a controller endpoint to perform an action.<br><br>This action can only be performed for a payrollrun for which a successful journalrun allready exists. A recalculation of the journal for the given payroll run will result in the differences between the new run and all the previous runs. This allows a user to change the allocation of costs after a successful journal run and with a recalculation run have the correction to send to the financial software.<br><br>e.g. For a given employment the cost (500€) was incorrectly booked on the cost unit \Sales\" this should have been \"IT\". After changing the journal alocation for this employment a recalculation was done (no other changes were made). This will result in 2 lines in the new journal run -500 for \"sales\" and +500 for \"IT\"<br><br>__Metadata :__  Possible options for fields of the type 'metadata' can be acquired (GET) by adding `/metadata` to the POST URL.<br><br>__Defaults :__ Defaults endpoint is available for this controller endpoint by adding /defaults. Also, an endpoint is available to retrieve initiation values for a specific period."

## Path parameters

- `payrollrunId` string, uuid, required

## Headers

- `Authorization` string, required
- `Accept` string, required

## Response `202`

Accepted

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/loket-acc/apis/loket-api.md) · [All operations](https://skmtc.net/loket-acc/apis/loket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loket-acc/loket-api/revisions/b32a42be97f7/schema)
