POST Bestbuy/HotelInfo

Request Information

URI Parameters

None.

Body Parameters

BestbuyHotelInfoRQ
NameDescriptionTypeAdditional information
Header

BestbuyHeader

None.

Main

BestbuyHotelInfoMain

None.

Request Formats

application/json, text/json

Sample:
{
  "Header": {
    "Agency": "sample string 1",
    "User": "sample string 2",
    "Password": "sample string 3",
    "Operation": "sample string 4",
    "OperationType": "sample string 5"
  },
  "Main": {
    "HotelSearchCode": 1,
    "Version": "sample string 2",
    "ResponseFormat": "sample string 3",
    "IncludeGeo": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<BestbuyHotelInfoRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bestbuy.Model">
  <Header>
    <Agency>sample string 1</Agency>
    <Operation>sample string 4</Operation>
    <OperationType>sample string 5</OperationType>
    <Password>sample string 3</Password>
    <User>sample string 2</User>
  </Header>
  <Main>
    <IncludeGeo>sample string 4</IncludeGeo>
    <ResponseFormat>sample string 3</ResponseFormat>
    <Version>sample string 2</Version>
    <HotelSearchCode>1</HotelSearchCode>
  </Main>
</BestbuyHotelInfoRQ>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ContainerObjectOfBestbuyHotelInfoRS
NameDescriptionTypeAdditional information
TotalItens

integer

None.

Completed

boolean

None.

Success

boolean

None.

HasResult

boolean

None.

Erro

Exception

None.

MensagemErro

string

None.

Data

Collection of BestbuyHotelInfoRS

None.

Token

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalItens": 1,
  "Completed": true,
  "Success": false,
  "HasResult": false,
  "Erro": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "MensagemErro": "sample string 3",
  "Data": [
    {
      "Header": {
        "Agency": "sample string 1",
        "User": "sample string 2",
        "Password": "sample string 3",
        "Operation": "sample string 4",
        "OperationType": "sample string 5"
      },
      "Main": {
        "HotelSearchCode": "sample string 1",
        "HotelName": "sample string 2",
        "HotelId": "sample string 3",
        "Address": "sample string 4",
        "CityCode": "sample string 5",
        "Phone": "sample string 6",
        "Fax": "sample string 7",
        "Category": "sample string 8",
        "TripAdvisor": {
          "Rating": "sample string 1",
          "RatingImage": "sample string 2",
          "ReviewCount": "sample string 3",
          "Reviews": "sample string 4"
        },
        "Description": "sample string 9",
        "HotelFacilities": "sample string 10",
        "RoomFacilities": "sample string 11",
        "RoomCount": "sample string 12",
        "Pictures": {
          "Picture": [
            {
              "Description": "sample string 1",
              "Text": "sample string 2"
            },
            {
              "Description": "sample string 1",
              "Text": "sample string 2"
            }
          ]
        }
      }
    },
    {
      "Header": {
        "Agency": "sample string 1",
        "User": "sample string 2",
        "Password": "sample string 3",
        "Operation": "sample string 4",
        "OperationType": "sample string 5"
      },
      "Main": {
        "HotelSearchCode": "sample string 1",
        "HotelName": "sample string 2",
        "HotelId": "sample string 3",
        "Address": "sample string 4",
        "CityCode": "sample string 5",
        "Phone": "sample string 6",
        "Fax": "sample string 7",
        "Category": "sample string 8",
        "TripAdvisor": {
          "Rating": "sample string 1",
          "RatingImage": "sample string 2",
          "ReviewCount": "sample string 3",
          "Reviews": "sample string 4"
        },
        "Description": "sample string 9",
        "HotelFacilities": "sample string 10",
        "RoomFacilities": "sample string 11",
        "RoomCount": "sample string 12",
        "Pictures": {
          "Picture": [
            {
              "Description": "sample string 1",
              "Text": "sample string 2"
            },
            {
              "Description": "sample string 1",
              "Text": "sample string 2"
            }
          ]
        }
      }
    }
  ],
  "Token": "sample string 4"
}

application/xml, text/xml

Sample:
<ContainerObjectOfBestbuyHotelInfoRSbEIiGjt6 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model">
  <Completed>true</Completed>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bestbuy.Model">
    <d2p1:BestbuyHotelInfoRS>
      <d2p1:Header>
        <d2p1:Agency>sample string 1</d2p1:Agency>
        <d2p1:Operation>sample string 4</d2p1:Operation>
        <d2p1:OperationType>sample string 5</d2p1:OperationType>
        <d2p1:Password>sample string 3</d2p1:Password>
        <d2p1:User>sample string 2</d2p1:User>
      </d2p1:Header>
      <d2p1:Main>
        <d2p1:Address>sample string 4</d2p1:Address>
        <d2p1:Category>sample string 8</d2p1:Category>
        <d2p1:CityCode>sample string 5</d2p1:CityCode>
        <d2p1:Description>sample string 9</d2p1:Description>
        <d2p1:Fax>sample string 7</d2p1:Fax>
        <d2p1:HotelFacilities>sample string 10</d2p1:HotelFacilities>
        <d2p1:HotelId>sample string 3</d2p1:HotelId>
        <d2p1:HotelName>sample string 2</d2p1:HotelName>
        <d2p1:HotelSearchCode>sample string 1</d2p1:HotelSearchCode>
        <d2p1:Phone>sample string 6</d2p1:Phone>
        <d2p1:Pictures>
          <d2p1:Picture>
            <d2p1:Picture>
              <d2p1:Description>sample string 1</d2p1:Description>
              <d2p1:Text>sample string 2</d2p1:Text>
            </d2p1:Picture>
            <d2p1:Picture>
              <d2p1:Description>sample string 1</d2p1:Description>
              <d2p1:Text>sample string 2</d2p1:Text>
            </d2p1:Picture>
          </d2p1:Picture>
        </d2p1:Pictures>
        <d2p1:RoomCount>sample string 12</d2p1:RoomCount>
        <d2p1:RoomFacilities>sample string 11</d2p1:RoomFacilities>
        <d2p1:TripAdvisor>
          <d2p1:Rating>sample string 1</d2p1:Rating>
          <d2p1:RatingImage>sample string 2</d2p1:RatingImage>
          <d2p1:ReviewCount>sample string 3</d2p1:ReviewCount>
          <d2p1:Reviews>sample string 4</d2p1:Reviews>
        </d2p1:TripAdvisor>
      </d2p1:Main>
    </d2p1:BestbuyHotelInfoRS>
    <d2p1:BestbuyHotelInfoRS>
      <d2p1:Header>
        <d2p1:Agency>sample string 1</d2p1:Agency>
        <d2p1:Operation>sample string 4</d2p1:Operation>
        <d2p1:OperationType>sample string 5</d2p1:OperationType>
        <d2p1:Password>sample string 3</d2p1:Password>
        <d2p1:User>sample string 2</d2p1:User>
      </d2p1:Header>
      <d2p1:Main>
        <d2p1:Address>sample string 4</d2p1:Address>
        <d2p1:Category>sample string 8</d2p1:Category>
        <d2p1:CityCode>sample string 5</d2p1:CityCode>
        <d2p1:Description>sample string 9</d2p1:Description>
        <d2p1:Fax>sample string 7</d2p1:Fax>
        <d2p1:HotelFacilities>sample string 10</d2p1:HotelFacilities>
        <d2p1:HotelId>sample string 3</d2p1:HotelId>
        <d2p1:HotelName>sample string 2</d2p1:HotelName>
        <d2p1:HotelSearchCode>sample string 1</d2p1:HotelSearchCode>
        <d2p1:Phone>sample string 6</d2p1:Phone>
        <d2p1:Pictures>
          <d2p1:Picture>
            <d2p1:Picture>
              <d2p1:Description>sample string 1</d2p1:Description>
              <d2p1:Text>sample string 2</d2p1:Text>
            </d2p1:Picture>
            <d2p1:Picture>
              <d2p1:Description>sample string 1</d2p1:Description>
              <d2p1:Text>sample string 2</d2p1:Text>
            </d2p1:Picture>
          </d2p1:Picture>
        </d2p1:Pictures>
        <d2p1:RoomCount>sample string 12</d2p1:RoomCount>
        <d2p1:RoomFacilities>sample string 11</d2p1:RoomFacilities>
        <d2p1:TripAdvisor>
          <d2p1:Rating>sample string 1</d2p1:Rating>
          <d2p1:RatingImage>sample string 2</d2p1:RatingImage>
          <d2p1:ReviewCount>sample string 3</d2p1:ReviewCount>
          <d2p1:Reviews>sample string 4</d2p1:Reviews>
        </d2p1:TripAdvisor>
      </d2p1:Main>
    </d2p1:BestbuyHotelInfoRS>
  </Data>
  <Erro xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Erro>
  <MensagemErro>sample string 3</MensagemErro>
  <Token>sample string 4</Token>
  <TotalItens>1</TotalItens>
</ContainerObjectOfBestbuyHotelInfoRSbEIiGjt6>