v3
latestOpenAPI 3.1.02026-07-311,0939714.5 MBUndo payroll run (verwijderen loonrun)
Activity name : <a href="https://developer.loket.nl/Activities/UndoPayrollRunByPayrollRunId" target="_blank">UndoPayrollRunByPayrollRunId</a> This is a controller endpoint to perform an action.<br><br>In the older Loket GUI this specific action is referred to as 'Verwijderen loonrun' If this action is performed successfully then the payroll run will be 'deleted' in the sense that its results will be undone. Please note that situations where an approved payroll run would have to be 'undone' should be generally be avoided. Preferably any mistakes or consistencies should be picked out at an earlier stage in the payroll process.<br><br>This action may only be performed successfully of the following requirements are met;<br><br>* The payroll run is the very last payroll run that has been approved within this payroll administration<br>* It is not possible to undo a payroll run if there is currently a payroll run with status 0 (to be processed) or 1 (awaiting approval) within the payroll administation.<br>* Additionally, no related (external) information should still be present for the given payroll run. This will be validated by the endpoint.<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 GET endpoint is available for this controller endpoint at the path .../payrolladministrations/{payrollAdministrationId}/payrollruns/undo/defaults.
Path parameters
The unique identifier of the payroll run
Headers
A valid Bearer token for authorizing the request.
The accept header is used to influence what type of output is returned and in most cases the version of the output
Response
Created