---
title: "Undo upa pension declaration(verwijderen pensioenaangifte)"
method: POST
path: "/v2/providers/employers/payrolladministrations/upapensiondeclarations/{upaPensionDeclarationId}/undo"
tags: ["Upa pension declaration"]
---

# Undo upa pension declaration(verwijderen pensioenaangifte)

`POST /v2/providers/employers/payrolladministrations/upapensiondeclarations/{upaPensionDeclarationId}/undo`

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

This is a controller endpoint to perform an action. 
Previously this specific action was referred to as 'Deactiveren pensioenaangifte'. If this action is performed successfully then the UPA pension declaration will be marked 'deleted' in the sense that its results will be undone.  Please note that situations where an approved  UPA pension declaration would have to be 'undone' should generally be avoided.

By undoing the UPA pension declaration for this period, it is not automatically removed from the UPA pension provider. After undoing the UPA pension declaration, you must recreate and confirm the UPA pension declaration for this period. Please pay attention to the deadline for confirmation. Subsequently, the UPA pension declaration received earlier by the  UPA pension provider will be overwritten by this new one. 

This action may only be performed successfully if the following requirements are met;

* The UPA pension declaration is the very last UPA pension declaration that has been approved and sent within this payroll administration
* It is not possible to undo a UPA pension declaration if there is currently a UPA pension declaration with status 0 (to be processed) or 1 (awaiting approval) within the payroll administation. 


 __Metadata :__  No metadata endpoint available for this controller endpoint.


 __Defaults :__ Defaults GET endpoint is available for this controller endpoint at the path `.../payrolladministrations/{payrollAdministrationId}/externalparties/{externalPartyKey}/upapensiondeclarations/undo/defaults`.

## Path parameters

- `upaPensionDeclarationId` 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)
