POST Tour/Search

Request Information

URI Parameters

None.

Body Parameters

TourSearchRequest
NameDescriptionTypeAdditional information
Keyword

string

None.

TourType

string

None.

Category

integer

None.

MinPrice

decimal number

None.

MaxPrice

decimal number

None.

MinimumPax

integer

None.

Duration

integer

None.

Province

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Keyword": "sample string 1",
  "TourType": "sample string 2",
  "Category": 3,
  "MinPrice": 4.0,
  "MaxPrice": 5.0,
  "MinimumPax": 6,
  "Duration": 7,
  "Province": "sample string 8",
  "userID": "sample string 9",
  "accessToken": "sample string 10"
}

application/xml, text/xml

Sample:
<TourSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 10</accessToken>
  <userID>sample string 9</userID>
  <Category>3</Category>
  <Duration>7</Duration>
  <Keyword>sample string 1</Keyword>
  <MaxPrice>5</MaxPrice>
  <MinPrice>4</MinPrice>
  <MinimumPax>6</MinimumPax>
  <Province>sample string 8</Province>
  <TourType>sample string 2</TourType>
</TourSearchRequest>

Response Information

Resource Description

TourSearchListResponse
NameDescriptionTypeAdditional information
Tours

Collection of TourSearchResponse

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:
{
  "Tours": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Country": "sample string 3",
      "Province": "sample string 4",
      "City": "sample string 5",
      "Destination": "sample string 3, sample string 4, sample string 5",
      "Duration": "sample string 6",
      "Type": "sample string 7",
      "Category": "sample string 8",
      "Variant": "sample string 9",
      "MinPax": 10,
      "MinimumFare": 11.0,
      "Currency": "sample string 12",
      "Packages": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "DepartDate": "2021-11-26T18:59:42.9660153+07:00",
          "Duration": "sample string 4",
          "Quota": 5,
          "RemainingQuota": 6,
          "MinPax": 7,
          "MaxPax": 8,
          "SellPrice": 9.0,
          "AgentCommision": 10.0,
          "Airline": "sample string 11",
          "Rabs": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            }
          ]
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "DepartDate": "2021-11-26T18:59:42.9660153+07:00",
          "Duration": "sample string 4",
          "Quota": 5,
          "RemainingQuota": 6,
          "MinPax": 7,
          "MaxPax": 8,
          "SellPrice": 9.0,
          "AgentCommision": 10.0,
          "Airline": "sample string 11",
          "Rabs": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            }
          ]
        }
      ]
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Country": "sample string 3",
      "Province": "sample string 4",
      "City": "sample string 5",
      "Destination": "sample string 3, sample string 4, sample string 5",
      "Duration": "sample string 6",
      "Type": "sample string 7",
      "Category": "sample string 8",
      "Variant": "sample string 9",
      "MinPax": 10,
      "MinimumFare": 11.0,
      "Currency": "sample string 12",
      "Packages": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "DepartDate": "2021-11-26T18:59:42.9660153+07:00",
          "Duration": "sample string 4",
          "Quota": 5,
          "RemainingQuota": 6,
          "MinPax": 7,
          "MaxPax": 8,
          "SellPrice": 9.0,
          "AgentCommision": 10.0,
          "Airline": "sample string 11",
          "Rabs": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            }
          ]
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "DepartDate": "2021-11-26T18:59:42.9660153+07:00",
          "Duration": "sample string 4",
          "Quota": 5,
          "RemainingQuota": 6,
          "MinPax": 7,
          "MaxPax": 8,
          "SellPrice": 9.0,
          "AgentCommision": 10.0,
          "Airline": "sample string 11",
          "Rabs": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "PaxType": "sample string 3",
              "Currency": "sample string 4",
              "AgentCommision": 5.0,
              "Price": 1.0
            }
          ]
        }
      ]
    }
  ],
  "respTime": "2021-11-26T18:59:42.9816159+07:00",
  "userID": "sample string 2",
  "accessToken": "sample string 3",
  "status": "sample string 4",
  "respMessage": "sample string 5"
}

