General - Create a transaction report
API Url
Use it for creating a ".txt" transaction report.
POST
http://localhost:16010/ProMarkREST/rest/General/employees/{id}/transaction-reports
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | Number | The employee's unique identifier. |
Query parameters
| Field | Type | Description |
|---|---|---|
fromoptional | Date | First day of the desired time interval (default is 1 week back). |
tooptional | Date | Last day of the desired time interval (default is today). |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| fileName | String | The unique report filename. This is used to download the actual report. |
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": {"fileName": "kvit-cfcfd4c004708f9d3714d63a70ac25da.txt"},"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. |