GET api/DeliveryAgent/Transaction/GetLatestOnlineOfflineSessionWiseTripDtls?DeliveryAgentID={DeliveryAgentID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DeliveryAgentID

string

Required

Body Parameters

None.

Response Information

Resource Description

OnlineOfflineSessionWiseTripDtlsModel
NameDescriptionTypeAdditional information
SessionID

integer

None.

DeliveryAgentID

string

None.

SessionStartDate

date

None.

SessionEndDate

date

None.

TotalOnlineDurationInSec

integer

None.

TotalEngagementDurationInSec

integer

None.

TripsDtlsList

Collection of TripDtlsModel

None.

Response Formats

application/json, text/json

Sample:
{
  "SessionID": 1,
  "DeliveryAgentID": "sample string 2",
  "SessionStartDate": "2025-12-07T09:56:13.4785932+05:30",
  "SessionEndDate": "2025-12-07T09:56:13.4785932+05:30",
  "TotalOnlineDurationInSec": 4,
  "TotalEngagementDurationInSec": 5,
  "TripsDtlsList": [
    {
      "TripID": "sample string 1",
      "InHouseTrip": true,
      "DeliveryAgentID": "sample string 3",
      "DeliveryAgentName": "sample string 4",
      "TripStartDate": "2025-12-07T09:56:13.4785932+05:30",
      "TripEndDate": "2025-12-07T09:56:13.4785932+05:30",
      "PickupDistance": 5.1,
      "PickupEarning": 6.0,
      "DeliveryDistance": 7.1,
      "DeliveryEarning": 8.0,
      "TotalDistance": 9.1,
      "TaxPercent": 1,
      "TaxAmt": 1.0,
      "SurgeCharge": 10.0,
      "TotalEarning": 11.0,
      "TotalTripEarning": 12.0,
      "ReferralQuestIncentiveAmt": 1.0,
      "RPBSEarning": 1.0,
      "IsTripCompleted": true,
      "IsTripCancelled": true,
      "TotalPicks": 15,
      "TotalDrops": 16,
      "TotalTripDurationInSec": 17,
      "OrdersDtlsList": [
        {
          "OrderID": "sample string 1",
          "IsPickCancelled": true,
          "PickCancellationReason": "sample string 3",
          "IsDropCancelled": true,
          "DropCancellationReason": "sample string 5",
          "RestaurantName": "sample string 6",
          "RestaurantID": "sample string 7",
          "InHouseDelivery": true
        },
        {
          "OrderID": "sample string 1",
          "IsPickCancelled": true,
          "PickCancellationReason": "sample string 3",
          "IsDropCancelled": true,
          "DropCancellationReason": "sample string 5",
          "RestaurantName": "sample string 6",
          "RestaurantID": "sample string 7",
          "InHouseDelivery": true
        }
      ]
    },
    {
      "TripID": "sample string 1",
      "InHouseTrip": true,
      "DeliveryAgentID": "sample string 3",
      "DeliveryAgentName": "sample string 4",
      "TripStartDate": "2025-12-07T09:56:13.4785932+05:30",
      "TripEndDate": "2025-12-07T09:56:13.4785932+05:30",
      "PickupDistance": 5.1,
      "PickupEarning": 6.0,
      "DeliveryDistance": 7.1,
      "DeliveryEarning": 8.0,
      "TotalDistance": 9.1,
      "TaxPercent": 1,
      "TaxAmt": 1.0,
      "SurgeCharge": 10.0,
      "TotalEarning": 11.0,
      "TotalTripEarning": 12.0,
      "ReferralQuestIncentiveAmt": 1.0,
      "RPBSEarning": 1.0,
      "IsTripCompleted": true,
      "IsTripCancelled": true,
      "TotalPicks": 15,
      "TotalDrops": 16,
      "TotalTripDurationInSec": 17,
      "OrdersDtlsList": [
        {
          "OrderID": "sample string 1",
          "IsPickCancelled": true,
          "PickCancellationReason": "sample string 3",
          "IsDropCancelled": true,
          "DropCancellationReason": "sample string 5",
          "RestaurantName": "sample string 6",
          "RestaurantID": "sample string 7",
          "InHouseDelivery": true
        },
        {
          "OrderID": "sample string 1",
          "IsPickCancelled": true,
          "PickCancellationReason": "sample string 3",
          "IsDropCancelled": true,
          "DropCancellationReason": "sample string 5",
          "RestaurantName": "sample string 6",
          "RestaurantID": "sample string 7",
          "InHouseDelivery": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<OnlineOfflineSessionWiseTripDtlsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryAgent.Operations.CustomModels">
  <DeliveryAgentID>sample string 2</DeliveryAgentID>
  <SessionEndDate>2025-12-07T09:56:13.4785932+05:30</SessionEndDate>
  <SessionID>1</SessionID>
  <SessionStartDate>2025-12-07T09:56:13.4785932+05:30</SessionStartDate>
  <TotalEngagementDurationInSec>5</TotalEngagementDurationInSec>
  <TotalOnlineDurationInSec>4</TotalOnlineDurationInSec>
  <TripsDtlsList>
    <TripDtlsModel>
      <DeliveryAgentID>sample string 3</DeliveryAgentID>
      <DeliveryAgentName>sample string 4</DeliveryAgentName>
      <DeliveryDistance>7.1</DeliveryDistance>
      <DeliveryEarning>8</DeliveryEarning>
      <InHouseTrip>true</InHouseTrip>
      <IsTripCancelled>true</IsTripCancelled>
      <IsTripCompleted>true</IsTripCompleted>
      <OrdersDtlsList>
        <OrderDtlsForTripDtlsModel>
          <DropCancellationReason>sample string 5</DropCancellationReason>
          <InHouseDelivery>true</InHouseDelivery>
          <IsDropCancelled>true</IsDropCancelled>
          <IsPickCancelled>true</IsPickCancelled>
          <OrderID>sample string 1</OrderID>
          <PickCancellationReason>sample string 3</PickCancellationReason>
          <RestaurantID>sample string 7</RestaurantID>
          <RestaurantName>sample string 6</RestaurantName>
        </OrderDtlsForTripDtlsModel>
        <OrderDtlsForTripDtlsModel>
          <DropCancellationReason>sample string 5</DropCancellationReason>
          <InHouseDelivery>true</InHouseDelivery>
          <IsDropCancelled>true</IsDropCancelled>
          <IsPickCancelled>true</IsPickCancelled>
          <OrderID>sample string 1</OrderID>
          <PickCancellationReason>sample string 3</PickCancellationReason>
          <RestaurantID>sample string 7</RestaurantID>
          <RestaurantName>sample string 6</RestaurantName>
        </OrderDtlsForTripDtlsModel>
      </OrdersDtlsList>
      <PickupDistance>5.1</PickupDistance>
      <PickupEarning>6</PickupEarning>
      <RPBSEarning>1</RPBSEarning>
      <ReferralQuestIncentiveAmt>1</ReferralQuestIncentiveAmt>
      <SurgeCharge>10</SurgeCharge>
      <TaxAmt>1</TaxAmt>
      <TaxPercent>1</TaxPercent>
      <TotalDistance>9.1</TotalDistance>
      <TotalDrops>16</TotalDrops>
      <TotalEarning>11</TotalEarning>
      <TotalPicks>15</TotalPicks>
      <TotalTripDurationInSec>17</TotalTripDurationInSec>
      <TotalTripEarning>12</TotalTripEarning>
      <TripEndDate>2025-12-07T09:56:13.4785932+05:30</TripEndDate>
      <TripID>sample string 1</TripID>
      <TripStartDate>2025-12-07T09:56:13.4785932+05:30</TripStartDate>
    </TripDtlsModel>
    <TripDtlsModel>
      <DeliveryAgentID>sample string 3</DeliveryAgentID>
      <DeliveryAgentName>sample string 4</DeliveryAgentName>
      <DeliveryDistance>7.1</DeliveryDistance>
      <DeliveryEarning>8</DeliveryEarning>
      <InHouseTrip>true</InHouseTrip>
      <IsTripCancelled>true</IsTripCancelled>
      <IsTripCompleted>true</IsTripCompleted>
      <OrdersDtlsList>
        <OrderDtlsForTripDtlsModel>
          <DropCancellationReason>sample string 5</DropCancellationReason>
          <InHouseDelivery>true</InHouseDelivery>
          <IsDropCancelled>true</IsDropCancelled>
          <IsPickCancelled>true</IsPickCancelled>
          <OrderID>sample string 1</OrderID>
          <PickCancellationReason>sample string 3</PickCancellationReason>
          <RestaurantID>sample string 7</RestaurantID>
          <RestaurantName>sample string 6</RestaurantName>
        </OrderDtlsForTripDtlsModel>
        <OrderDtlsForTripDtlsModel>
          <DropCancellationReason>sample string 5</DropCancellationReason>
          <InHouseDelivery>true</InHouseDelivery>
          <IsDropCancelled>true</IsDropCancelled>
          <IsPickCancelled>true</IsPickCancelled>
          <OrderID>sample string 1</OrderID>
          <PickCancellationReason>sample string 3</PickCancellationReason>
          <RestaurantID>sample string 7</RestaurantID>
          <RestaurantName>sample string 6</RestaurantName>
        </OrderDtlsForTripDtlsModel>
      </OrdersDtlsList>
      <PickupDistance>5.1</PickupDistance>
      <PickupEarning>6</PickupEarning>
      <RPBSEarning>1</RPBSEarning>
      <ReferralQuestIncentiveAmt>1</ReferralQuestIncentiveAmt>
      <SurgeCharge>10</SurgeCharge>
      <TaxAmt>1</TaxAmt>
      <TaxPercent>1</TaxPercent>
      <TotalDistance>9.1</TotalDistance>
      <TotalDrops>16</TotalDrops>
      <TotalEarning>11</TotalEarning>
      <TotalPicks>15</TotalPicks>
      <TotalTripDurationInSec>17</TotalTripDurationInSec>
      <TotalTripEarning>12</TotalTripEarning>
      <TripEndDate>2025-12-07T09:56:13.4785932+05:30</TripEndDate>
      <TripID>sample string 1</TripID>
      <TripStartDate>2025-12-07T09:56:13.4785932+05:30</TripStartDate>
    </TripDtlsModel>
  </TripsDtlsList>
</OnlineOfflineSessionWiseTripDtlsModel>