POST api/Automotive/SaveTripReservation?Direction={Direction}

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
entity
No documentation available.

Define this parameter in the request body.

Direction
No documentation available.

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DriverId": 2,
  "CarId": 3,
  "VendorId": 4,
  "PriceListId": 5,
  "ApprovalStatus": 1,
  "ExpectedKilometers": 6.0,
  "ExpectedMinutes": 7.0,
  "ActualMinutes": 8.0,
  "AdjustmentPrice": 9.0,
  "Destination": "sample string 10",
  "currentLocation": "sample string 11",
  "DestinationLatitude": "sample string 12",
  "DestinationLongitude": "sample string 13",
  "CurrentLatitude": "sample string 14",
  "CurrentLongitude": "sample string 15",
  "Comment": "sample string 16",
  "PassengerName": "sample string 17",
  "PassengerMobile": "sample string 18",
  "PassengerEmail": "sample string 19",
  "PassengerCountry": "sample string 20",
  "TripTime": "2025-05-09T17:50:48.7408252+03:00",
  "InCT": "sample string 21"
}

application/xml, text/xml

Sample:
<Alhamlh_VM_TripReservation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPPlus_MOdel.Model">
  <ActualMinutes>8</ActualMinutes>
  <AdjustmentPrice>9</AdjustmentPrice>
  <ApprovalStatus>1</ApprovalStatus>
  <CarId>3</CarId>
  <Comment>sample string 16</Comment>
  <CurrentLatitude>sample string 14</CurrentLatitude>
  <CurrentLongitude>sample string 15</CurrentLongitude>
  <Destination>sample string 10</Destination>
  <DestinationLatitude>sample string 12</DestinationLatitude>
  <DestinationLongitude>sample string 13</DestinationLongitude>
  <DriverId>2</DriverId>
  <ExpectedKilometers>6</ExpectedKilometers>
  <ExpectedMinutes>7</ExpectedMinutes>
  <Id>1</Id>
  <InCT>sample string 21</InCT>
  <PassengerCountry>sample string 20</PassengerCountry>
  <PassengerEmail>sample string 19</PassengerEmail>
  <PassengerMobile>sample string 18</PassengerMobile>
  <PassengerName>sample string 17</PassengerName>
  <PriceListId>5</PriceListId>
  <TripTime>2025-05-09T17:50:48.7408252+03:00</TripTime>
  <VendorId>4</VendorId>
  <currentLocation>sample string 11</currentLocation>
</Alhamlh_VM_TripReservation>

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 'Alhamlh_VM_TripReservation'.

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_Plus">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
</GeneralErrors>