GET api/General/Report/GetAllTripsReportOfDeliveryAgentByPaymentCycleID?DeliveryAgentID={DeliveryAgentID}&TripProvidedBy={TripProvidedBy}&PartnerID={PartnerID}&PaymentCycleID={PaymentCycleID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DeliveryAgentID

string

Required

TripProvidedBy

integer

Required

PartnerID

string

Required

PaymentCycleID

integer

Required

Body Parameters

None.

Response Information

Resource Description

DeliveryAgentTripsReportModel
NameDescriptionTypeAdditional information
TripsDtls

Collection of TripDtlsModel

None.

SummaryReport

TripDtlsSummaryModel

None.

TotalRecords

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "TripsDtls": [
    {
      "TripID": "sample string 1",
      "InHouseTrip": true,
      "DeliveryAgentID": "sample string 3",
      "DeliveryAgentName": "sample string 4",
      "TripStartDate": "2025-12-07T10:01:22.1073264+05:30",
      "TripEndDate": "2025-12-07T10:01:22.1073264+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-07T10:01:22.1073264+05:30",
      "TripEndDate": "2025-12-07T10:01:22.1073264+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
        }
      ]
    }
  ],
  "SummaryReport": {
    "TotalOrders": 1,
    "TotalDeliveryAgents": 2,
    "TotalTrips": 3,
    "TotalPicks": 4,
    "TotalDrops": 5,
    "TotalPickupDistance": 6.1,
    "TotalPickupEarning": 7.0,
    "TotalDeliveryDistance": 8.1,
    "TotalDeliveryEarning": 9.0,
    "TotalTripDurationInSec": 10,
    "TotalDistance": 11.1,
    "TotalTaxAmt": 12.0,
    "TotalTripEarning": 13.0,
    "ReferralQuestIncentiveAmt": 1.0,
    "SurgeIncentive": 1.0,
    "RPBSEarning": 1.0,
    "TotalEarning": 14.0,
    "PaymentCycleStartDate": "2025-12-07T10:01:22.1073264+05:30",
    "PaymentCycleEndDate": "2025-12-07T10:01:22.1073264+05:30",
    "DeliveryAgentID": "sample string 15",
    "DeliveryAgentName": "sample string 16"
  },
  "TotalRecords": 1
}

application/xml, text/xml

