---
title: "ComparePayrollPeriodsByPayrollAdministrationId (Loket.nl REST)"
description: "Payroll Period Comparison by Payroll Administration ID"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.PayrollResults.ComparePayrollPeriodsByPayrollAdministrationId
original: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.PayrollResults.ComparePayrollPeriodsByPayrollAdministrationId
updated: 2024-06-10T18:51:26Z
license: https://documentation.invantive.eu/en/
---

# ComparePayrollPeriodsByPayrollAdministrationId: Loket.nl REST Payroll Period Comparison by Payroll Administration ID

`read only` `REST`

- Catalog: `LoketNlRest`
- Schema: `PayrollResults`
- Label: Payroll Period Comparison by Payroll Administration ID

Get the results of the given payroll period and the one before
__Activity name :__ GetComparePayrollPeriodsByPayrollAdministrationId  

Returns the results of given payroll period and the one before so a comparison can be made. Currently only the components 260, 495, 257 are returned 


Can only retrieve data.

## API Source

- Endpoint: `/providers/employers/payrolladministrations/{payrollAdministrationId}/payrollperiods/compare`
- Operation: `get /providers/employers/payrolladministrations/{payrollAdministrationId}/payrollperiods/compare`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `payrollAdministrationId` | `` | [x] |  | The unique identifier of an administration |
| `payrollPeriodId` | `` | [x] |  | The unique identifier of the payroll period |

## Table Columns

The columns of the table `ComparePayrollPeriodsByPayrollAdministrationId` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `numberOfPayrolledEmployments` | `int32` | itgen_loketnl_numberofpayrolledemployments | [ ] |  | The number of employments that where payrolled |
| `payrollPeriod_periodEndDate` | `datetime` | Payroll Period End Date | [ ] |  | The last day of the period for which the tax return message was created |
| `payrollPeriod_periodNumber` | `int32` | Payroll Period Number | [ ] |  | The period number of the payroll period the record relates to |
| `payrollPeriod_periodStartDate` | `datetime` | Payroll Period Start Date | [ ] |  | The first day of the period for which the tax return message was created |
| `payrollPeriod_testYear` | `char` | Payroll Period Test Year | [ ] |  | Indicates whether the payroll periode is part of a test year.  In Loket it is possible to run a year of a payrolladministration as a so-called test year.  This is typically done to test the configuration of a new payroll administration, by running payrollruns within the context of a test year.  Please note: if the payroll run belongs to a test year the results of the run should not be regarded as actual data but as test data. |
| `payrollPeriod_year` | `int32` | Payroll Period Year | [ ] |  | The year of the payroll period the record relates to |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Loket.nl REST](/en/release-notes/drivers/loket-nl-rest)

