POST Api/DriverAnalytics

Request Information

URI Parameters

None.

Body Parameters

RiderAnalyticsParameter
NameDescriptionTypeAdditional information
DurationType

DurationType

None.

FromDate

date

None.

ToDate

date

None.

DriverID

globally unique identifier

None.

ClientID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "DurationType": 0,
  "FromDate": "2026-05-09T04:42:26.6694647+04:00",
  "ToDate": "2026-05-09T04:42:26.6694647+04:00",
  "DriverID": "80ee4412-72b2-4806-ad0e-836e6badb6ab",
  "ClientID": "c156f834-951c-4796-9a29-7766b6c62090"
}

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>c156f834-951c-4796-9a29-7766b6c62090</ClientID>
  <DriverID>80ee4412-72b2-4806-ad0e-836e6badb6ab</DriverID>
  <DurationType>Today</DurationType>
  <FromDate>2026-05-09T04:42:26.6694647+04:00</FromDate>
  <ToDate>2026-05-09T04:42:26.6694647+04:00</ToDate>
</RiderAnalyticsParameter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TaskAnalyticsViewModel
NameDescriptionTypeAdditional 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.

TasksCompleted

integer

None.

TotalTaskValue

decimal number

None.

CardCollected

decimal number

None.

CODCollected

decimal number

None.

CODSettled

decimal number

None.

CODPending

decimal number

None.

DistanceTravelled

decimal number

None.

TotalKmDriven

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "FromPeriod": "2026-05-09T04:42:26.6850896+04:00",
  "ToPeriod": "2026-05-09T04:42:26.6850896+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
    }
  ],
  "TasksCompleted": 9,
  "TotalTaskValue": 10.1,
  "CardCollected": 11.1,
  "CODCollected": 12.1,
  "CODSettled": 13.1,
  "CODPending": 14.1,
  "DistanceTravelled": 15.1,
  "TotalKmDriven": 16.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>
  <CODCollected>12.1</CODCollected>
  <CODPending>14.1</CODPending>
  <CODSettled>13.1</CODSettled>
  <CardCollected>11.1</CardCollected>
  <DistanceTravelled>15.1</DistanceTravelled>
  <FromPeriod>2026-05-09T04:42:26.6850896+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>
  <TasksCompleted>9</TasksCompleted>
  <ToPeriod>2026-05-09T04:42:26.6850896+04:00</ToPeriod>
  <TotalKmDriven>16.1</TotalKmDriven>
  <TotalTaskValue>10.1</TotalTaskValue>
  <TotalTasks>6</TotalTasks>
</TaskAnalyticsViewModel>