Approval - get holiday transfer registrations

API Url

Used for loading holiday transfer registrations for approval.

GET
http://localhost:16010/ProMarkREST/rest/Approval/holiday-transfers

Permissions: user

Query parameters

FieldTypeDescription
approvalGroupoptionalString

Approval Group ID. If not defined all valid approval groups are taken by default.

approvalStatusoptionalNumber

Approval status to filter data (1: Untreated, 2: Approved, 3: Rejected). In not defined then untreated transactions are returned.

Size range: 1-3
fieldsoptionalString

List of fields to be returned in the collection. Used for limiting amount of data.(Not implemented yet)

fromoptionalDate

From requested date

tooptionalDate

To requested date

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    registrationsObject[]

Collection of holiday transfer registrations

      approvalStatusNumber

Approval status

      avatarURIoptionalString

URI used for loading employee avatar

      empIdString

Employee id

      empNameString

Employee name

      empNoString

Employee Number

      fromAccountString

From Account identifier

      fromAccountNameString

From Account name

      fromFromatString

From account unit format ("HH:MM", "HH.CC", ".1", ".2" and so on).

      fromTypeNumber

Accounts unit type. Possible values 1: hours, 2: days.

      fromValueNumber

Transferred from value

      idString

Transfer registrations identifier (used for internal purpose only)

      initialsString

Employee initials

      rejectedTextoptionalString

Rejection Text if transaction is rejected

      rejectionCodeoptionalString

Rejection code if transaction is rejected

      requestedTimeDate

Holiday transfer requested time as ISO-8601

      sortEmpNoString

Employee Number used for sorting

      toAccountoptionalString

Transferred to Account id

      toAccountNameString

Transferred to Account name

      toFormatString

To account unit format ("HH:MM", "HH.CC", ".1", ".2" and so on).

      toTypeNumber

Accounts unit type. Possible values 1: hours, 2: days.

      toValueNumber

Transferred to value

      treatedbyoptionalString

Approved/rejected by user id if approved/rejected

      treatedTimeoptionalDate

Approved/rejected time as date-time ISO-8601 if approved/rejected

      typeString

Holiday Type

      yearNumber

Holding year

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example

HTTP/1.1 200 OK
{
"response": {
"data": {
"registrations": [
{
"empNo": "HLC4",
"sortEmpNo": "!!!!!!HLC4",
"empName": "Henrik Lykke4",
"initials": "HLC",
"year": 2018,
"fromAccount": "A001",
"fromAccountName": "Holidays",
"fromValue": 345600,
"fromType": 2,
"fromFormat": ".2",
"toAccountName": "Transfer to next year",
"toValue": 345600,
"toType": 2,
"toFormat": ".2",
"approvalStatus": 1,
"requestedTime": "2018-04-26T11:09:14.000",
"id": "0x0000000000309281"
},
{
"empNo": "HLC4",
"sortEmpNo": "!!!!!!HLC4",
"empName": "Henrik Lykke4",
"initials": "HLC",
"year": 2018,
"fromAccount": "A001",
"fromAccountName": "Holidays",
"fromValue": 345600,
"fromType": 2,
"fromFormat": ".2",
"toAccount": "S0200",
"toAccountName": "Hours bank total",
"toValue": 108000,
"toType": 1,
"toFormat": "HH:MM",
"approvalStatus": 1,
"requestedTime": "2018-04-26T11:12:39.000",
"id": "0x0000000000309285"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}