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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DeliveryAgentID

string

Required

Body Parameters

None.

Response Information

Resource Description

TripDtlsModel
NameDescriptionTypeAdditional information
TripID

string

None.

InHouseTrip

boolean

None.

DeliveryAgentID

string

None.

DeliveryAgentName

string

None.

TripStartDate

date

None.

TripEndDate

date

None.

PickupDistance

decimal number

None.

PickupEarning

decimal number

None.

DeliveryDistance

decimal number

None.

DeliveryEarning

decimal number

None.

TotalDistance

decimal number

None.

TaxPercent

integer

None.

TaxAmt

decimal number

None.

SurgeCharge

decimal number

None.

TotalEarning

decimal number

None.

TotalTripEarning

decimal number

None.

ReferralQuestIncentiveAmt

decimal number

None.

RPBSEarning

decimal number

None.

IsTripCompleted

boolean

None.

IsTripCancelled

boolean

None.

TotalPicks

integer

None.

TotalDrops

integer

None.

TotalTripDurationInSec

integer

None.

OrdersDtlsList

Collection of OrderDtlsForTripDtlsModel

None.

Response Formats

application/json, text/json

Sample:
{
  "TripID": "sample string 1",
  "InHouseTrip": true,
  "DeliveryAgentID": "sample string 3",
  "DeliveryAgentName": "sample string 4",
  "TripStartDate": "2025-12-07T09:56:00.3692264+05:30",
  "TripEndDate": "2025-12-07T09:56:00.3692264+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:
<TripDtlsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DeliveryAgent.Operations.CustomModels">
  <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:00.3692264+05:30</TripEndDate>
  <TripID>sample string 1</TripID>
  <TripStartDate>2025-12-07T09:56:00.3692264+05:30</TripStartDate>
</TripDtlsModel>