Summary:

  • Query daily mileage report

Version:

No. Editor Edit date Revision date
2.0.0 admin 2026-03-02

Request URL:

Request mode:

  • POST

Request header:

Parameter Required field Data type Explanation
Content-Type yes string application/json

Request parameter:

Parameter Required field Data type Explanation
FTokenID yes string token
FAction yes string QueryReportDayMileageList
FVehicleGUIDs yes string Unique identification of assets , multiple separated by ‘,’
FStartTime yes datetime Start time(UTC)
FEndTime yes datetime End time(UTC)
FPageSize yes int Page Size.Supports paginated queries, allowing you to specify the number of records returned per page. For example, 50 or 100 records per page.
FPageIndex yes int Page Index.To query which page to start from, for example, page 1; we can find the total number of records by checking the FTotalCount field in the API response records. Dividing FTotalCount by Page Size gives the total number of pages.

Response example:

Correct response:

{
    "Result": 200,
    "Message": "check token success",
    "FObject": {
        "Table": [
            {
                "FTotalCount": 2
            }
        ],
        "Table1": [
            {
                "FGUID": "ce716b7c-c778-4a48-b4f8-008479b79a94",
                "FVehicleName": "14141414",
                "FDate": "2026-02-25",
                "FTotalMileage": 0,
                "FStartMileage": 0,
                "FEndMileage": 0,
                "FAssetID": "2525252",
                "RowNo": 1
            },
            {
                "FGUID": "f767264b-6178-482c-b566-1250da6fe6b2",
                "FVehicleName": "854565265246",
                "FDate": "2026-02-25",
                "FTotalMileage": 0,
                "FStartMileage": 0,
                "FEndMileage": 0,
                "FAssetID": "15228655",
                "RowNo": 2
            }
        ]
    }
}

Error response:

{
    "Result": 102,
    "Message": "Action is error",
    "FObject": []
}

Return parameter description:

Parameter Data type Explanation
FGUID String Unique identification of record
FVehicleName String vehicle name
FDate String date
FTotalMileage String total mileage,unit: km
FStartMileage int start mileage,unit: km
FEndMileage int end mileage,unit: km
FAssetID String device id

Response example:

  • 105:System exception
  • 104:Token error or expire
  • 102:Parameter error

Examples:

Java:

String result = "";
String url = "http://cloud.assetscontrols.com:8092/OpenApi/Report";
String body = "{\n\t\"FAction\": \"QueryReportDayMileageList\",\n\t\"FVehicleGUIDs\": \"a524d10f-c543-485c-ad92-381eeb739aaf\",\n\t\"FStartTime\": \"2022-04-05 16:00:00\",\n\t\"FEndTime\": \"2022-05-06 15:59:59\",\n\t\"FPageSize\": 50,\n\t\"FPageIndex\": 1,\n\t\"FTokenID\": \"3acef045-d302-4032-b40a-d9ee6c1519cd\"}";
URL realUrl = new URL(url);
URLConnection conn = realUrl.openConnection();
conn.setRequestProperty("accept", "*/*");
conn.setRequestProperty("connection", "keep-Alive");
conn.setRequestProperty("Content-Type", "application/json");
conn.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
conn.setRequestProperty("method", "post");
conn.setDoOutput(true);
conn.setDoInput(true);
PrintWriter pw = new PrintWriter(conn.getOutputStream());
pw.print(body);
pw.flush();
BufferedReader bufReader = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = bufReader.readLine()) != null) {
     result += line;
 }
return result;

C#(.NET):

string url = "http://cloud.assetscontrols.com:8092/OpenApi/Report";
string body = "{\n\t\"FAction\": \"QueryReportDayMileageList\",\n\t\"FVehicleGUIDs\": \"a524d10f-c543-485c-ad92-381eeb739aaf\",\n\t\"FStartTime\": \"2022-04-05 16:00:00\",\n\t\"FEndTime\": \"2022-05-06 15:59:59\",\n\t\"FPageSize\": 50,\n\t\"FPageIndex\": 1,\n\t\"FTokenID\": \"3acef045-d302-4032-b40a-d9ee6c1519cd\"}";
Encoding encoding = Encoding.UTF8;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = "post";
request.Accept = "*/*";
request.ContentType = "application/json";
request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
byte[] buffer = encoding.GetBytes(body);
request.ContentLength = buffer.Length;
request.GetRequestStream().Write(buffer, 0, buffer.Length);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8))
{
    return reader.ReadToEnd();
}

Python:

 url = 'http://cloud.assetscontrols.com:8092/OpenApi/Report'
      data = { "FAction": "QueryReportDayMileageList", "FVehicleGUIDs": "a524d10f-c543-485c-ad92-381eeb739aaf", "FStartTime": "2022-04-05 16:00:00", "FEndTime": "2022-05-06 15:59:59", "FPageSize": 50, "FPageIndex": 1, "FTokenID": "3acef045-d302-4032-b40a-d9ee6c1519cd"  }
      data = parse.urlencode(data).encode('utf-8')
      headers = {
       'User-Agent': r'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) '
                     r'Chrome/45.0.2454.85 Safari/537.36 115Browser/6.0.3',
       'Connection': 'keep-alive'
       }
      req = request.Request(url, headers=headers, data=data)  
      page = request.urlopen(req).read()
      page = page.decode('utf-8')
      # json_array = json.loads(page)
      return page;
文档更新时间: 2026-03-02 16:46   作者:刘家帅