POST Api/DriverAnalytics
Request Information
URI Parameters
None.
Body Parameters
RiderAnalyticsParameterName | Description | Type | Additional information |
---|---|---|---|
DurationType | DurationType |
None. |
|
DriverID | globally unique identifier |
None. |
|
ClientID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "DurationType": 0, "DriverID": "c6674fe0-bbd0-48ec-aa5a-29eaa19e3bac", "ClientID": "4be5c634-51a5-4f59-97b6-da507b7e32a6" }
application/xml, text/xml
Sample:
<RiderAnalyticsParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity"> <ClientID>4be5c634-51a5-4f59-97b6-da507b7e32a6</ClientID> <DriverID>c6674fe0-bbd0-48ec-aa5a-29eaa19e3bac</DriverID> <DurationType>LastMonth</DurationType> </RiderAnalyticsParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TaskAnalyticsViewModelName | Description | Type | Additional information |
---|---|---|---|
FromPeriod | date |
None. |
|
ToPeriod | date |
None. |
|
OnTimeTasks | decimal number |
None. |
|
AvgProfileRating | decimal number |
None. |
|
RatingTasksCount | decimal number |
None. |
|
TotalTasks | integer |
None. |
|
HoursWorked | decimal number |
None. |
|
AvgDeliveryTime | time interval |
None. |
|
TaskTrend | Collection of RiderCountData |
None. |
Response Formats
application/json, text/json
Sample:
{ "FromPeriod": "2025-05-20T21:18:15.3009305+04:00", "ToPeriod": "2025-05-20T21:18:15.3009305+04:00", "OnTimeTasks": 3.1, "AvgProfileRating": 4.1, "RatingTasksCount": 5.1, "TotalTasks": 6, "HoursWorked": 7.1, "AvgDeliveryTime": "00:00:00.1234567", "TaskTrend": [ { "Key": 1, "TextKey": "sample string 2", "Value": 3.1 }, { "Key": 1, "TextKey": "sample string 2", "Value": 3.1 } ] }
application/xml, text/xml
Sample:
<TaskAnalyticsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetrootDriver.Service.Models"> <AvgDeliveryTime>PT0.1234567S</AvgDeliveryTime> <AvgProfileRating>4.1</AvgProfileRating> <FromPeriod>2025-05-20T21:18:15.3009305+04:00</FromPeriod> <HoursWorked>7.1</HoursWorked> <OnTimeTasks>3.1</OnTimeTasks> <RatingTasksCount>5.1</RatingTasksCount> <TaskTrend xmlns:d2p1="http://schemas.datacontract.org/2004/07/Fleetroot.Entity"> <d2p1:RiderCountData> <d2p1:Key>1</d2p1:Key> <d2p1:TextKey>sample string 2</d2p1:TextKey> <d2p1:Value>3.1</d2p1:Value> </d2p1:RiderCountData> <d2p1:RiderCountData> <d2p1:Key>1</d2p1:Key> <d2p1:TextKey>sample string 2</d2p1:TextKey> <d2p1:Value>3.1</d2p1:Value> </d2p1:RiderCountData> </TaskTrend> <ToPeriod>2025-05-20T21:18:15.3009305+04:00</ToPeriod> <TotalTasks>6</TotalTasks> </TaskAnalyticsViewModel>