---
title: "Change the status of payrollruns"
method: PATCH
path: "/v2/providers/employers/payrolladministrations/payrollruns"
tags: ["Review payroll run"]
---

# Change the status of payrollruns

`PATCH /v2/providers/employers/payrolladministrations/payrollruns`

__Activity name :__ <a href="https://developer.loket.nl/Activities/PatchPayrollrunsByPayrollRunIds" target="_blank">PatchPayrollrunsByPayrollRunIds</a>

This action may only be performed successfully of the following requirements are met;
* The payroll run is ready for approval (status 1)

Update the status of one or more payrollruns

## Headers

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

## Request body

- PayrollrunStatusPatch[]
  - `id` string, uuid, required — The unique identifier (GUID/UUID) of the payroll run.
  - `action` 'confirm' | 'cancel', required — The action to perform on the payroll run

## Response `200`

OK

## 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)
