POST api/MRide/RideRequest

Request Information

URI Parameters

None.

Body Parameters

ConfirmRideModel
NameDescriptionTypeAdditional information
CustomerId

integer

None.

DriverId

integer

None.

PaymentTypeId

integer

None.

CardId

integer

None.

PickupLocation

string

None.

DropoffLocation

string

None.

PickupAddress

string

None.

DropoffAddress

string

None.

RideTypeId

integer

None.

SubRideTypeId

integer

None.

SubRideTypeDescription

string

None.

EstimatedTime

decimal number

None.

EstimatedKMs

decimal number

None.

CouponId

integer

None.

DropoffPersonName

string

None.

DropoffPersonContact

string

None.

ScheduledDateTime

string

None.

AssignedDriver

string

None.

DriverNotAccepted

string

None.

IsFree

integer

None.

OrderID

integer

None.

ShopID

integer

None.

VehicleId

integer

None.

NoPassenger

integer

None.

Keylocation

string

None.

MechanicName

string

None.

MechanicNumber

string

None.

DriverNote

string

None.

RideFare

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "DriverId": 1,
  "PaymentTypeId": 1,
  "CardId": 1,
  "PickupLocation": "sample string 1",
  "DropoffLocation": "sample string 2",
  "PickupAddress": "sample string 3",
  "DropoffAddress": "sample string 4",
  "RideTypeId": 1,
  "SubRideTypeId": 1,
  "SubRideTypeDescription": "sample string 5",
  "EstimatedTime": 1.0,
  "EstimatedKMs": 1.0,
  "CouponId": 1,
  "DropoffPersonName": "sample string 6",
  "DropoffPersonContact": "sample string 7",
  "ScheduledDateTime": "sample string 8",
  "AssignedDriver": "sample string 9",
  "DriverNotAccepted": "sample string 10",
  "IsFree": 1,
  "OrderID": 1,
  "ShopID": 1,
  "VehicleId": 1,
  "NoPassenger": 1,
  "Keylocation": "sample string 11",
  "MechanicName": "sample string 12",
  "MechanicNumber": "sample string 13",
  "DriverNote": "sample string 14",
  "RideFare": "sample string 15"
}

application/xml, text/xml

Sample:
<ConfirmRideModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRide_API">
  <AssignedDriver>sample string 9</AssignedDriver>
  <CardId>1</CardId>
  <CouponId>1</CouponId>
  <CustomerId>1</CustomerId>
  <DriverId>1</DriverId>
  <DriverNotAccepted>sample string 10</DriverNotAccepted>
  <DriverNote>sample string 14</DriverNote>
  <DropoffAddress>sample string 4</DropoffAddress>
  <DropoffLocation>sample string 2</DropoffLocation>
  <DropoffPersonContact>sample string 7</DropoffPersonContact>
  <DropoffPersonName>sample string 6</DropoffPersonName>
  <EstimatedKMs>1</EstimatedKMs>
  <EstimatedTime>1</EstimatedTime>
  <IsFree>1</IsFree>
  <Keylocation>sample string 11</Keylocation>
  <MechanicName>sample string 12</MechanicName>
  <MechanicNumber>sample string 13</MechanicNumber>
  <NoPassenger>1</NoPassenger>
  <OrderID>1</OrderID>
  <PaymentTypeId>1</PaymentTypeId>
  <PickupAddress>sample string 3</PickupAddress>
  <PickupLocation>sample string 1</PickupLocation>
  <RideFare>sample string 15</RideFare>
  <RideTypeId>1</RideTypeId>
  <ScheduledDateTime>sample string 8</ScheduledDateTime>
  <ShopID>1</ShopID>
  <SubRideTypeDescription>sample string 5</SubRideTypeDescription>
  <SubRideTypeId>1</SubRideTypeId>
  <VehicleId>1</VehicleId>
</ConfirmRideModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IAsyncResult
NameDescriptionTypeAdditional information
IsCompleted

boolean

None.

AsyncWaitHandle

WaitHandle

None.

AsyncState

Object

None.

CompletedSynchronously

boolean

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.