RestApiModule - AnprScanner Api

Get last scanned item

Returns the last scanned number plate, with the scanned timestamp.

Authorization level

  • 30 (RestApiModuleGetData )

URL parameters

  • endcustomerId: Endcustomer Id.

  • assetId: Asset Id.

  • deviceId: Device Id of peripheral linked to the asset.

GET /endcustomers/{endcustomerId}/assets/{assetId}/restapi/hal/devices/{deviceId}/anprscanner/lastscanned

Example request:

GET /endcustomers/edfd1133-88ec-4f2d-abb8-16238c6ad926/assets/10401990013-123455789/restapi/hal/devices/anpr1/anprscanner/lastscanned HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJS...
X-API-Version: 1.0

Example response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Api-Supported-Versions: 1.0

{
  "licensePlate": "1-ABC-123",
  "country": "BE",
  "score": 80,
  "base64Image": "string (base64)",
  "timeStampUtc": "datetime (utc)",
  "context": "IN",
}
Status Codes:
Response Headers:
  • Content-Type – application/json; charset=utf-8

  • Api-Supported-Versions – supported api versions

Response JSON Object:
  • licensePlate (string) – licenseplate (max 20 chars)

  • country (string) – country of issued licenseplate (max 20 chars)

  • score (integer) – reading score indicating the quality of the image analysis (from 0 until 100)

  • base64Image (string) – base64 encoded string that can be converted to an image (max 300000 chars)

  • context (string) – custom field (max 20 chars)

Events

A webhook message is sent when a license plate is scanned.

Authorization level

  • 32 (RestApiModuleNotification )

Properties

{
   "event": {
      "methodName": "receiveInputs",
      "arguments": [{
         "anprTags": [{
            "licensePlate": "1-ABC-123",
            "country": "BE",
            "score": 80,
            "base64Image": "string (base64)",
            "timeStampUtc": "datetime (utc)",
            "context": "IN",
         }],
         "deviceId": "anpr1",
         "version": "1.0"
      }],
      "$type": 300
   },
   "moduleId": "RestApiModule1",
   "$type": 2,
   "version": 1,
   "createdUtc": "2026-11-20T10:56:56.0170712Z",
   "reportedUtc": "2026-11-20T10:56:47.056Z",
   "id": "7b1ad0e7-2759-48a4-8465-1a795f72c61c",
   "assetId": "10401990013-123004002"
}