POST CarRental/Order

Request Information

URI Parameters

None.

Body Parameters

CarRentalOrderRequest
NameDescriptionTypeAdditional information
carID

string

None.

carTypeName

string

None.

carLocationID

string

None.

packetTypeName

string

None.

unitQty

integer

None.

rentDays

integer

None.

pickUpTime

date

None.

pickUpLocationType

string

None.

pickUpAirport

string

None.

pickUpAirline

string

None.

pickUpFlightNumber

string

None.

pickUpDepartCity

string

None.

pickUpHotelName

string

None.

pickUpHotelAddress

string

None.

pickUpAddress

string

None.

pickUpAreaOfUse

string

None.

customerName

string

None.

customerAddress

string

None.

customerTelephone

string

None.

customerPhone

string

None.

specialRequest

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "carID": "sample string 1",
  "carTypeName": "sample string 2",
  "carLocationID": "sample string 3",
  "packetTypeName": "sample string 4",
  "unitQty": 5,
  "rentDays": 6,
  "pickUpTime": "2021-11-27T13:11:41.8135186+07:00",
  "pickUpLocationType": "sample string 8",
  "pickUpAirport": "sample string 9",
  "pickUpAirline": "sample string 10",
  "pickUpFlightNumber": "sample string 11",
  "pickUpDepartCity": "sample string 12",
  "pickUpHotelName": "sample string 13",
  "pickUpHotelAddress": "sample string 14",
  "pickUpAddress": "sample string 15",
  "pickUpAreaOfUse": "sample string 16",
  "customerName": "sample string 17",
  "customerAddress": "sample string 18",
  "customerTelephone": "sample string 19",
  "customerPhone": "sample string 20",
  "specialRequest": "sample string 21",
  "userID": "sample string 22",
  "accessToken": "sample string 23"
}

application/xml, text/xml

Sample:
<CarRentalOrderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 23</accessToken>
  <userID>sample string 22</userID>
  <carID>sample string 1</carID>
  <carLocationID>sample string 3</carLocationID>
  <carTypeName>sample string 2</carTypeName>
  <customerAddress>sample string 18</customerAddress>
  <customerName>sample string 17</customerName>
  <customerPhone>sample string 20</customerPhone>
  <customerTelephone>sample string 19</customerTelephone>
  <packetTypeName>sample string 4</packetTypeName>
  <pickUpAddress>sample string 15</pickUpAddress>
  <pickUpAirline>sample string 10</pickUpAirline>
  <pickUpAirport>sample string 9</pickUpAirport>
  <pickUpAreaOfUse>sample string 16</pickUpAreaOfUse>
  <pickUpDepartCity>sample string 12</pickUpDepartCity>
  <pickUpFlightNumber>sample string 11</pickUpFlightNumber>
  <pickUpHotelAddress>sample string 14</pickUpHotelAddress>
  <pickUpHotelName>sample string 13</pickUpHotelName>
  <pickUpLocationType>sample string 8</pickUpLocationType>
  <pickUpTime>2021-11-27T13:11:41.8135186+07:00</pickUpTime>
  <rentDays>6</rentDays>
  <specialRequest>sample string 21</specialRequest>
  <unitQty>5</unitQty>
</CarRentalOrderRequest>

Response Information

Resource Description

CarRentalOrderResponse
NameDescriptionTypeAdditional information
carID

string

None.

carMerk

string

None.

carType

string

None.

carProductYear

string

None.

carTransmission

string

None.

carLocation

string

None.

carDestinationType

string

None.

carDistance

string

None.

carHourType

integer

None.

pickUpTime

date

None.

pickUpLocationType

string

None.

pickUpAirport

string

None.

pickUpAirline

string

None.

pickUpFlightNumber

string

None.

pickUpDepartCity

string

None.

pickUpHotelName

string

None.

pickUpHotelAddress

string

None.

pickUpAddress

string

None.

pickUpAreaOfUse

string

None.

rentConditions

string

None.

specialRequest

string

None.

packetTypeName

string

None.

unitQty

integer

None.

rentDays

integer

None.

