This API will be used to get last seen of the asset


Method: POST
URL: http://apials.averos.com

Path: /api/v1/CompanyAssets/GetLastSeen
Parameters: none

Header:

Content-Type: application/json

APIKey: <insert your api-key here>

CompanyId: <insert your company ID here>

Body:

JSON
{
    "SerialNumbers":
        [
            "<Tag Serial Number>",
            "<Tag Serial Number>"
        ]

}


Where:

Tag Serial Number : Serial Number of the Tag 

APIKey: Customer APIs access Key

CompanyId: Customer account ID


Response: 


Status: 200


1. Authorization error (Refer Response Codes)

2. Parameter error (Refer Response Codes)

3. Unknown error (Refer Response Codes)

4. Request Successful

Body

JSON
{
  "ResponseCode": 5,
  "Message": "Success",
  "Data": [
    {
      "SerialNumber": "<Tag Serial Number>",
      "RegionId": "<ID of Region where Tag is located>",
      "BuildingId": "<ID of building where Tag is located>",
      "FloorId": "<ID of floor where Tag is located>",
      "UTMLocation": {
        "X": 123.456789,
        "Y": 123.456789
      },
      "GPSLocation": {
        "lat": 12.34567,
        "long": 12.34567
      },
      "LastSeen": "YYYY-MM-DDTHH:MM:SS"
    }
  ]
}