ProRoster - Get calculated cost for employees in a plan

API Url

Used to get the calculated cost for all accounts in the Payroll code profile attached to each employee in a plan

GET
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{id}/cost

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The plan Id.

Query parameters

FieldTypeDescription
empIdsoptionalString

Comma seperated list of employee ids. if not sent the employees of the current plans are loaded.

fromoptionalDate

If not sent it is set to the beginning of the current week.

tooptionalDate

If not sent it is set to the end of the current week.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

    costObject[]
      accountIdNumber

The account Id that the cost is calculated for.

      costBoolean

Calculated cost.

      dateString

Date of the calculated cost.

      empIdString

Employee Id.

      shiftSeqString

Shift sequence that the calculated cost relates to.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example with a single shift:

HTTP/1.1 200 OK
{
"response": {
"data": {
"accountBalances": [
{
"empId": "1000",
"date": "20-05-2020",
"cost": 50,
"shiftSeq": 0,
"accountId": "T001",
}
]
},
"erorCode": 0,
"errorMessage": ""
}
}