Retrieve filterd counts from all devices for a company within a specified time range.

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

This endpoint returns a list of all events from all devices for a company within a specified time range.

Body Required

requestBody description

  • Token string

    Your custom security token.

  • CompanyName string

    The name of the company.

  • SerialNumber string

    The unique serial number of the requested device.

  • DateFrom datetime

    The beginning date of counts.

  • DateTo datetime

    The endind date of counts.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • DateTime string(date-time)

      DateTime stamp of event.

    • StoreName string

      Name of the store where the event happened.

    • Amount int

      Defines the current amount of customers inside a store.

  • 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/GetCountsByCompanyAndDatePublic
curl \
 -X POST https://opticounter.pl/f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetCountsByCompanyAndDatePublic \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Token=asgfoubge&CompanyName=Optiguard&In=true&DateFrom=2022-10-25&DateTo=2022-10-28'
Request example
{
  "Token": "asgfoubge",
  "CompanyName": "Optiguard",
  "In": true,
  "DateFrom": "2022-10-25",
  "DateTo": "2022-10-28"
}
Request examples
{
  "Token": "asdibaegse",
  "CompanyName": "Optiguard",
  "SerialNumber": "b82gj28fj",
  "DateFrom": "string",
  "DateTo": "string"
}
Response examples (200)
{
  "DateTime": "2023-05-04T09:42:00+00:00",
  "StoreName": "Aleksandrowska 6-10",
  "Amount": "string"
}
Response examples (200)
{
  "DateTime": "2025-05-04T09:42:00Z",
  "StoreName": "Aleksandrowska 6-10",
  "Amount": "string"
}
Response examples (400)
{
  "status": 42
}
Response examples (400)
{
  "status": 42
}