REST Resource: accounts.priceViews

  • PriceView resource shows hotel prices and is compatible with pre-v3.0 APIs.

  • HotelPricePerItinerary object provides price details for a specific itinerary including check-in date, duration, price, taxes, fees, currency, and update timestamp.

  • You can retrieve a detailed price view using the get method.

Resource: PriceView

A price view. Covers the Prices functionality in pre-v3.0 API versions.

JSON representation
{
  "name": string,
  "perItineraryPrices": [
    {
      object (HotelPricePerItinerary)
    }
  ]
}
Fields
name

string

Resource name in the format accounts/{account_id}/priceViews/{partnerHotelId}.

perItineraryPrices[]

object (HotelPricePerItinerary)

Price for each itinerary.

HotelPricePerItinerary

Hotel price for a given itinerary.

JSON representation
{
  "checkinDate": {
    object (Date)
  },
  "lengthOfStayDays": integer,
  "price": number,
  "taxes": number,
  "fees": number,
  "currencyCode": string,
  "updateTime": string
}
Fields
checkinDate

object (Date)

Check-in date.

lengthOfStayDays

integer

Number of nights for the itinerary.

price

number

Hotel price for this itinerary.

taxes

number

Taxes for this itinerary.

fees

number

Fees for this itinerary.

currencyCode

string

Currency for price, taxes, and fees.

updateTime

string (Timestamp format)

Update timestamp for this hotel price.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

Methods

get

Returns the requested price view in full detail.