Payroll - Get periods
API Url
Use it to return a lookup for peiods
http://localhost:16010/ProMarkREST/web/Payroll/periods
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Query parameters
| Field | Type | Description |
|---|---|---|
| allowRun | Boolean | If true only return periods where it is allowed to run next step If stage is not defined, the parameter is ignored. |
| stage | Number | Stage of payroll closure: |
Success 200
| Field | Type | Description |
|---|---|---|
| periods | Object[] | |
| description | String | Description of the period profile. |
| end | DateTime | End time of the period. |
| finalClose | DateTime | Time of the completed closure of the period. |
| firstValidation | DateTime | Time of the first validation on the current period profile. |
| id | String | Period profile id. |
| numberOfEmployees | Number | Total number of employee under the current period profile. |
| stage | Number | Stage of payroll closure: |
| start | DateTime | Start time of the period. |
| status | Number |
|
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |