ProJect - Get project piecework rates
API Url
Used for loading piecework rates for a project.
GET
http://localhost:16010/ProMarkREST/rest/ProJect/projects/{projectId}/piecework-rates
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. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| pieceworkRates | Object[] | Collection of piecework. |
| activityDesc | String | Activity description. |
| activityId | String | Activity Id. |
advanceoptional | Number | Piecework advance rate. |
completeoptional | Number | Piecework complete rate. |
| from | Date | From date. |
| pieceworkDesc | String | Piecework description. |
| pieceworkId | String | Piecework ID. |
tooptional | Date | To date. |
uptakeoptional | Number | Piecework uptake rate. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"pieceworkRates": [{"pieceworkId": "1","pieceworkDesc": "ProMark Piecework","activityId": "WLD","activityDesc": "Welder","from": "2018-06-18","advance": 160},{"pieceworkId": "100","pieceworkDesc": "Secondary rates","activityId": "OPT","activityDesc": "Optional","from": "2018-11-01","to": "2018-11-30","advance": 100}]},"errorCode": 0,"errorMessage": ""}}
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. |