customerName

string

None.

customerAddress

string

None.

customerTelephone

string

None.

customerPhone

string

None.

salesPrice

decimal number

None.

totalPrice

decimal number

None.

orderID

string

None.

orderDate

date

None.

orderStatus

string

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

accessToken

access token that needed to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "carID": "sample string 1",
  "carMerk": "sample string 2",
  "carType": "sample string 3",
  "carProductYear": "sample string 4",
  "carTransmission": "sample string 5",
  "carLocation": "sample string 6",
  "carDestinationType": "sample string 7",
  "carDistance": "sample string 8",
  "carHourType": 9,
  "pickUpTime": "2021-11-27T13:11:41.829119+07:00",
  "pickUpLocationType": "sample string 11",
  "pickUpAirport": "sample string 12",
  "pickUpAirline": "sample string 13",
  "pickUpFlightNumber": "sample string 14",
  "pickUpDepartCity": "sample string 15",
  "pickUpHotelName": "sample string 16",
  "pickUpHotelAddress": "sample string 17",
  "pickUpAddress": "sample string 18",
  "pickUpAreaOfUse": "sample string 19",
  "rentConditions": "sample string 20",
  "specialRequest": "sample string 21",
  "packetTypeName": "sample string 22",
  "unitQty": 23,
  "rentDays": 24,
  "customerName": "sample string 25",
  "customerAddress": "sample string 26",
  "customerTelephone": "sample string 27",
  "customerPhone": "sample string 28",
  "salesPrice": 1.0,
  "totalPrice": 1.0,
  "orderID": "sample string 29",
  "orderDate": "2021-11-27T13:11:41.829119+07:00",
  "orderStatus": "sample string 31",
  "respTime": "2021-11-27T13:11:41.829119+07:00",
  "userID": "sample string 33",
  "accessToken": "sample string 34",
  "status": "sample string 35",
  "respMessage": "sample string 36"
}

application/xml, text/xml

Sample:
<CarRentalOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 34</accessToken>
  <respMessage>sample string 36</respMessage>
  <respTime>2021-11-27T13:11:41.829119+07:00</respTime>
  <status>sample string 35</status>
  <userID>sample string 33</userID>
  <carDestinationType>sample string 7</carDestinationType>
  <carDistance>sample string 8</carDistance>
  <carHourType>9</carHourType>
  <carID>sample string 1</carID>
  <carLocation>sample string 6</carLocation>
  <carMerk>sample string 2</carMerk>
  <carProductYear>sample string 4</carProductYear>
  <carTransmission>sample string 5</carTransmission>
  <carType>sample string 3</carType>
  <customerAddress>sample string 26</customerAddress>
  <customerName>sample string 25</customerName>
  <customerPhone>sample string 28</customerPhone>
  <customerTelephone>sample string 27</customerTelephone>
  <orderDate>2021-11-27T13:11:41.829119+07:00</orderDate>
  <orderID>sample string 29</orderID>
  <orderStatus>sample string 31</orderStatus>
  <packetTypeName>sample string 22</packetTypeName>
  <pickUpAddress>sample string 18</pickUpAddress>
  <pickUpAirline>sample string 13</pickUpAirline>
  <pickUpAirport>sample string 12</pickUpAirport>
  <pickUpAreaOfUse>sample string 19</pickUpAreaOfUse>
  <pickUpDepartCity>sample string 15</pickUpDepartCity>
  <pickUpFlightNumber>sample string 14</pickUpFlightNumber>
  <pickUpHotelAddress>sample string 17</pickUpHotelAddress>
  <pickUpHotelName>sample string 16</pickUpHotelName>
  <pickUpLocationType>sample string 11</pickUpLocationType>
  <pickUpTime>2021-11-27T13:11:41.829119+07:00</pickUpTime>
  <rentConditions>sample string 20</rentConditions>
  <rentDays>24</rentDays>
  <salesPrice>1</salesPrice>
  <specialRequest>sample string 21</specialRequest>
  <totalPrice>1</totalPrice>
  <unitQty>23</unitQty>
</CarRentalOrderResponse>