Approval - Get pending registrations count.
API Url
Used to get approval pending transaction count for each category (Project, ProTime, ProJob, Expense and mileage, custom1 etc). It counts max upto 10 records for each of category.
http://localhost:16010/ProMarkREST/rest/Approval/pending-registrations-count
Permissions: user
Query parameters
| Field | Type | Description |
|---|---|---|
approvalGroupoptional | String | Approval group Id. (If empty check for all approval groups) |
fromoptional | Date | Start date (registration date) - not used for counting |
tooptional | Date | End date (registration date) - not used for counting |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| counts | Object[] | Collection of transation type and its pending registration count. |
| count | String | approval pending registrations count for each transaction type (max 10 for each). |
| name | String | Registration type name (system text). |
| type | String | Registration type (Custom1,ProJect,ProTime,Expense,SelfService,RejectedHigherLevel). Depends on modules installed. |
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": {"counts": [{"type": "ProJect","name": "ProJect","count": "10+"},{"type": "ProTime","name": "ProTime","count": "2"},{"type": "ProJob","name": "ProJob","count": "9"},{"type": "Expense","name": "Expense","count": ""},{"type": "RejectedHigherLevel","name": "RejectedHigherLevel","count": "3"},{"type": "Custom1","name": "Custom 1","count": "10+"}]},"errorCode": 0,"errorMessage": ""}}