Terminal - Download transaction list

API Url

Used for downloading transaction list in the specified format.

GET
http://localhost:16010/ProMarkREST/rest/Terminal/files/{id}

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
idString

The file identifier (name).

Query parameters

FieldTypeDescription
formatoptionalString

The terminal list format. For now it's only "PDF"

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    fileContentString

The transaction list content as BASE64-ENCODED.

    fileNameString

Name of the downloaded file.

    fileTypeString

Format of the downloaded file.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

HTTP/1.1 404 Not found
{
"response": {
"data": {
"fileType": "",
"fileName": "",
"fileContent: ""
},
"errorCode": 285,
"errorMessage": "The transaction list does not exist."
}
}