---
title: "Detail APG pension declaration for an administration"
method: GET
path: "/v2/providers/employers/payrolladministrations/apgpensiondeclarations/{apgPensionDeclarationId}"
tags: ["Apg pension declaration"]
---

# Detail APG pension declaration for an administration

`GET /v2/providers/employers/payrolladministrations/apgpensiondeclarations/{apgPensionDeclarationId}`

## Request

- Base URL: `https://api.loket.nl`
- URL: `https://api.loket.nl/v2/providers/employers/payrolladministrations/apgpensiondeclarations/{apgPensionDeclarationId}`
- Auth: none required

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


Details of APG pension declaration

## Path parameters

- `apgPensionDeclarationId` string, uuid, required

## Query parameters

- `filter` string
- `orderBy` string
- `pageNumber` integer
- `pageSize` integer

## Headers

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

## Response `200`

OK

- object: a warning indacateds that the given payload is valide, however take notice of the warning this might ifluence behavour.
  - `version` Version
    - `obsoleteDate` string, date, nullable: The date (can be null) on which the `resourceVersion` is no longer supported/available
    - `resourceVersion` string, date: The resource version of the object in the response
  - `messages` object[]
    - `type` string: Indication of the type of message. See [the general documentation for more information](./#section/Response/Messages)
    - `description` string: Describes the message
    - `id` string, uuid, nullable: In some cases when the message may relate to a specific entity, or specific group of entities, this field provides the identifier of that entity
    - `code` integer: Identifying code for the message
    - `properties` string[]: An array that can contain additional information
  - `content` ApgPensionDeclaration
    - `id` string, uuid: The unique identifier of an object (GUID/UUID)
    - `messageReference` string, nullable: The message reference (berichtkenmerk) to recognize the given declaration.
    - `methodOfCreation` object: Method by which the creation of the run was triggered.
      - `key` integer
      - `value` string
    - `customerGroupNumber` integer: Pension declarations will alway be grouped by its customerGroupNumber (klantgroepnummer).
    - `apgPensionDeclarationStatus` object: The current status of the tax return Possible values: * Verzoek tot aanmaak pensioenaangifte (key = 1) * Fout bij aanmaken pensioenaangifte (key = 2) * Pensioenaangifte aangemaakt (key = 3) * Pensioenaangifte geannuleerd (key = 4) * Pensioenaangifte bevestigd (key = 5) * Pensioenaangifte verzonden (key = 6) * Pensioenaangifte verwijderd (key = 7)
      - `key` integer
      - `value` string
    - `period` object
      - `year` integer: The year of the period for which the pension declaration was created.
      - `periodNumber` integer: The period number of the payroll period for which the pension declaration was created. In case of a yearly tax return this value will be set to 0
      - `periodId` integer: The periodId of the payroll period.
      - `periodType` object, nullable: Indicates the frequence of the process. Payrolling can be done on a montly, 4-weekly or weekly basis.
        - `key` integer
        - `value` string
      - `periodStartDate` string, date: The start date of the period
      - `periodEndDate` string, date: The end date of the period
    - `withholdingAgentName` string: The withholding agent name (naam inhoudingsplichtige) for this return.
    - `externalParty` object: External party (externe partij)
      - `key` integer
      - `value` string
    - `requestTime` string, date-time: The time at which the run was requested by the user
    - `creationTime` string, date-time, nullable: The time at which the pension message was requested by the user
    - `approvalTime` string, date-time, nullable: The time at which the payroll run was approved by the user
    - `sentTime` string, date-time, nullable: The time at which the pay roll run was sent.
    - `removeTime` string, date-time, nullable: The time at which the pay roll run was removed.
    - `requestedBy` UserBasicNotNullable
      - `id` string, uuid: The unique identifier of an object (GUID/UUID)
      - `initials` string: The initials of the user
      - `prefix` string, nullable: The prefix of the user
      - `lastName` string: The last name of the user
      - `formattedName` string: preformated user name for displaying. \<lastname\>\", \"\<initials\>\" \"\<prefix\>
    - `approvedBy` UserBasic, nullable
      - `id` string, uuid: The unique identifier of an object (GUID/UUID)
      - `initials` string: The initials of the user
      - `prefix` string, nullable: The prefix of the user
      - `lastName` string: The last name of the user
      - `formattedName` string: preformatted user name for displaying. \<lastname\>\", \"\<initials\>\" \"\<prefix\>
    - `removedBy` UserBasic, nullable
      - `id` string, uuid: The unique identifier of an object (GUID/UUID)
      - `initials` string: The initials of the user
      - `prefix` string, nullable: The prefix of the user
      - `lastName` string: The last name of the user
      - `formattedName` string: preformatted user name for displaying. \<lastname\>\", \"\<initials\>\" \"\<prefix\>
    - `cancelledTime` string, date-time, nullable: The time at which the payroll run was Cancelled by the user
    - `cancelledBy` UserBasic, nullable
      - `id` string, uuid: The unique identifier of an object (GUID/UUID)
      - `initials` string: The initials of the user
      - `prefix` string, nullable: The prefix of the user
      - `lastName` string: The last name of the user
      - `formattedName` string: preformatted user name for displaying. \<lastname\>\", \"\<initials\>\" \"\<prefix\>
    - `responseMessages` object[]
      - `datetimeOfRegistration` string, date-time: The date on which the response message was registered in Loket
      - `datetimeOfMessageReceipt` string, date-time, nullable: The date on which the original message was received by the external entity
      - `description` string, nullable: The description of the response message

## Other responses

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

---

[API](https://skmtc.dev/loket/apis/loket-api.md) - [All operations](https://skmtc.dev/loket/apis/loket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loket/apis/loket-api/revisions/32170564148f?raw)
