Retrieve information about all inactive counters in a defined amount of hours

POST /f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetLifeSignalInactive

This endpoint allows the user to see which devices have not communicated with the server, lacking either internet or a power source.

Body Required

requestBody description

  • CompanyName string

    The name of the company.

  • InactiveForHours number(float)

    The amount of hours the devices has not responded till now.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • Id integer

      The ID of the device.

    • SerialNumber string

      The serial number of the device.

    • Name string

      The serial number of the device.

    • LastActivity string(date-time)

      DateTime stamp of the last communication between the device and server.

    • SID string

      The store ID.

    • ShopName string

      The name of the store.

    • Address string

      The address of the store.

    • City string

      The name of the city.

    • CompanyId integer

      The ID of the company.

  • 400

    Problem

    Hide response attributes Show response attributes object
    • status integer

      The HTTP status code.

      Minimum value is 400, maximum value is 599.

    • Additional properties are allowed
POST /f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetLifeSignalInactive
curl \
 -X POST https://opticounter.pl/f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetLifeSignalInactive \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'CompanyName=Optiguard&InactiveForHours=5'
Request examples
{
  "CompanyName": "Optiguard",
  "InactiveForHours": 5
}
{
  "stringProperty": "checkmark"
}
Request examples
{
  "CompanyName": "Optiguard",
  "InactiveForHours": 42.0
}
Response examples (200)
{
  "Id": 14,
  "SerialNumber": "b23hfd23",
  "Name": "Licznik Wejście",
  "LastActivity": "2023-05-04T09:42:00+00:00",
  "SID": "S094",
  "ShopName": "Biedronka",
  "Address": "ul. Przykładowa 15",
  "City": "Warszawa",
  "CompanyId": 14
}
Response examples (200)
{
  "Id": 14,
  "SerialNumber": "b23hfd23",
  "Name": "Licznik Wejście",
  "LastActivity": "2025-05-04T09:42:00Z",
  "SID": "S094",
  "ShopName": "Biedronka",
  "Address": "ul. Przykładowa 15",
  "City": "Warszawa",
  "CompanyId": 14
}
Response examples (400)
{
  "status": 42
}
Response examples (400)
{
  "status": 42
}