Payroll - Get period profile details

API Url

Use it to return details for a period profile

GET
http://localhost:16010/ProMarkREST/web/Payroll/periods/{id}/details

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
periodIdString

Period profile id.

Success 200

FieldTypeDescription
    periodsObject[]
      closeObject
        allowedoptionalBoolean

True if its allowed to close period.

        completedoptionalDateTime

Timestamp of when the preliminary report was completed.

        requestedoptionalDateTime

Timestamp of when the preliminary report was requested.

        startedoptionalDateTime

Timestamp of when the preliminary report was started.

        viewReportString

True if it's possible to view preliminary report.

      descriptionString

Description of the period profile.

      endDateTime

End time of the period.

      finalCloseDateTime

Timestamp of the completed closure of the period.

      finalReportObject
        allowedBoolean

True if we have one or more validated employees.

        completedoptionalDateTime

Timestamp of when the final report was completed.

        finalizedEmployeesoptionalNumber

Numbers of finalized employees.

        reportIdoptionalString

Report's id.

        requestedoptionalDateTime

Timestamp of when the final report was requested.

        startedoptionalDateTime

Timestamp of when the final report was started.

        viewReportBoolean

True if it's possible to view final report.

      firstValidationDateTime

Timestamp of the first validation on the current period profile.

      idString

Period profile id.

      numberOfEmployeesNumber

Total number of employee under the current period profile.

      preliminaryReportObject

First report to run on payroll process, but it is not mandatory.

        allowedBoolean

True if its allowed to run the preliminary report.

        completedoptionalDateTime

Timestamp of when the preliminary report was completed.

        reportIdoptionalString

Report's id.

        requestedoptionalDateTime

Timestamp of when the preliminary report was requested.

        startedoptionalDateTime

Timestamp of when the preliminary report was started.

        viewReportBoolean

True if it's possible to view preliminary report.

      stageNumber

Stage of payroll closure: 0: Not started, 1: Preliminary Report, 2: Validated with errors, 3: Validated, 4: Final Report completed, 5: Payroll transferred, 6: Period closed with errors, 7: Period closed.

      startDateTime

Start time of the period.

      statusNumber

1: Open, 2: under validation and 3: closed.

      transferToHostObject
        allowedBoolean

True if it is allowed to run Transfer to payroll.

        completedoptionalDateTime

Timestamp of when was transfer was completed.

        requestedoptionalDateTime

Timestamp of when was transfer was requested.

        startedoptionalDateTime

Timestamp of when was transfer was started.

        transferedoptionalObject

Number of records transferred

          absenceoptionalNumber

Number of transferred absence host transaction.

          attendanceoptionalNumber

Number of transferred attendance host transaction.

          dailyAbsenceoptionalNumber

Number of transactions transferred to daily absence host transaction

          dailyPayrolloptionalNumber

Number of transactions transferred to daily payroll host transaction

          payrolloptionalNumber

Number of transferred payroll host transaction.

        viewReportboolean

If true, there is numbers under transferred that can be displayed.

      validationObject
        allowedBoolean

True if its allowed to run period validation.

        completedoptionalDateTime

Timestamp of when the validation was completed.

        requestedoptionalDateTime

Timestamp of when the validatation was requested.

        startedoptionalDateTime

Timestamp of when the validation was started.

        validatedEmployeesoptionalNumber

Numbers of validated employees.

        viewReportString

True if it's possible to view validation report.

Success example:

{
"periods": [
{
"id": "PAYROLL",
"description": "Payroll profile for hourly paid",
"status": 2,
"stage": 2,
"start": "2020-03-30T00:00:00.000",
"end": "2020-04-06T00:00:00.000",
"firstValidation": "2020-04-06T09:14:44.237",
"numberOfEmployees": 22,
"preliminaryReport": {
"allowed": true,
"requested": "2020-04-06T09:14:28.329",
"started": "2020-04-06T09:14:29.891",
"completed": "2020-04-06T09:14:29.908",
"viewReport": true,
"reportId": "temp-94efcb5a33d460ab66142dd97ca8f4ab"
},
"validation": {
"allowed": true,
"requested": "2020-04-06T09:14:44.114",
"started": "2020-04-06T09:14:44.237",
"completed": "2020-04-06T09:14:44.599",
"viewReport": true
},
"finalReport": {
"allowed": false,
"viewReport": false
},
"transferToHost": {
"allowed": false,
"viewReport": false
},
"close": {
"allowed": false,
"viewReport": false
}
}
]
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.