POST CarRental/Search

Request Information

URI Parameters

None.

Body Parameters

CarRentalSearchRequest
NameDescriptionTypeAdditional information
locationID

string

None.

carTypeName

string

None.

rentDays

integer

None.

unitQty

integer

None.

rentDate

date

None.

packetTypeName

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "locationID": "sample string 1",
  "carTypeName": "sample string 2",
  "rentDays": 3,
  "unitQty": 4,
  "rentDate": "2025-01-22T20:08:37.9280701+07:00",
  "packetTypeName": "sample string 6",
  "userID": "sample string 7",
  "accessToken": "sample string 8"
}

application/xml, text/xml

Sample:
<CarRentalSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 8</accessToken>
  <userID>sample string 7</userID>
  <carTypeName>sample string 2</carTypeName>
  <locationID>sample string 1</locationID>
  <packetTypeName>sample string 6</packetTypeName>
  <rentDate>2025-01-22T20:08:37.9280701+07:00</rentDate>
  <rentDays>3</rentDays>
  <unitQty>4</unitQty>
</CarRentalSearchRequest>

Response Information

Resource Description

CarRentalSearchResponse
NameDescriptionTypeAdditional information
avaliableCars

Collection of AvailableCarModel

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:
{
  "avaliableCars": [
    {
      "carID": "sample string 1",
      "carMerk": "sample string 2",
      "carTypeName": "sample string 3",
      "packetTypeName": "sample string 4",
      "carTransmition": "sample string 5",
      "carYear": "sample string 6",
      "locationName": "sample string 7",
      "locationID": "sample string 8",
      "carDistance": "sample string 9",
      "carTypeHour": 10,
      "carDestinationType": "sample string 11",
      "rentDays": 12,
      "unitQty": 13,
      "startDate": "2025-01-22T20:08:37.9280701+07:00",
      "salesPrice": 15.0,
      "totalPrice": 16.0,
      "profit": 17.0
    },
    {
      "carID": "sample string 1",
      "carMerk": "sample string 2",
      "carTypeName": "sample string 3",
      "packetTypeName": "sample string 4",
      "carTransmition": "sample string 5",
      "carYear": "sample string 6",
      "locationName": "sample string 7",
      "locationID": "sample string 8",
      "carDistance": "sample string 9",
      "carTypeHour": 10,
      "carDestinationType": "sample string 11",
      "rentDays": 12,
      "unitQty": 13,
      "startDate": "2025-01-22T20:08:37.9280701+07:00",
      "salesPrice": 15.0,
      "totalPrice": 16.0,
      "profit": 17.0
    }
  ],
  "respTime": "2025-01-22T20:08:37.9280701+07:00",
  "userID": "sample string 2",
  "accessToken": "sample string 3",
  "status": "sample string 4",
  "respMessage": "sample string 5"
}

application/xml, text/xml

Sample:
<CarRentalSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 3</accessToken>
  <respMessage>sample string 5</respMessage>
  <respTime>2025-01-22T20:08:37.9280701+07:00</respTime>
  <status>sample string 4</status>
  <userID>sample string 2</userID>
  <avaliableCars>
    <AvailableCarModel>
      <carDestinationType>sample string 11</carDestinationType>
      <carDistance>sample string 9</carDistance>
      <carID>sample string 1</carID>
      <carMerk>sample string 2</carMerk>
      <carTransmition>sample string 5</carTransmition>
      <carTypeHour>10</carTypeHour>
      <carTypeName>sample string 3</carTypeName>
      <carYear>sample string 6</carYear>
      <locationID>sample string 8</locationID>
      <locationName>sample string 7</locationName>
      <packetTypeName>sample string 4</packetTypeName>
      <profit>17</profit>
      <rentDays>12</rentDays>
      <salesPrice>15</salesPrice>
      <startDate>2025-01-22T20:08:37.9280701+07:00</startDate>
      <totalPrice>16</totalPrice>
      <unitQty>13</unitQty>
    </AvailableCarModel>
    <AvailableCarModel>
      <carDestinationType>sample string 11</carDestinationType>
      <carDistance>sample string 9</carDistance>
      <carID>sample string 1</carID>
      <carMerk>sample string 2</carMerk>
      <carTransmition>sample string 5</carTransmition>
      <carTypeHour>10</carTypeHour>
      <carTypeName>sample string 3</carTypeName>
      <carYear>sample string 6</carYear>
      <locationID>sample string 8</locationID>
      <locationName>sample string 7</locationName>
      <packetTypeName>sample string 4</packetTypeName>
      <profit>17</profit>
      <rentDays>12</rentDays>
      <salesPrice>15</salesPrice>
      <startDate>2025-01-22T20:08:37.9280701+07:00</startDate>
      <totalPrice>16</totalPrice>
      <unitQty>13</unitQty>
    </AvailableCarModel>
  </avaliableCars>
</CarRentalSearchResponse>