Retrieve counts from a group of devices within a specified time range.

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

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

Body Required

requestBody description

  • Token string

    Your custom security token.

  • CompanyName string

    The name of the company.

  • ShopGroupName string

    The name of the shop group as defined in the dashboard.

  • DateFrom datetime

    The beginning date of counts.

  • DateTo datetime

    The endind date of counts.

  • In bool

    Defines whether to filter entrances or exits.

Responses

  • 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
  • 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.

POST /f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetCountsByShopGroupAndDatePublic
curl \
 -X POST https://opticounter.pl/f642d910-17db-4198-a62-302f9348f8cd/Service.asmx/GetCountsByShopGroupAndDatePublic \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Token=asgfoubge&CompanyName=Optiguard&ShopGroupName=Warszawa&DateFrom=2022-10-25&DateTo=2022-10-28'
Request example
{
  "Token": "asgfoubge",
  "CompanyName": "Optiguard",
  "ShopGroupName": "Warszawa",
  "DateFrom": "2022-10-25",
  "DateTo": "2022-10-28"
}
Request examples
{
  "Token": "asdibaegse",
  "CompanyName": "Optiguard",
  "ShopGroupName": "Warszawa",
  "DateFrom": "string",
  "DateTo": "string",
  "In": true
}
Response examples (400)
{
  "status": 42
}
Response examples (400)
{
  "status": 42
}
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"
}