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

FieldTypeDescription
idNumber

The employee's unique identifier.

Query parameters

FieldTypeDescription
fromoptionalDate

First day of the desired time interval (default is 1 week back).

tooptionalDate

Last day of the desired time interval (default is today).

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    fileNameString

The unique report filename. This is used to download the actual report.

  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": {
"fileName": "kvit-cfcfd4c004708f9d3714d63a70ac25da.txt"
},
"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.