# YearEndStatementForYearByPayrollAdministrationId
Download year-end statement of a payroll administration for a year
__Activity name :__ GetYearEndStatementForYearByPayrollAdministrationId
__Availability:__ This is endpoint is available for the Loket.nl application only. It is not available for external parties
Download the year-end statements of a payroll administration (of its underlying employment) for a year.
The year-end statements at administration level are effectively a collection of year-end statements for its underlying employments. With this endpoint it may also be required at the administration level in one call.
_Please note: this endpoint may only be used to acquire a report in the pdf-type format_
This is a read-only table function. The Loket.nl REST API may not support changing the data, or the Invantive UniversalSQL driver for Loket.nl REST does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Loket.nl REST API.
- Catalog: `LoketNlRest`
- Schema: `Year-endStatementAtAdministrationLevel`
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `includeEmployeeSelfService` | `boolean` | ☐ | | If true; then the year-end statements for employments of which the employee has access to the employee self service module will be included in the response. If false; this specific group will be excluded. |
| `payrollAdministrationId` | `guid` | ☑ | | The unique identifier of an administration |
| `year` | `int32` | ☑ | | The payroll year |
## Columns
The columns of the table `YearEndStatementForYearByPayrollAdministrationId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `DOCUMENT` | `byte[]` | Document | ☐ | |