Sample:
<DeliveryAgentTripsReportModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/General.Operations.CustomModels">
  <SummaryReport xmlns:d2p1="http://schemas.datacontract.org/2004/07/DeliveryAgent.Operations.CustomModels">
    <d2p1:DeliveryAgentID>sample string 15</d2p1:DeliveryAgentID>
    <d2p1:DeliveryAgentName>sample string 16</d2p1:DeliveryAgentName>
    <d2p1:PaymentCycleEndDate>2025-12-07T10:01:22.1073264+05:30</d2p1:PaymentCycleEndDate>
    <d2p1:PaymentCycleStartDate>2025-12-07T10:01:22.1073264+05:30</d2p1:PaymentCycleStartDate>
    <d2p1:RPBSEarning>1</d2p1:RPBSEarning>
    <d2p1:ReferralQuestIncentiveAmt>1</d2p1:ReferralQuestIncentiveAmt>
    <d2p1:SurgeIncentive>1</d2p1:SurgeIncentive>
    <d2p1:TotalDeliveryAgents>2</d2p1:TotalDeliveryAgents>
    <d2p1:TotalDeliveryDistance>8.1</d2p1:TotalDeliveryDistance>
    <d2p1:TotalDeliveryEarning>9</d2p1:TotalDeliveryEarning>
    <d2p1:TotalDistance>11.1</d2p1:TotalDistance>
    <d2p1:TotalDrops>5</d2p1:TotalDrops>
    <d2p1:TotalEarning>14</d2p1:TotalEarning>
    <d2p1:TotalOrders>1</d2p1:TotalOrders>
    <d2p1:TotalPicks>4</d2p1:TotalPicks>
    <d2p1:TotalPickupDistance>6.1</d2p1:TotalPickupDistance>
    <d2p1:TotalPickupEarning>7</d2p1:TotalPickupEarning>
    <d2p1:TotalTaxAmt>12</d2p1:TotalTaxAmt>
    <d2p1:TotalTripDurationInSec>10</d2p1:TotalTripDurationInSec>
    <d2p1:TotalTripEarning>13</d2p1:TotalTripEarning>
    <d2p1:TotalTrips>3</d2p1:TotalTrips>
  </SummaryReport>
  <TotalRecords>1</TotalRecords>
  <TripsDtls xmlns:d2p1="http://schemas.datacontract.org/2004/07/DeliveryAgent.Operations.CustomModels">
    <d2p1:TripDtlsModel>
      <d2p1:DeliveryAgentID>sample string 3</d2p1:DeliveryAgentID>
      <d2p1:DeliveryAgentName>sample string 4</d2p1:DeliveryAgentName>
      <d2p1:DeliveryDistance>7.1</d2p1:DeliveryDistance>
      <d2p1:DeliveryEarning>8</d2p1:DeliveryEarning>
      <d2p1:InHouseTrip>true</d2p1:InHouseTrip>
      <d2p1:IsTripCancelled>true</d2p1:IsTripCancelled>
      <d2p1:IsTripCompleted>true</d2p1:IsTripCompleted>
      <d2p1:OrdersDtlsList>
        <d2p1:OrderDtlsForTripDtlsModel>
          <d2p1:DropCancellationReason>sample string 5</d2p1:DropCancellationReason>
          <d2p1:InHouseDelivery>true</d2p1:InHouseDelivery>
          <d2p1:IsDropCancelled>true</d2p1:IsDropCancelled>
          <d2p1:IsPickCancelled>true</d2p1:IsPickCancelled>
          <d2p1:OrderID>sample string 1</d2p1:OrderID>
          <d2p1:PickCancellationReason>sample string 3</d2p1:PickCancellationReason>
          <d2p1:RestaurantID>sample string 7</d2p1:RestaurantID>
          <d2p1:RestaurantName>sample string 6</d2p1:RestaurantName>
        </d2p1:OrderDtlsForTripDtlsModel>
        <d2p1:OrderDtlsForTripDtlsModel>
          <d2p1:DropCancellationReason>sample string 5</d2p1:DropCancellationReason>
          <d2p1:InHouseDelivery>true</d2p1:InHouseDelivery>
          <d2p1:IsDropCancelled>true</d2p1:IsDropCancelled>
          <d2p1:IsPickCancelled>true</d2p1:IsPickCancelled>
          <d2p1:OrderID>sample string 1</d2p1:OrderID>
          <d2p1:PickCancellationReason>sample string 3</d2p1:PickCancellationReason>
          <d2p1:RestaurantID>sample string 7</d2p1:RestaurantID>
          <d2p1:RestaurantName>sample string 6</d2p1:RestaurantName>
        </d2p1:OrderDtlsForTripDtlsModel>
      </d2p1:OrdersDtlsList>
      <d2p1:PickupDistance>5.1</d2p1:PickupDistance>
      <d2p1:PickupEarning>6</d2p1:PickupEarning>
      <d2p1:RPBSEarning>1</d2p1:RPBSEarning>
      <d2p1:ReferralQuestIncentiveAmt>1</d2p1:ReferralQuestIncentiveAmt>
      <d2p1:SurgeCharge>10</d2p1:SurgeCharge>
      <d2p1:TaxAmt>1</d2p1:TaxAmt>
      <d2p1:TaxPercent>1</d2p1:TaxPercent>
      <d2p1:TotalDistance>9.1</d2p1:TotalDistance>
      <d2p1:TotalDrops>16</d2p1:TotalDrops>
      <d2p1:TotalEarning>11</d2p1:TotalEarning>
      <d2p1:TotalPicks>15</d2p1:TotalPicks>
      <d2p1:TotalTripDurationInSec>17</d2p1:TotalTripDurationInSec>
      <d2p1:TotalTripEarning>12</d2p1:TotalTripEarning>
      <d2p1:TripEndDate>2025-12-07T10:01:22.1073264+05:30</d2p1:TripEndDate>
      <d2p1:TripID>sample string 1</d2p1:TripID>
      <d2p1:TripStartDate>2025-12-07T10:01:22.1073264+05:30</d2p1:TripStartDate>
    </d2p1:TripDtlsModel>
    <d2p1:TripDtlsModel>
      <d2p1:DeliveryAgentID>sample string 3</d2p1:DeliveryAgentID>
      <d2p1:DeliveryAgentName>sample string 4</d2p1:DeliveryAgentName>
      <d2p1:DeliveryDistance>7.1</d2p1:DeliveryDistance>
      <d2p1:DeliveryEarning>8</d2p1:DeliveryEarning>
      <d2p1:InHouseTrip>true</d2p1:InHouseTrip>
      <d2p1:IsTripCancelled>true</d2p1:IsTripCancelled>
      <d2p1:IsTripCompleted>true</d2p1:IsTripCompleted>
      <d2p1:OrdersDtlsList>
        <d2p1:OrderDtlsForTripDtlsModel>
          <d2p1:DropCancellationReason>sample string 5</d2p1:DropCancellationReason>
          <d2p1:InHouseDelivery>true</d2p1:InHouseDelivery>
          <d2p1:IsDropCancelled>true</d2p1:IsDropCancelled>
          <d2p1:IsPickCancelled>true</d2p1:IsPickCancelled>
          <d2p1:OrderID>sample string 1</d2p1:OrderID>
          <d2p1:PickCancellationReason>sample string 3</d2p1:PickCancellationReason>
          <d2p1:RestaurantID>sample string 7</d2p1:RestaurantID>
          <d2p1:RestaurantName>sample string 6</d2p1:RestaurantName>
        </d2p1:OrderDtlsForTripDtlsModel>
        <d2p1:OrderDtlsForTripDtlsModel>
          <d2p1:DropCancellationReason>sample string 5</d2p1:DropCancellationReason>
          <d2p1:InHouseDelivery>true</d2p1:InHouseDelivery>
          <d2p1:IsDropCancelled>true</d2p1:IsDropCancelled>
          <d2p1:IsPickCancelled>true</d2p1:IsPickCancelled>
          <d2p1:OrderID>sample string 1</d2p1:OrderID>
          <d2p1:PickCancellationReason>sample string 3</d2p1:PickCancellationReason>
          <d2p1:RestaurantID>sample string 7</d2p1:RestaurantID>
          <d2p1:RestaurantName>sample string 6</d2p1:RestaurantName>
        </d2p1:OrderDtlsForTripDtlsModel>
      </d2p1:OrdersDtlsList>
      <d2p1:PickupDistance>5.1</d2p1:PickupDistance>
      <d2p1:PickupEarning>6</d2p1:PickupEarning>
      <d2p1:RPBSEarning>1</d2p1:RPBSEarning>
      <d2p1:ReferralQuestIncentiveAmt>1</d2p1:ReferralQuestIncentiveAmt>
      <d2p1:SurgeCharge>10</d2p1:SurgeCharge>
      <d2p1:TaxAmt>1</d2p1:TaxAmt>
      <d2p1:TaxPercent>1</d2p1:TaxPercent>
      <d2p1:TotalDistance>9.1</d2p1:TotalDistance>
      <d2p1:TotalDrops>16</d2p1:TotalDrops>
      <d2p1:TotalEarning>11</d2p1:TotalEarning>
      <d2p1:TotalPicks>15</d2p1:TotalPicks>
      <d2p1:TotalTripDurationInSec>17</d2p1:TotalTripDurationInSec>
      <d2p1:TotalTripEarning>12</d2p1:TotalTripEarning>
      <d2p1:TripEndDate>2025-12-07T10:01:22.1073264+05:30</d2p1:TripEndDate>
      <d2p1:TripID>sample string 1</d2p1:TripID>
      <d2p1:TripStartDate>2025-12-07T10:01:22.1073264+05:30</d2p1:TripStartDate>
    </d2p1:TripDtlsModel>
  </TripsDtls>
</DeliveryAgentTripsReportModel>