Terminal - Web terminal heartbeat

API Url

Heartbeat ping for web terminals. Validates the device ID against the TermDevice record for the authenticated session user. Stores the ping timestamp and returns current terminal settings.

PUT
http://localhost:16010/ProMarkRESTweb/Terminal/heartbeat

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.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    deviceIdString

Device identifier

    terminalIdString

Terminal identifier

    typeoptionalString

Terminal type (e.g. "Web Terminal")

Request example:

{
"request": {
"data": {
"heartbeat": [
{
"terminalId": 1301,
"deviceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"type": "Web Terminal"
}
]
}
}
}

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    terminalSettingsObject[]

Collection of terminal settings.

      descriptionString

Terminal Settings description

      disableEmpNoBoolean

Disable employee no.

      logLevelNumber

Terminal Settings log level

      oneClickSelectionBoolean

One click selection

      sendAsReaderBoolean

Send as reader

      terminalIdString

Terminal identifier

      terminalReadersObject[]

Reader configurations

        conversionNumber

Conversion (0=None, 1=DecToHex, 2=HexToDec)

        lengthNumber

Length to read

        paddedLengthNumber

Target length after padding

        startPositionNumber

Start position in input

        transformationNumber

Transformation (0=None, 1=PadStart, 2=UnpadStart, 3=PadEnd, 4=UnpadEnd)

      terminalSettingsIdString

Terminal Settings identifier

  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": {
"terminalSettings": [
{
"terminalId": "1301",
"terminalSettingsId": "WEB01",
"description": "Web Terminal Settings",
"logLevel": 0,
"disableEmpNo": false,
"sendAsReader": false,
"oneClickSelection": false,
"terminalReaders": [
{
"startPosition": 0,
"length": 8,
"conversion": 0,
"transformation": 0,
"paddedLength": 0
}
]
}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.