POST api/DispatchApi/GetTripbyDates

Request Information

URI Parameters

None.

Body Parameters

TripDetailPara
NameDescriptionTypeAdditional information
DriverId

integer

None.

DeviceId

string

None.

StartDate

date

None.

EndDate

date

None.

TripId

integer

None.

TripDriverMappingAuditTrialID

integer

None.

FromStateId

integer

None.

ToStateId

integer

None.

FromCityId

integer

None.

ToCityId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverId": 1,
  "DeviceId": "sample string 2",
  "StartDate": "2026-10-18T09:23:52.100375-04:00",
  "EndDate": "2026-10-18T09:23:52.100375-04:00",
  "TripId": 1,
  "TripDriverMappingAuditTrialID": 1,
  "FromStateId": 1,
  "ToStateId": 1,
  "FromCityId": 1,
  "ToCityId": 1
}

text/html

Sample:
{"DriverId":1,"DeviceId":"sample string 2","StartDate":"2026-10-18T09:23:52.100375-04:00","EndDate":"2026-10-18T09:23:52.100375-04:00","TripId":1,"TripDriverMappingAuditTrialID":1,"FromStateId":1,"ToStateId":1,"FromCityId":1,"ToCityId":1}

application/xml, text/xml

Sample:
<TripDetailPara xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dispatch.Models">
  <DeviceId>sample string 2</DeviceId>
  <DriverId>1</DriverId>
  <EndDate>2026-10-18T09:23:52.100375-04:00</EndDate>
  <FromCityId>1</FromCityId>
  <FromStateId>1</FromStateId>
  <StartDate>2026-10-18T09:23:52.100375-04:00</StartDate>
  <ToCityId>1</ToCityId>
  <ToStateId>1</ToStateId>
  <TripDriverMappingAuditTrialID>1</TripDriverMappingAuditTrialID>
  <TripId>1</TripId>
</TripDetailPara>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TripDetailPara'.

Response Information

Resource Description

ResultModelOfTripDetails
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

UpdateApp

boolean

None.

IsSecureLoad

boolean

None.

IsPODMandatory

boolean

None.

GetPickupDeliveryNumberFromApp

boolean

None.

RestrictLocationChangesForApp

boolean

None.

RestrictDriversToOneActiveJobAtaTime

boolean

None.

ShowShipperConsigneeContactDetail

boolean

None.

HideMilesRateForDriverInapp

boolean

None.

ShowConsigneeInfoOnDriverApp

boolean

None.

model

TripDetails

None.

lstModel

Collection of TripDetails

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Error getting value from 'DriverEmptyMilesModel' on 'Dispatch.Models.TripDetails'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Error getting value from 'DriverEmptyMilesModel' on 'Dispatch.Models.TripDetails'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Error getting value from 'DriverEmptyMilesModel' on 'Dispatch.Models.TripDetails'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Unexpected character encountered while parsing value: s. Path '', line 0, position 0.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Unexpected character encountered while parsing value: s. Path '', line 0, position 0.