GET v1/AnnualReport/GetHotelReports?dkNumber={dkNumber}&startDate={startDate}&endDate={endDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
dkNumber

string

Required

startDate

date

Required

endDate

date

Required

Body Parameters

None.

Response Information

Resource Description

HotelReportResponse
NameDescriptionTypeAdditional information
HotelReports

Collection of HotelReport

None.

HotelLeftReports

Collection of HotelLeftData

None.

HotelRightReports

Collection of HotelRightData

None.

IsSuccess

boolean

None.

Message

string

None.

guid

string

None.

PNR

string

None.

Response Formats

application/json, text/json

Sample:
{
  "HotelReports": [
    {
      "TripType": "sample string 1",
      "IsDomestic": true,
      "NetVolume": 1.0,
      "AverageStayPrice": 1.0,
      "Year": 1,
      "BookingCount": 1,
      "Destination": "sample string 2",
      "Month": "sample string 3"
    },
    {
      "TripType": "sample string 1",
      "IsDomestic": true,
      "NetVolume": 1.0,
      "AverageStayPrice": 1.0,
      "Year": 1,
      "BookingCount": 1,
      "Destination": "sample string 2",
      "Month": "sample string 3"
    }
  ],
  "HotelLeftReports": [
    {
      "TripType": "sample string 1",
      "IsDomestic": true,
      "TotalFare": 1.0,
      "Year": 1,
      "Month": "sample string 2",
      "BookingCount": 1,
      "Transactions": 1
    },
    {
      "TripType": "sample string 1",
      "IsDomestic": true,
      "TotalFare": 1.0,
      "Year": 1,
      "Month": "sample string 2",
      "BookingCount": 1,
      "Transactions": 1
    }
  ],
  "HotelRightReports": [
    {
      "HotelsChain": "sample string 1",
      "SpendAmount": 1.0,
      "Month": "sample string 2",
      "Year": 1
    },
    {
      "HotelsChain": "sample string 1",
      "SpendAmount": 1.0,
      "Month": "sample string 2",
      "Year": 1
    }
  ],
  "IsSuccess": true,
  "Message": "sample string 2",
  "guid": "sample string 3",
  "PNR": "sample string 4"
}

application/xml, text/xml

Sample:
<HotelReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model.AnnualReport">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">true</IsSuccess>
  <Message xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">sample string 2</Message>
  <PNR xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">sample string 4</PNR>
  <guid xmlns="http://schemas.datacontract.org/2004/07/GT.AzrTravelApi.Model">sample string 3</guid>
  <HotelLeftReports>
    <HotelLeftData>
      <BookingCount>1</BookingCount>
      <IsDomestic>true</IsDomestic>
      <Month>sample string 2</Month>
      <TotalFare>1</TotalFare>
      <Transactions>1</Transactions>
      <TripType>sample string 1</TripType>
      <Year>1</Year>
    </HotelLeftData>
    <HotelLeftData>
      <BookingCount>1</BookingCount>
      <IsDomestic>true</IsDomestic>
      <Month>sample string 2</Month>
      <TotalFare>1</TotalFare>
      <Transactions>1</Transactions>
      <TripType>sample string 1</TripType>
      <Year>1</Year>
    </HotelLeftData>
  </HotelLeftReports>
  <HotelReports>
    <HotelReport>
      <AverageStayPrice>1</AverageStayPrice>
      <BookingCount>1</BookingCount>
      <Destination>sample string 2</Destination>
      <IsDomestic>true</IsDomestic>
      <Month>sample string 3</Month>
      <NetVolume>1</NetVolume>
      <TripType>sample string 1</TripType>
      <Year>1</Year>
    </HotelReport>
    <HotelReport>
      <AverageStayPrice>1</AverageStayPrice>
      <BookingCount>1</BookingCount>
      <Destination>sample string 2</Destination>
      <IsDomestic>true</IsDomestic>
      <Month>sample string 3</Month>
      <NetVolume>1</NetVolume>
      <TripType>sample string 1</TripType>
      <Year>1</Year>
    </HotelReport>
  </HotelReports>
  <HotelRightReports>
    <HotelRightData>
      <HotelsChain>sample string 1</HotelsChain>
      <Month>sample string 2</Month>
      <SpendAmount>1</SpendAmount>
      <Year>1</Year>
    </HotelRightData>
    <HotelRightData>
      <HotelsChain>sample string 1</HotelsChain>
      <Month>sample string 2</Month>
      <SpendAmount>1</SpendAmount>
      <Year>1</Year>
    </HotelRightData>
  </HotelRightReports>
</HotelReportResponse>