- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- LosPropertyPrices
- LosArrivalDatePrices
- Date
- LosProductPrices
- LosOccupancyPrices
- LosPrices
- Try it!
Update the prices for a single property using length-of-stay formatted prices. For a given property, each arrival date in the requested range will have all of its LOS prices replaced, including all products and occupancies. Prices with arrival dates outside the specified date ranges are unaffected.
HTTP request
POST https://travelpartnerprices.googleapis.com/v1/{propertyPrices.property=accounts/*/properties/*}:ingestLosPropertyPrices
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
propertyPrices.property |
The resource name of the
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "requestTime": string, "propertyPrices": { "property": string, "arrivalDatePrices": [ { "productPrices": [ { object ( |
Fields | |
---|---|
requestTime |
Required. The moment in time that the LoS Price message was sent, expressed as an RFC 3339-formatted string. Any message sent with a Messages are processed in order of A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
propertyPrices.arrivalDatePrices[] |
Prices for an arrival date. All prices within this |
Response body
If successful, the response body contains an instance of PropertyPrices
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/travelpartner
For more information, see the OAuth 2.0 Overview.
LosPropertyPrices
Length of stay prices, specified at the property level.
JSON representation |
---|
{
"arrivalDatePrices": [
{
object ( |
Fields | |
---|---|
arrivalDatePrices[] |
Prices for an arrival date. All prices within this |
property |
The resource name of the
|
LosArrivalDatePrices
Length of stay prices, grouped by arrival date ranges.
JSON representation |
---|
{ "productPrices": [ { object ( |
Fields | |
---|---|
productPrices[] |
Prices for a product. All prices within this |
startDate |
The If only trying to specify one arrival date (and not a range), |
endDate |
The If only trying to specify one arrival date (and not a range), |
Date
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
google.type.TimeOfDay
google.type.DateTime
google.protobuf.Timestamp
JSON representation |
---|
{ "year": integer, "month": integer, "day": integer } |
Fields | |
---|---|
year |
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
month |
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
day |
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
LosProductPrices
Length of stay prices, grouped by product type (roomTypeId/ratePlanId combinations).
JSON representation |
---|
{
"occupancyPrices": [
{
object ( |
Fields | |
---|---|
occupancyPrices[] |
Prices for an occupancy. All prices within this |
roomTypeId |
The unique ID for the room that this price is referring to. Use this ID to match the Room Bundle data with what you sent in roomdata. For more information, refer to Room Bundle metadata. If |
ratePlanId |
The unique ID for the package data that this price is referring to. Use this ID to match the Room Bundle data with what you sent in packagedata. For more information, refer to Room Bundle metadata. If |
LosOccupancyPrices
Length of stay prices, grouped by adult occupancy count.
JSON representation |
---|
{
"prices": [
{
object ( |
Fields | |
---|---|
prices[] |
Length of stay prices. All prices within |
adults |
The maximum number of guests that can be booked per room, including adults and children. This value is set for all rates within the corresponding occupancyPrices field and must be a positive integer between |
LosPrices
Length of stay prices.
JSON representation |
---|
{ "rates": [ number ], "taxes": [ number ], "rateRuleId": string, "currencyCode": string } |
Fields | |
---|---|
rates[] |
The base rate component of the length of stay prices. If a corresponding Should be a comma-separated list of rates. The value at index You must send the full LoS set of 30 prices at a time. If you send fewer than 30, we will process all of the provided LoS prices as normal, and the remaining rates as unavailable up to LoS 30. If you send more than 30, we will drop any prices you send beyond the 30th rate. Unavailable lengths of stays should be represented with a |
taxes[] |
The tax component of length of stay prices. Should be a comma-separated list of taxes. The value at index |
rateRuleId |
For conditional rates, this ID matches a rate to a definition in your Rate Rule Definition file. The character limit for this field is 40 characters. |
currencyCode |
The three-letter currency code which rates and taxes are provided in. For example, "USD" for US dollars. Applies to |