General - Get project distribution

API Url

Used for loading project distribution account postings

GET
http://localhost:16010/ProMarkREST/rest/ProJect/project-distributions

Permissions: user

Query parameters

FieldTypeDescription
activityIdoptionalString

Activity ID.

filteroptionalString

Employee filter fields, values and conditions, in a json format.

fromoptionalDate

Account posting from this Date

pieceworkIdoptionalString

Piecework ID.

projectIdoptionalString

Project ID.

tooptionalDate

Account posting till this Date

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    projectDistributionsObject[]

Collection of project distributions.

      descriptionString

Project distribution description.

      empIdString

Employee id.

      formatString

Account format.

      idString

Project distribution id.

      unitString

Accounts unit (1: hours, 2: days, 3: pieces).

      valueNumber

Project distribution value.

  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": {
"projectDistributions": [
{
"id": "NORM",
"description": "Normal time",
"format": 101,
"value": 36000.0,
"unit": 1,
"empId": "1251"
},
{
"id": "OVERI",
"description": "Overtid I",
"format": 101,
"value": 10800.0,
"unit": 1,
"empId": "1251"
},
{
"id": "OVERII",
"description": "Overtid II",
"format": 101,
"unit": 1,
"empId": "1251"
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.