application/xml, text/xml

Sample:
<TourSearchListResponse 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>2021-11-26T18:59:42.9816159+07:00</respTime>
  <status>sample string 4</status>
  <userID>sample string 2</userID>
  <Tours>
    <TourSearchResponse>
      <Category>sample string 8</Category>
      <City>sample string 5</City>
      <Country>sample string 3</Country>
      <Currency>sample string 12</Currency>
      <Duration>sample string 6</Duration>
      <Id>1</Id>
      <MinPax>10</MinPax>
      <MinimumFare>11</MinimumFare>
      <Name>sample string 2</Name>
      <Packages>
        <TourPackage>
          <AgentCommision>10</AgentCommision>
          <Airline>sample string 11</Airline>
          <DepartDate>2021-11-26T18:59:42.9660153+07:00</DepartDate>
          <Duration>sample string 4</Duration>
          <Id>1</Id>
          <MaxPax>8</MaxPax>
          <MinPax>7</MinPax>
          <Name>sample string 2</Name>
          <Quota>5</Quota>
          <Rabs>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
          </Rabs>
          <RemainingQuota>6</RemainingQuota>
          <SellPrice>9</SellPrice>
        </TourPackage>
        <TourPackage>
          <AgentCommision>10</AgentCommision>
          <Airline>sample string 11</Airline>
          <DepartDate>2021-11-26T18:59:42.9660153+07:00</DepartDate>
          <Duration>sample string 4</Duration>
          <Id>1</Id>
          <MaxPax>8</MaxPax>
          <MinPax>7</MinPax>
          <Name>sample string 2</Name>
          <Quota>5</Quota>
          <Rabs>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
          </Rabs>
          <RemainingQuota>6</RemainingQuota>
          <SellPrice>9</SellPrice>
        </TourPackage>
      </Packages>
      <Province>sample string 4</Province>
      <Type>sample string 7</Type>
      <Variant>sample string 9</Variant>
    </TourSearchResponse>
    <TourSearchResponse>
      <Category>sample string 8</Category>
      <City>sample string 5</City>
      <Country>sample string 3</Country>
      <Currency>sample string 12</Currency>
      <Duration>sample string 6</Duration>
      <Id>1</Id>
      <MinPax>10</MinPax>
      <MinimumFare>11</MinimumFare>
      <Name>sample string 2</Name>
      <Packages>
        <TourPackage>
          <AgentCommision>10</AgentCommision>
          <Airline>sample string 11</Airline>
          <DepartDate>2021-11-26T18:59:42.9660153+07:00</DepartDate>
          <Duration>sample string 4</Duration>
          <Id>1</Id>
          <MaxPax>8</MaxPax>
          <MinPax>7</MinPax>
          <Name>sample string 2</Name>
          <Quota>5</Quota>
          <Rabs>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
          </Rabs>
          <RemainingQuota>6</RemainingQuota>
          <SellPrice>9</SellPrice>
        </TourPackage>
        <TourPackage>
          <AgentCommision>10</AgentCommision>
          <Airline>sample string 11</Airline>
          <DepartDate>2021-11-26T18:59:42.9660153+07:00</DepartDate>
          <Duration>sample string 4</Duration>
          <Id>1</Id>
          <MaxPax>8</MaxPax>
          <MinPax>7</MinPax>
          <Name>sample string 2</Name>
          <Quota>5</Quota>
          <Rabs>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
            <RabDetail>
              <AgentCommision>5</AgentCommision>
              <Currency>sample string 4</Currency>
              <Id>1</Id>
              <Name>sample string 2</Name>
              <PaxType>sample string 3</PaxType>
              <Price>1</Price>
            </RabDetail>
          </Rabs>
          <RemainingQuota>6</RemainingQuota>
          <SellPrice>9</SellPrice>
        </TourPackage>
      </Packages>
      <Province>sample string 4</Province>
      <Type>sample string 7</Type>
      <Variant>sample string 9</Variant>
    </TourSearchResponse>
  </Tours>
</TourSearchListResponse>