CINXE.COM

Pricing & Room Inventory (Transactions) XML Reference  |  Hotel Prices  |  Google for Developers

<!doctype html> <html lang="en" dir="ltr"> <head> <meta name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com"> <meta name="google-signin-scope" content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award"> <meta property="og:site_name" content="Google for Developers"> <meta property="og:type" content="website"><meta name="theme-color" content="#1a73e8"><meta charset="utf-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="manifest" href="/_pwa/developers/manifest.json" crossorigin="use-credentials"> <link rel="preconnect" href="//www.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.googleapis.com" crossorigin> <link rel="preconnect" href="//apis.google.com" crossorigin> <link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"> <link rel="stylesheet" href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/css/app.css"> <link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/favicon-new.png"> <link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png"><link rel="canonical" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages"><link rel="search" type="application/opensearchdescription+xml" title="Google for Developers" href="https://developers.google.com/s/opensearch.xml"> <link rel="alternate" hreflang="en" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages" /><link rel="alternate" hreflang="x-default" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages" /><link rel="alternate" hreflang="ar" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=ar" /><link rel="alternate" hreflang="bn" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=bn" /><link rel="alternate" hreflang="zh-Hans" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=zh-cn" /><link rel="alternate" hreflang="zh-Hant" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=zh-tw" /><link rel="alternate" hreflang="fa" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=fa" /><link rel="alternate" hreflang="fr" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=fr" /><link rel="alternate" hreflang="de" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=de" /><link rel="alternate" hreflang="he" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=he" /><link rel="alternate" hreflang="hi" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=hi" /><link rel="alternate" hreflang="id" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=id" /><link rel="alternate" hreflang="it" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=it" /><link rel="alternate" hreflang="ja" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=ja" /><link rel="alternate" hreflang="ko" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=ko" /><link rel="alternate" hreflang="pl" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=pl" /><link rel="alternate" hreflang="pt-BR" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=pt-br" /><link rel="alternate" hreflang="ru" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=ru" /><link rel="alternate" hreflang="es-419" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=es-419" /><link rel="alternate" hreflang="th" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=th" /><link rel="alternate" hreflang="tr" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=tr" /><link rel="alternate" hreflang="vi" href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages?hl=vi" /><title>Pricing &amp; Room Inventory (Transactions) XML Reference &nbsp;|&nbsp; Hotel Prices &nbsp;|&nbsp; Google for Developers</title> <meta property="og:title" content="Pricing &amp; Room Inventory (Transactions) XML Reference &nbsp;|&nbsp; Hotel Prices &nbsp;|&nbsp; Google for Developers"><meta property="og:url" content="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages"><meta property="og:image" content="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/opengraph/google-blue.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image"><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "Pricing &amp; Room Inventory (Transactions) XML Reference" } </script><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Hotel APIs", "item": "https://developers.google.com/hotels" },{ "@type": "ListItem", "position": 2, "name": "Hotel Prices", "item": "https://developers.google.com/hotels/hotel-prices" },{ "@type": "ListItem", "position": 3, "name": "Pricing &amp;amp; Room Inventory (Transactions) XML Reference", "item": "https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages" }] } </script> <link rel="stylesheet" href="/extras.css"></head> <body class="" template="page" theme="google-blue" type="article" layout="docs" concierge='closed' display-toc pending> <devsite-progress type="indeterminate" id="app-progress"></devsite-progress> <section class="devsite-wrapper"> <devsite-cookie-notification-bar></devsite-cookie-notification-bar><devsite-header role="banner"> <div class="devsite-header--inner nocontent"> <div class="devsite-top-logo-row-wrapper-wrapper"> <div class="devsite-top-logo-row-wrapper"> <div class="devsite-top-logo-row"> <button type="button" id="devsite-hamburger-menu" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Navigation menu button" visually-hidden aria-label="Open menu"> </button> <div class="devsite-product-name-wrapper"> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" aria-label="Product breadcrumb"> <li class="devsite-breadcrumb-item devsite-has-google-wordmark"> <a href="https://developers.google.com/hotels" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Google Hotel APIs" > <svg class="devsite-google-wordmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 148 48"> <title>Google</title> <path class="devsite-google-wordmark-svg-path" d="M19.58,37.65c-9.87,0-18.17-8.04-18.17-17.91c0-9.87,8.3-17.91,18.17-17.91c5.46,0,9.35,2.14,12.27,4.94l-3.45,3.45c-2.1-1.97-4.93-3.49-8.82-3.49c-7.21,0-12.84,5.81-12.84,13.02c0,7.21,5.64,13.02,12.84,13.02c4.67,0,7.34-1.88,9.04-3.58c1.4-1.4,2.32-3.41,2.66-6.16H19.58v-4.89h16.47c0.18,0.87,0.26,1.92,0.26,3.06c0,3.67-1.01,8.21-4.24,11.44C28.93,35.9,24.91,37.65,19.58,37.65z M61.78,26.12c0,6.64-5.1,11.53-11.36,11.53s-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53S61.78,19.43,61.78,26.12z M56.8,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C53.84,33.11,56.8,30.22,56.8,26.12z M87.25,26.12c0,6.64-5.1,11.53-11.36,11.53c-6.26,0-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53C82.15,14.59,87.25,19.43,87.25,26.12zM82.28,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C79.32,33.11,82.28,30.22,82.28,26.12z M112.09,15.29v20.7c0,8.52-5.02,12.01-10.96,12.01c-5.59,0-8.95-3.76-10.22-6.81l4.41-1.83c0.79,1.88,2.71,4.1,5.81,4.1c3.8,0,6.16-2.36,6.16-6.77v-1.66h-0.18c-1.14,1.4-3.32,2.62-6.07,2.62c-5.76,0-11.05-5.02-11.05-11.49c0-6.51,5.28-11.57,11.05-11.57c2.75,0,4.93,1.22,6.07,2.58h0.18v-1.88H112.09z M107.64,26.16c0-4.06-2.71-7.03-6.16-7.03c-3.49,0-6.42,2.97-6.42,7.03c0,4.02,2.93,6.94,6.42,6.94C104.93,33.11,107.64,30.18,107.64,26.16z M120.97,3.06v33.89h-5.07V3.06H120.97z M140.89,29.92l3.93,2.62c-1.27,1.88-4.32,5.11-9.61,5.11c-6.55,0-11.28-5.07-11.28-11.53c0-6.86,4.77-11.53,10.71-11.53c5.98,0,8.91,4.76,9.87,7.34l0.52,1.31l-15.42,6.38c1.18,2.31,3.01,3.49,5.59,3.49C137.79,33.11,139.58,31.84,140.89,29.92zM128.79,25.77l10.31-4.28c-0.57-1.44-2.27-2.45-4.28-2.45C132.24,19.04,128.66,21.31,128.79,25.77z"/> </svg>Hotel APIs </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/hotels/hotel-prices" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="Google Hotel Prices API" > Hotel Prices </a> </li> </ul> </span> </div> <div class="devsite-top-logo-row-middle"> <div class="devsite-header-upper-tabs"> </div> <devsite-search enable-signin enable-search enable-suggestions enable-query-completion project-name="Hotel Prices" tenant-name="Google for Developers" project-scope="/hotels/hotel-prices" url-scoped="https://developers.google.com/s/results/hotels/hotel-prices" > <form class="devsite-search-form" action="https://developers.google.com/s/results" method="GET"> <div class="devsite-search-container"> <button type="button" search-open class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Open search"></button> <div class="devsite-searchbox"> <input aria-activedescendant="" aria-autocomplete="list" aria-label="Search" aria-expanded="false" aria-haspopup="listbox" autocomplete="off" class="devsite-search-field devsite-search-query" name="q" placeholder="Search" role="combobox" type="text" value="" > <div class="devsite-search-image material-icons" aria-hidden="true"> </div> <div class="devsite-search-shortcut-icon-container" aria-hidden="true"> <kbd class="devsite-search-shortcut-icon">/</kbd> </div> </div> </div> </form> <button type="button" search-close class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Close search"></button> </devsite-search> </div> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="de" >Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es" >Español</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419" >Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr" >Français</a> </li> <li role="presentation"> <a role="menuitem" lang="id" >Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="it" >Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl" >Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br" >Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi" >Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr" >Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru" >Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he" >עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar" >العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa" >فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi" >हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn" >বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th" >ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw" >中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja" >日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko" >한국어</a> </li> </ul> </devsite-language-selector> <devsite-user enable-profiles fp-auth id="devsite-user"> <span class="button devsite-top-button" aria-hidden="true" visually-hidden>Sign in</span> </devsite-user> </div> </div> </div> <div class="devsite-collapsible-section "> <div class="devsite-header-background"> <div class="devsite-doc-set-nav-row"> <devsite-tabs class="lower-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Lower tabs"> <tab > <a href="https://developers.google.com/hotels/hotel-prices" track-metadata-eventdetail="https://developers.google.com/hotels/hotel-prices" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - guides" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Guides" track-name="guides" > Guides </a> </tab> <tab > <a href="https://developers.google.com/hotels/hotel-prices/api-reference" track-metadata-eventdetail="https://developers.google.com/hotels/hotel-prices/api-reference" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - api reference" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: API Reference" track-name="api reference" > API Reference </a> </tab> <tab class="devsite-active"> <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/hotel-list-feed" track-metadata-eventdetail="https://developers.google.com/hotels/hotel-prices/xml-reference/hotel-list-feed" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - xml reference" track-metadata-module="primary nav" aria-label="XML Reference, selected" data-category="Site-Wide Custom Events" data-label="Tab: XML Reference" track-name="xml reference" > XML Reference </a> </tab> <tab > <a href="https://developers.google.com/hotels/hotel-prices/dev-guide/where-to-get-help" track-metadata-eventdetail="https://developers.google.com/hotels/hotel-prices/dev-guide/where-to-get-help" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - support" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Support" track-name="support" > Support </a> </tab> </nav> </devsite-tabs> </div> </div> </div> </div> </devsite-header> <devsite-book-nav scrollbars > <div class="devsite-book-nav-filter" > <span class="filter-list-icon material-icons" aria-hidden="true"></span> <input type="text" placeholder="Filter" aria-label="Type to filter" role="searchbox"> <span class="filter-clear-button hidden" data-title="Clear filter" aria-label="Clear filter" role="button" tabindex="0"></span> </div> <nav class="devsite-book-nav devsite-nav nocontent" aria-label="Side menu"> <div class="devsite-mobile-header"> <button type="button" id="devsite-close-nav" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Close navigation" aria-label="Close navigation"> </button> <div class="devsite-product-name-wrapper"> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" aria-label="Upper header breadcrumb"> <li class="devsite-breadcrumb-item devsite-has-google-wordmark"> <a href="https://developers.google.com/hotels" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Google Hotel APIs" > <svg class="devsite-google-wordmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 148 48"> <title>Google</title> <path class="devsite-google-wordmark-svg-path" d="M19.58,37.65c-9.87,0-18.17-8.04-18.17-17.91c0-9.87,8.3-17.91,18.17-17.91c5.46,0,9.35,2.14,12.27,4.94l-3.45,3.45c-2.1-1.97-4.93-3.49-8.82-3.49c-7.21,0-12.84,5.81-12.84,13.02c0,7.21,5.64,13.02,12.84,13.02c4.67,0,7.34-1.88,9.04-3.58c1.4-1.4,2.32-3.41,2.66-6.16H19.58v-4.89h16.47c0.18,0.87,0.26,1.92,0.26,3.06c0,3.67-1.01,8.21-4.24,11.44C28.93,35.9,24.91,37.65,19.58,37.65z M61.78,26.12c0,6.64-5.1,11.53-11.36,11.53s-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53S61.78,19.43,61.78,26.12z M56.8,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C53.84,33.11,56.8,30.22,56.8,26.12z M87.25,26.12c0,6.64-5.1,11.53-11.36,11.53c-6.26,0-11.36-4.89-11.36-11.53c0-6.68,5.1-11.53,11.36-11.53C82.15,14.59,87.25,19.43,87.25,26.12zM82.28,26.12c0-4.15-2.96-6.99-6.39-6.99c-3.43,0-6.39,2.84-6.39,6.99c0,4.11,2.96,6.99,6.39,6.99C79.32,33.11,82.28,30.22,82.28,26.12z M112.09,15.29v20.7c0,8.52-5.02,12.01-10.96,12.01c-5.59,0-8.95-3.76-10.22-6.81l4.41-1.83c0.79,1.88,2.71,4.1,5.81,4.1c3.8,0,6.16-2.36,6.16-6.77v-1.66h-0.18c-1.14,1.4-3.32,2.62-6.07,2.62c-5.76,0-11.05-5.02-11.05-11.49c0-6.51,5.28-11.57,11.05-11.57c2.75,0,4.93,1.22,6.07,2.58h0.18v-1.88H112.09z M107.64,26.16c0-4.06-2.71-7.03-6.16-7.03c-3.49,0-6.42,2.97-6.42,7.03c0,4.02,2.93,6.94,6.42,6.94C104.93,33.11,107.64,30.18,107.64,26.16z M120.97,3.06v33.89h-5.07V3.06H120.97z M140.89,29.92l3.93,2.62c-1.27,1.88-4.32,5.11-9.61,5.11c-6.55,0-11.28-5.07-11.28-11.53c0-6.86,4.77-11.53,10.71-11.53c5.98,0,8.91,4.76,9.87,7.34l0.52,1.31l-15.42,6.38c1.18,2.31,3.01,3.49,5.59,3.49C137.79,33.11,139.58,31.84,140.89,29.92zM128.79,25.77l10.31-4.28c-0.57-1.44-2.27-2.45-4.28-2.45C132.24,19.04,128.66,21.31,128.79,25.77z"/> </svg>Hotel APIs </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/hotels/hotel-prices" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Upper Header" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="Google Hotel Prices API" > Hotel Prices </a> </li> </ul> </span> </div> </div> <div class="devsite-book-nav-wrapper"> <div class="devsite-mobile-nav-top"> <ul class="devsite-nav-list"> <li class="devsite-nav-item"> <a href="/hotels/hotel-prices" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Guides" track-name="guides" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Guides" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Guides </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/hotels/hotel-prices/api-reference" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: API Reference" track-name="api reference" data-category="Site-Wide Custom Events" data-label="Responsive Tab: API Reference" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > API Reference </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/hotels/hotel-prices/xml-reference/hotel-list-feed" class="devsite-nav-title gc-analytics-event devsite-nav-has-children devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: XML Reference" track-name="xml reference" data-category="Site-Wide Custom Events" data-label="Responsive Tab: XML Reference" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > XML Reference </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> <li class="devsite-nav-item"> <a href="/hotels/hotel-prices/dev-guide/where-to-get-help" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Support" track-name="support" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Support" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Support </span> </a> </li> </ul> </div> <div class="devsite-mobile-nav-bottom"> <ul class="devsite-nav-list" menu="_book"> <li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/hotel-list-feed" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/hotel-list-feed" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/hotel-list-feed" ><span class="devsite-nav-text" tooltip>Hotel List</span></a></li> <li class="devsite-nav-item devsite-nav-expandable"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Availability, Rates, and Inventory (ARI)</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-overview" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-overview" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-overview" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-property" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-property" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-property" ><span class="devsite-nav-text" tooltip>Transaction (Property Data)</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-rate" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-rate" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-rate" ><span class="devsite-nav-text" tooltip>OTA_HotelRateAmountNotifRQ</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-avail" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-avail" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-avail" ><span class="devsite-nav-text" tooltip>OTA_HotelAvailNotifRQ</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-inv" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-inv" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-inv" ><span class="devsite-nav-text" tooltip>OTA_HotelInvCountNotifRQ</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-tax" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-tax" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-tax" ><span class="devsite-nav-text" tooltip>TaxFeeInfo</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-promotions" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-promotions" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-promotions" ><span class="devsite-nav-text" tooltip>Promotions</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-rate-modifications" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-rate-modifications" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-rate-modifications" ><span class="devsite-nav-text" tooltip>RateModifications</span></a></li><li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/ari-extra-guest-charges" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/ari-extra-guest-charges" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/ari-extra-guest-charges" ><span class="devsite-nav-text" tooltip>ExtraGuestCharges</span></a></li></ul></div></li> <li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/transaction-messages" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/transaction-messages" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/transaction-messages" ><span class="devsite-nav-text" tooltip>Pricing &amp; Room Inventory (Transactions)</span></a></li> <li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/rate-rules" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/rate-rules" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/rate-rules" ><span class="devsite-nav-text" tooltip>Rate Rules</span></a></li> <li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/queries" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/queries" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/queries" ><span class="devsite-nav-text" tooltip>Query &amp; Hint Messages</span></a></li> <li class="devsite-nav-item"><a href="/hotels/hotel-prices/xml-reference/datetime" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/xml-reference/datetime" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/xml-reference/datetime" ><span class="devsite-nav-text" tooltip>Date/Time Formats</span></a></li> <li class="devsite-nav-item"><a href="/hotels/hotel-prices/dev-guide/country-codes" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /hotels/hotel-prices/dev-guide/country-codes" track-type="bookNav" track-name="click" track-metadata-eventdetail="/hotels/hotel-prices/dev-guide/country-codes" ><span class="devsite-nav-text" tooltip>Country codes</span></a></li> </ul> </div> </div> </nav> </devsite-book-nav> <section id="gc-wrapper"> <main role="main" class="devsite-main-content" has-book-nav > <devsite-content> <article class="devsite-article"> <div class="devsite-article-meta nocontent" role="navigation"> <ul class="devsite-breadcrumb-list" aria-label="Breadcrumb"> <li class="devsite-breadcrumb-item "> <a href="https://developers.google.com/" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="" > Home </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/products" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="" > Products </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/hotels" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="Google Hotel APIs" > Hotel APIs </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/hotels/hotel-prices" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="4" track-type="globalNav" track-name="breadcrumb" track-metadata-position="4" track-metadata-eventdetail="Google Hotel Prices API" > Hotel Prices </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/hotel-list-feed" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="5" track-type="globalNav" track-name="breadcrumb" track-metadata-position="5" track-metadata-eventdetail="" > XML Reference </a> </li> </ul> <devsite-thumb-rating position="header"> </devsite-thumb-rating> </div> <devsite-feedback position="header" project-name="Hotel Prices" product-id="82128" bucket="Hotels" context="DevSite feedback link" version="t-devsite-webserver-20241114-r00-rc02.464922260396498922" data-label="Send Feedback Button" track-type="feedback" track-name="sendFeedbackLink" track-metadata-position="header" class="nocontent" project-feedback-url="https://support.google.com/hotelprices/" project-icon="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png" project-support-url="https://support.google.com/hotelprices/" > <button> Send feedback </button> </devsite-feedback> <h1 class="devsite-page-title" tabindex="-1"> Pricing &amp; Room Inventory (Transactions) XML Reference </h1> <devsite-feature-tooltip ack-key="AckCollectionsBookmarkTooltipDismiss" analytics-category="Site-Wide Custom Events" analytics-action-show="Callout Profile displayed" analytics-action-close="Callout Profile dismissed" analytics-label="Create Collection Callout" class="devsite-page-bookmark-tooltip nocontent" dismiss-button="true" id="devsite-collections-dropdown" dismiss-button-text="Dismiss" close-button-text="Got it"> <devsite-bookmark></devsite-bookmark> <span slot="popout-heading"> Stay organized with collections </span> <span slot="popout-contents"> Save and categorize content based on your preferences. </span> </devsite-feature-tooltip> <div class="devsite-page-title-meta"><devsite-view-release-notes></devsite-view-release-notes></div> <devsite-toc class="devsite-nav" depth="2" devsite-toc-embedded > </devsite-toc> <div class="devsite-article-body clearfix "> <p>This page provides a reference for the XML-based <a href="/hotels/hotel-prices/dev-guide/transaction-overview">Transaction messages</a>.</p> <h2 id="Transaction" data-text="&lt;Transaction&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></h2> <p>The root element of a <a href="/hotels/hotel-prices/dev-guide/transaction-overview">Transaction message</a> is <code translate="no" dir="ltr">&lt;Transaction&gt;</code>. It is a container for descriptive information about rooms and packages and pricing and availability for rooms and packages.</p> <p>The <code translate="no" dir="ltr">&lt;Transaction&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <strong><code translate="no" dir="ltr">&lt;Transaction&gt;</code></strong> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;Result&gt;</code></span> // Pricing and availability + <span class="nocode"><code translate="no" dir="ltr">&lt;Rates&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></span> + ... </pre> <p>Messages that use <code translate="no" dir="ltr">&lt;Transaction&gt;</code> as the root element require at least one child element. Transaction messages can have any number of child elements, as long as the total message size does not exceed 100 MB.</p> <aside class="key-point"><strong>Key Point:</strong><span> HTML syntax is not allowed within your XML elements (even if it&#39;s escaped). All Transaction messages containing HTML will be rejected.</span></aside> <h3 id="transaction-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;Transaction&gt;</code> element uses the following syntax:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&gt; &lt;Transaction timestamp=&#34;<var translate="no">timestamp</var>&#34; id=&#34;<var translate="no">transaction_ID</var>&#34;&gt; &lt;!-- Defines data about a room or package (Room Bundle) --&gt; &lt;PropertyDataSet&gt; ... &lt;/PropertyDataSet&gt; &lt;!-- Updates/sets prices and availability for rooms and Room Bundles --&gt; &lt;!-- (Also removes itineraries from inventory) --&gt; &lt;Result&gt; ... &lt;/Result&gt; &lt;/Transaction&gt; </code></pre> <h3 id="transaction-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;Transaction&gt;</code> element has the following attributes:</p> <table class="fixed"> <tbody> <tr> <th width="18%">Attribute</th> <th width="12%">Required?</th> <th width="12%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">id</span></td> <td><span translate="no">Required</span></td> <td><span transalate="no">string</span></td> <td>A unique identifier for each Transaction message.</td> </tr> <tr> <td><span translate="no">partner</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>The partner account that the Transaction message is for. You typically use this if your backend provides price feeds for multiple partner accounts. This string value is the "Partner key" value listed on the <a href="//hotelcenter.google.com/accountsettings/basicsettings?a="> Account settings page</a> in Hotel Center.</td> </tr> <tr> <td><span translate="no">timestamp</span></td> <td><span translate="no">Required</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#DateTime">DateTime</a></span></td> <td><p>The moment in time that the Transaction message was sent.</p> <p>Any message sent with a timestamp within the prior 24 hours will be processed, and those that haven't will be discarded.</p> <p>Messages are processed in order of <code translate="no" dir="ltr">timestamp</code> and not in the order of being received. For example, a price update with a timestamp of <code translate="no" dir="ltr">2019-05-03 14:09:00</code> that is received after a message with a timestamp of <code translate="no" dir="ltr">2019-05-03 14:10:00</code> will still be processed in order, and the price from the message with the timestamp of <code translate="no" dir="ltr">2019-05-03 14:10:00</code> will be used.</p> </td> </tr> </tbody> </table> <h3 id="transaction-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;Transaction&gt;</code> element has the following child elements:</p> <table class="fixed"> <tbody> <tr> <th width="19%">Child&nbsp;Element</th> <th width="10%">Required?</th> <th width="20%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;PropertyDataSet&gt;</span></td> <td><span translate="no">Optional*</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PropertyDataSet"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></a></span></td> <td><p>Describes a specific room and Room Bundles. You typically use this element in a separate Transaction message to define shared values for Room Bundles and reduce the size of your Transaction messages.</p> </td> </tr> <tr> <td><span translate="no">&lt;Result&gt;</span></td> <td><span translate="no">Optional*</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a></span></td> <td><p>Pricing data for a room's itinerary or a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomBundle"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></a> element that defines Room Bundles and additional types of rooms for the property. The <code translate="no" dir="ltr">&lt;Result&gt;</code> element can also be used to remove itineraries from inventory.</p> </td> </tr> <tr> <td colspan="4">* At least one of <code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code> or <code translate="no" dir="ltr">&lt;Result&gt;</code> is required.</td> </tr> </tbody> </table> <h3 id="transaction-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="room-data" data-text="Room data" tabindex="-1">Room data</h3><p>The following example defines room data in a Transaction message:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;5440OF&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single King Bed Room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Simple Lit de Roi&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;One king bed with pillowtop mattresses, 300-thread-count linens, and down comforters (bedspreads). City view. 300 square feet. Desk with rolling chair. Multi-line phone with voice mail. Cable/satellite TV with complimentary HBO and pay movies.&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Un très grand lit avec matelas à plateau-coussin, ...&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Bathroom View&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;La salle de baines&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;Capacity&gt;4&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="pricing-data" data-text="Pricing data" tabindex="-1">Pricing data</h3><p>The following example defines pricing data in a Transaction message:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;060773&lt;/Property&gt; &lt;RoomID&gt;RoomType101&lt;/RoomID&gt; &lt;PackageID&gt;Package101&lt;/PackageID&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;278.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id=&quot;site1&quot;/&gt; &lt;/AllowablePointsOfSale&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;052213&lt;/Property&gt; &lt;RoomID&gt;RoomType101&lt;/RoomID&gt; &lt;PackageID&gt;Package101&lt;/PackageID&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;299.98&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;26.42&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id=&quot;otto&quot;/&gt; &lt;PointOfSale id=&quot;simon&quot;/&gt; &lt;/AllowablePointsOfSale&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="nightly-rates" data-text="Nightly rates" tabindex="-1">Nightly rates</h3><p>The following example defines pricing data for 1 to 7 nights beginning June 7th, 2023:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-08-24T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;209.99&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;419.98&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;3&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;614.97&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;21.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;4&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;819.96&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;21.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;5&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;999.95&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;21.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;6&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;1193.94&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;21.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-07&lt;/Checkin&gt; &lt;Nights&gt;7&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;1259.93&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;21.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> <p><br></p> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="base-conditional-rates" data-text="Base &amp; conditional rates" tabindex="-1">Base &amp; conditional rates</h3><p>The following example shows a Transaction message that contains a base rate and a <a href="/hotels/hotel-prices/dev-guide/fenced-rates">conditional rate</a>:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;Transaction timestamp=&quot;2023-05-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2023-04-10&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;200.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;20.00&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;Rates&gt; &lt;!-- The rate_rule_id is required when using conditional rates --&gt; &lt;Rate rate_rule_id=&quot;mobile&quot;&gt; &lt;!-- Override base rate and taxes for conditional rates --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;180.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;18.00&lt;/Tax&gt; &lt;!-- NOTE: OtherFees is inherited from the above setting --&gt; &lt;Custom1&gt;ratecode123&lt;/Custom1&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="remove-inventory" data-text="Remove inventory" tabindex="-1">Remove inventory</h3><p>The following example removes several inventories (1-night stays for several different dates) for a hotel from inventory:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2023-05-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1123581321&lt;/Property&gt; &lt;Checkin&gt;2023-05-23&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Unavailable&gt; &lt;NoVacancy/&gt; &lt;/Unavailable&gt; &lt;Tax currency=&quot;USD&quot;&gt;0&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0&lt;/OtherFees&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;1123581321&lt;/Property&gt; &lt;Checkin&gt;2023-05-24&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Unavailable&gt; &lt;NoVacancy/&gt; &lt;/Unavailable&gt; &lt;Tax currency=&quot;USD&quot;&gt;0&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0&lt;/OtherFees&gt; &lt;/Result&gt; &lt;!---Sending &lt;Baserate&gt; is optional with &lt;Unavailable&gt; --&gt; &lt;Result&gt; &lt;Property&gt;1123581321&lt;/Property&gt; &lt;Checkin&gt;2023-05-25&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;-1&lt;/Baserate&gt; &lt;Unavailable&gt; &lt;NoVacancy/&gt; &lt;/Unavailable&gt; &lt;Tax currency=&quot;USD&quot;&gt;0&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0&lt;/OtherFees&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> <h2 id="PropertyDataSet" data-text="&lt;PropertyDataSet&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></h2> <p>A container for room and package (or <em>Room Bundle</em>) information in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Transaction"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></a> message. Values set on a hotel override values set on a partner. Google stores this information so that you do not need to define it every time you send pricing updates.</p> <p>The <code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <strong><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></strong> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;Result&gt;</code></span> // Pricing and availability + <span class="nocode"><code translate="no" dir="ltr">&lt;Rates&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></span> + ... </pre> <p>For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p> <h3 id="propertydataset-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Transaction ... &gt;</span> &lt;PropertyDataSet&gt; &lt;!-- (Required) ID that matches the Hotel List Feed --&gt; &lt;Property&gt;<var translate="no">hotel_ID</var>&lt;/Property&gt; &lt;!-- (Optional) Defines metadata about a room --&gt; &lt;RoomData&gt; ... &lt;/RoomData&gt; &lt;!-- (Optional) Defines package metadata to be paired with rooms (Room Bundles) --&gt; &lt;PackageData&gt; ... &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; <span class="nocode">... &lt;/Transaction&gt;</span></pre> <h3 id="propertydataset-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code> element has no attributes.</p> <h3 id="propertydataset-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code> element has the following child elements:</p> <table class="fixed"> <tbody> <tr> <th width="18%">Child&nbsp;Element</th> <th width="20%">Required?</th> <th width="18%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;PackageData&gt;</span></td> <td><span translate="no">Optional*</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a></span></td> <td>Describes a Room Bundle. This data is associated with a partner and hotel, but not with an itinerary. This element is similar to <code translate="no" dir="ltr">&lt;RoomData&gt;</code>, but it describes amenities and terms that are not part of the physical room description. <p>You reference the package ID in your pricing updates.</p> <p>For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p> </td> </tr> <tr> <td><span translate="no">&lt;Property&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td>The ID of a hotel that the associated data applies to. The value of this element must be a string that matches the listing <code translate="no" dir="ltr">&lt;id&gt;</code> in your Hotel List Feed. </td> </tr> <tr> <td><span translate="no">&lt;RoomData&gt;</span></td> <td><span translate="no">Optional*</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a></span></td> <td>Describes a room. This data is associated with a partner and hotel, but not with an itinerary. <p>You reference the room ID in your pricing updates.</p></td> </tr> <tr> <td colspan="4">* At least one of <code translate="no" dir="ltr">&lt;PackageData&gt;</code> or <code translate="no" dir="ltr">&lt;RoomData&gt;</code> is required.</td> </tr> </tbody> </table> <h3 id="propertydataset-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="room-and-package-data" data-text="Room and package data" tabindex="-1">Room and package data</h3><p>The following example shows both room and package data in a <code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code>:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single Bed Room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre single&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Non-smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Pas de fumiers&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Living area&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;/RoomData&gt; &lt;PackageData&gt; &lt;PackageID&gt;P54321&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Breakfast Included&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Avec le petit déjeuner&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Includes a delightful array of jams and jellies.&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Comprend une délicieuse gamme de confitures et gelées.&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre> <p>When you send prices and availability for this room and Room Bundle, you reference the room and package IDs in your pricing messages. The result is that you greatly reduce the size of your messages, and also reduce the amount of errors you might encounter due to duplicate data. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p></section> </div> <h2 id="RoomData" data-text="&lt;RoomData&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></h2> <p>Defines itinerary-independent metadata about rooms, and by extension, Room Bundles (since Room Bundles are rooms plus additional amenities). Use <code translate="no" dir="ltr">&lt;RoomData&gt;</code> to reduce the repetition of descriptive data in your Price Feed.</p> <p>The <code translate="no" dir="ltr">&lt;RoomData&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <strong><code translate="no" dir="ltr">&lt;RoomData&gt;</code></strong> + <span class="nocode"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;Result&gt;</code></span> // Pricing and availability + <span class="nocode"><code translate="no" dir="ltr">&lt;Rates&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></span> + ... </pre> <p><code translate="no" dir="ltr">&lt;RoomData&gt;</code> elements contain information that is associated with a partner and hotel, but not with an itinerary. The intended purpose is for all non-itinerary data.</p> <p>The <code translate="no" dir="ltr">&lt;RoomData&gt;</code> element is similar to <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a>, but it describes the physical room rather than amenities and terms of a package. You use <code translate="no" dir="ltr">&lt;RoomData&gt;</code> and <code translate="no" dir="ltr">&lt;PackageData&gt;</code> in combination to provide details about Room Bundles. For individual rooms that are not part of a package, use just <code translate="no" dir="ltr">&lt;RoomData&gt;</code>.</p> <p>You can define both the <code translate="no" dir="ltr">&lt;RoomData&gt;</code> and <code translate="no" dir="ltr">&lt;PackageData&gt;</code> elements for the same room or Room Bundle. When Google displays that room or package in the search results, it will include the descriptions from both, separated by a hyphen.</p> <p>For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p> <h3 id="roomdata-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;RoomData&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Transaction ... &gt; &lt;PropertyDataSet&gt; ...</span> &lt;RoomData&gt; &lt;RoomID&gt;<var translate="no">room_ID</var>&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text="<var translate="no">room_name</var>" language="<var translate="no">language_code</var>"/&gt; ... &lt;/Name&gt; &lt;Description&gt; &lt;Text text="<var translate="no">room_description</var>" language="<var translate="no">language_code</var>"/&gt; ... &lt;/Description&gt; &lt;Capacity&gt;<var translate="no">max_number_of_occupants</var>&lt;/Capacity&gt; &lt;Occupancy&gt;<var translate="no">max_number_of_intended_occupants</var>&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;!-- optional info about the types of guests, whether adults, children, or seniors --&gt;&lt;/OccupancyDetails&gt; &lt;OccupancySettings&gt; &lt;MinOccupancy&gt;<var translate="no">min_number_of_occupants</var>&lt;/MinOccupancy&gt; &lt;MinAge&gt;<var translate="no">min_age_of_occupants</var>&lt;/MinAge&gt; &lt;/OccupancySettings&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text="<var translate="no">photo_description</var>" language="<var translate="no">language_code</var>"/&gt; ... &lt;/Caption&gt; &lt;URL&gt;<var translate="no">photo_location</var>&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;RoomFeatures&gt; ... &lt;/RoomFeatures&gt; &lt;/RoomData&gt; <span class="nocode">... &lt;/PropertyDataSet&gt; &lt;/Transaction&gt;</span></pre> <h3 id="roomdata-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;RoomData&gt;</code> element has no attributes.</p> <h3 id="roomdata-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;RoomData&gt;</code> element has the following child elements:</p> <table class="fixed"> <tbody> <tr> <th width="18%">Child&nbsp;Element</th> <th width="10%">Required?</th> <th width="16%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;Capacity&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">integer</span></td> <td>The maximum number of guests that a room <em>can physically accommodate</em>. For a room, capacity is greater than or equal to occupancy. <p>When specified, this value must be equal to or greater than the value of the <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> element, which is the intended number of guests for a particular room. For example, a large suite's <code translate="no" dir="ltr">&lt;Capacity&gt;</code> might be 6, but the <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> for it is 4.</p> <p>The value of <code translate="no" dir="ltr">&lt;Capacity&gt;</code> must be a positive integer between 1 and 20, inclusive.</p> </td> </tr> <tr> <td><span translate="no">&lt;Description&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>A detailed description of the room. This element should contain information not described by other elements or the <code translate="no" dir="ltr">&lt;Name&gt;</code> element. You shouldn't use all capital letters when specifying the description of the room. <p>The <code translate="no" dir="ltr">&lt;Description&gt;</code> element takes a single child element, <code translate="no" dir="ltr">&lt;Text&gt;</code>, which has the following two required attributes:</p> <ul> <li><code translate="no" dir="ltr">text</code>: A detailed description of the room.</li> <li><code translate="no" dir="ltr">language</code>: A two-letter language code; for example, <code translate="no" dir="ltr">fr</code>.</li> </ul> <p>Use a separate <code translate="no" dir="ltr">&lt;Text&gt;</code> element for each language in which your ad or free booking link might appear (with different values for the <code translate="no" dir="ltr">language</code> attributes).</p> <p>The following example shows French and English versions of the room description:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Description&gt; &lt;Text text="Two queen-sized beds" language="en"/&gt; &lt;Text text="Deux lits de la reine" language="fr"/&gt; &lt;/Description&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;Name&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td>The name of the category of room. This value should match what appears on the hotel's landing page (formerly point of sale). Don't set the value of this element to all capital letters. <p>This element takes a single child element, <code translate="no" dir="ltr">&lt;Text&gt;</code>, which has the following two required attributes:</p> <ul> <li><code translate="no" dir="ltr">text</code>: The name of the room.</li> <li><code translate="no" dir="ltr">language</code>: A two-letter language code; for example, <code translate="no" dir="ltr">fr</code>.</li> </ul> <p>Use a separate <code translate="no" dir="ltr">&lt;Text&gt;</code> element for each language in which your ad or free booking link might appear (with different values for the <code translate="no" dir="ltr">language</code> attributes).</p> <p>The following example shows French and English versions of the room name:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Name&gt; &lt;Text text="Standard Double Room" language="en"/&gt; &lt;Text text="Le chambre double" language="fr"/&gt; &lt;/Name&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;Occupancy&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">integer</span></td> <td>The maximum number of guests that a room <em>is intended for</em>. For example, a large suite might be able to physically accommodate 6 guests (capacity = 6), but is intended for up to 4 guests only. <p>This value must be less than or equal to the <code translate="no" dir="ltr">&lt;Capacity&gt;</code> element, which is the number of people that the room can physically accommodate.</p> <p>The value of <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> must be a positive integer between 1 and 99, inclusive.</p> <p><code translate="no" dir="ltr">&lt;Occupancy&gt;</code> may be accompanied by <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code>, which specifies the type of guests (adults or children). Refer to <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#OccupancyDetails"><code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code></a> for syntax and description of child elements.</p></td> </tr> <tr> <td><span translate="no">&lt;OccupancySettings&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Settings which can restrict or modify the occupancy requirements of a room. <p>The <code translate="no" dir="ltr">&lt;OccupancySettings&gt;</code> element takes the following child elements:</p> <ul> <li><code translate="no" dir="ltr">&lt;MinOccupancy&gt;</code>: The minimum number of guests that can stay in a room. For example, if this is set to <code translate="no" dir="ltr">2</code>, this room cannot be booked for a single guest. <p>The value of <code translate="no" dir="ltr">&lt;MinOccupancy&gt;</code> must be a positive integer between 1 and 99, inclusive.</p></li> <li><code translate="no" dir="ltr">&lt;MinAge&gt;</code>: The minimum age for all guests staying in a room. For example, if this is set to <code translate="no" dir="ltr">18</code>, this room can only be booked for groups where all guests are of age 18 or older. <p>The value of <code translate="no" dir="ltr">&lt;MinAge&gt;</code> must be a positive integer between 0 and 99, inclusive.</p></li> </ul> <pre class="prettyprint" translate="no" dir="ltr">&lt;OccupancySettings&gt; &lt;MinOccupancy&gt;2&lt;/MinOccupancy&gt; &lt;MinAge&gt;16&lt;/MinAge&gt; &lt;/OccupancySettings&gt;</pre> <p>Not all child elements need to be included.</p> </td> </tr> <tr> <td><span translate="no">&lt;PhotoURL&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>A URL and optional caption for a photo of the given room or Room Bundle. You can specify more than one <code translate="no" dir="ltr">&lt;PhotoURL&gt;</code> for a room or Room Bundle. Each photo URL must be in its own <code translate="no" dir="ltr">&lt;PhotoURL&gt;</code>. <p>This element takes the following child elements:</p> <ul> <li><code translate="no" dir="ltr">&lt;URL&gt;</code>: Specifies the location of the photo. The location should be public (not behind a firewall) and should include the protocol (for example, <code translate="no" dir="ltr">https://</code>). Use only one <code translate="no" dir="ltr">&lt;URL&gt;</code> per <code translate="no" dir="ltr">&lt;PhotoURL&gt;</code>.</li> <li><code translate="no" dir="ltr">&lt;Caption&gt;</code>: Defines the caption for the photo. This element takes a single child element, <code translate="no" dir="ltr">&lt;Text&gt;</code>, which has two required attributes: <code translate="no" dir="ltr">text</code> and <code translate="no" dir="ltr">language</code>. The <code translate="no" dir="ltr">text</code> attribute is the caption, and the <code translate="no" dir="ltr">language</code> attribute specifies a two-letter language code such as <code translate="no" dir="ltr">en</code>.</li> </ul> <p>Example:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;PhotoURL&gt; &lt;URL&gt;https://www.example.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;Caption&gt; &lt;Text text="A bright and breezy way to enjoy your mornin' cuppa tea." language="en"/&gt; &lt;Text text="Une façon lumineuse et aérée pour profiter de votre journée tasse de thé." language="fr"/&gt; &lt;/Caption&gt; &lt;/PhotoURL&gt; &lt;PhotoURL&gt; &lt;URL&gt;https://www.foo.com/static/bar/image5678.jpg&lt;/URL&gt; &lt;Caption&gt; &lt;Text text="Or, perhaps you prefer coffee." language="en"/&gt; &lt;Text text="Ou peut-être préférez-vous le café." language="fr"/&gt; &lt;/Caption&gt; &lt;/PhotoURL&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;RoomFeatures&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomFeatures"><code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code></a></span></td> <td>Contains information about room features.</td> </tr> <tr> <td><span translate="no">&lt;RoomID&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td>The unique ID for the room. Use this ID to match the room data with the <code translate="no" dir="ltr">&lt;Result&gt;</code> blocks in your pricing updates. For more information, refer to <a href="https://developers.google.com/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>. (You can also use this ID to reference a common room definition in a single Transaction message when defining room data inline.)</td> </tr> </tbody> </table> <h3 id="roomdata-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="room-data_1" data-text="Room data" tabindex="-1">Room data</h3><p>The following example defines room data:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;5440OF&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single King Bed Room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Simple Lit de Roi&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;One king bed with pillowtop mattresses, 300-thread-count linens, and down comforters (bedspreads). City view. 300 square feet. Desk with rolling chair. Multi-line phone with voice mail. Cable/satellite TV with complimentary HBO and pay movies.&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Un très grand lit avec matelas à plateau-coussin, ...&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Bathroom View&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;La salle de baines&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;Capacity&gt;4&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="room-package-metadata" data-text="Room &amp; package metadata" tabindex="-1">Room &amp; package metadata</h3><p>The following example defines room and package metadata:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single Bed Room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre single&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Non-smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Pas de fumiers&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Living area&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;/RoomData&gt; &lt;PackageData&gt; &lt;PackageID&gt;P54321&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Breakfast Included&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Avec le petit déjeuner&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Includes a delightful array of jams and jellies.&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Comprend une délicieuse gamme de confitures et gelées.&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="multiple-room-bundles" data-text="Multiple room bundles" tabindex="-1">Multiple room bundles</h3><p>The following example defines room and package metadata for multiple Room Bundles:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;!-- A transaction message with room types result. --&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;12345&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;single&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre simple&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;A single room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre simple&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Living area&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;PhotoURL&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1235.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;Capacity&gt;2&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;RoomData&gt; &lt;RoomID&gt;double&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Double room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre double&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Occupancy&gt;1&lt;/Occupancy&gt; &lt;/RoomData&gt; &lt;PackageData&gt; &lt;PackageID&gt;refundbreakfast&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Refundable Room with Breakfast&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre remboursable avec le petit déjeuner&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Continental Breakfast&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Petit déjeuner continental&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;3&quot;/&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;/PackageData&gt; &lt;PackageData&gt; &lt;PackageID&gt;prepaid&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Nonrefundable&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Non remboursable&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Blah blah blad&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le blah blah blad&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;0&quot;/&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> </div> <h2 id="RoomFeatures" data-text="&lt;RoomFeatures&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code></h2> <p>Defines features found in the room.</p> <p>The <code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <strong><code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code></strong> </pre> <h3 id="roomfeatures-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span> <span class="nocode">&lt;Transaction ... &gt;</span> <span class="nocode">&lt;PropertyDataSet ... &gt; ...</span> &lt;RoomData&gt; &lt;RoomFeatures&gt; &lt;JapaneseHotelRoomStyle&gt;[western|japanese|japanese_western]&lt;/JapaneseHotelRoomStyle&gt; &lt;Beds&gt; &lt;Bed size="[single|semi_double|double|queen|king]"&gt; &lt;Width unit="cm" number="<var translate="no">width</var>"/&gt; &lt;Length unit="cm" number="<var translate="no">length</var>"/&gt; &lt;/Bed&gt; &lt;!-- Include with any additional beds. --&gt; &lt;/Beds&gt; &lt;Suite/&gt; &lt;Capsule/&gt; &lt;Roomsharing&gt;[shared|private]&lt;/Roomsharing&gt; &lt;Outdoor/&gt; &lt;MobilityAccessible/&gt; &lt;Smoking&gt;[smoking|non_smoking]&lt;/Smoking&gt; &lt;BathAndToilet relation="[together|separate]"&gt; &lt;Bath bathtub="[false|true]" shower="[false|true]"/&gt; &lt;Toilet electronic_bidet="[false|true]" mobility_accessible="[false|true]"/&gt; &lt;/BathAndToilet&gt; &lt;OpenAirBath/&gt; &lt;AirConditioning/&gt; &lt;Balcony/&gt; &lt;Views&gt; &lt;!-- (Optional) Defines the type of views from the room. --&gt; &lt;!-- Example: &lt;OceanView/&gt; --&gt; &lt;/Views&gt; &lt;/RoomFeatures&gt; ... &lt;/RoomData&gt; <span class="nocode">... &lt;/PropertyDataSet&gt; &lt;/Transactions&gt;</span></pre> <h3 id="roomfeatures-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code> element has no attributes.</p> <h3 id="roomfeatures-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code> element has the following child elements:</p> <table class="fixed"> <tr> <th width="18%">Child&nbsp;Element</th> <th width="20%">Required?</th> <th width="18%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;JapaneseHotelRoomStyle&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td><p>Indicates the style of a Japanese hotel room.</p> <p>Valid values are:</p> <ul> <li><code translate="no" dir="ltr">western</code>: A western style room with beds.</li> <li><code translate="no" dir="ltr">japanese</code>: A Japanese style room with futon beds.</li> <li><code translate="no" dir="ltr">japanese_western</code>: A Japanese western style room with both western style beds and Japanese style futons.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;Beds&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Contains as many <code translate="no" dir="ltr">&lt;Bed&gt;</code> as the room has. Note that the Japanese futons shouldn't be counted here. <p>Each <code translate="no" dir="ltr">&lt;Bed&gt;</code> has the following attributes:</p> <ul> <li><code translate="no" dir="ltr">size</code> (optional): Valid values are <code translate="no" dir="ltr">single</code>, <code translate="no" dir="ltr">semi_double</code>, <code translate="no" dir="ltr">double</code>, <code translate="no" dir="ltr">queen</code>, and <code translate="no" dir="ltr">king</code>.</li> </ul> Each <code translate="no" dir="ltr">&lt;Bed&gt;</code> has the following child elements: <ul> <li><code translate="no" dir="ltr">&lt;Width&gt;</code> (optional): Specifies the bed width. Must have the attribute <code translate="no" dir="ltr">unit</code> with the value <code translate="no" dir="ltr">cm</code> and the attribute <code translate="no" dir="ltr">number</code> with the width of the bed in integer centimeters.</li> <li><code translate="no" dir="ltr">&lt;Length&gt;</code> (optional): Specifies the bed length. Must have the attribute <code translate="no" dir="ltr">unit</code> with the value <code translate="no" dir="ltr">cm</code> and the attribute <code translate="no" dir="ltr">number</code> with the length of the bed in integer centimeters.</li> </ul> Example: <pre class="prettyprint" translate="no" dir="ltr">&lt;Beds&gt; &lt;Bed size="double"&gt; &lt;Width unit="cm" number="140"/&gt; &lt;Length unit="cm" number="195"/&gt; &lt;/Bed&gt; &lt;Bed/&gt; &lt;!-- Size unknown --&gt; &lt;/Beds&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;Suite&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room is a suite.</td> </tr> <tr> <td><span translate="no">&lt;Capsule&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room is a capsule room.</td> </tr> <tr> <td><span translate="no">&lt;Roomsharing&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td>Whether this room is shared with other occupants such as owners or other guests. Valid values are <code translate="no" dir="ltr">shared</code> and <code translate="no" dir="ltr">private</code>.</td> </tr> <tr> <td><span translate="no">&lt;Outdoor&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room is outdoor lodging that doesn't have fixed walls, plumbing, and climate control. For example, hotel rooms are not outdoor lodging whereas campsites where guests stay in tents and RV parks where guests bring their own RV are outdoor lodging.</td> </tr> <tr> <td><span translate="no">&lt;MobilityAccessible&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room is mobility-accessible.</td> </tr> <tr> <td><span translate="no">&lt;Smoking&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td>Whether this room is a non-smoking room or a smoking room. Valid values are <code translate="no" dir="ltr">non_smoking</code> and <code translate="no" dir="ltr">smoking</code>.</td> </tr> <tr> <td><span translate="no">&lt;BathAndToilet&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Contains information about a bath and toilet in the room. <p>The attribute is:</p> <ul> <li><code translate="no" dir="ltr">relation</code> (optional): Indicates how the bath and toilet are placed against each other. Valid values are <code translate="no" dir="ltr">together</code> (both bath and toilet are located together in the same room (e.g. bathroom) right next to each other) and <code translate="no" dir="ltr">separate</code> (bath and toilet each have dedicated spaces). This attribute must not be set when the room doesn't have both a bath and toilet.</li> </ul> <p>The element optionally takes the following child elements:</p> <ul> <li> <code translate="no" dir="ltr">&lt;Bath&gt;</code> (optional): The existence of this element indicates that the room has a bath. <p>The attributes are:</p> <ul> <li><code translate="no" dir="ltr">bathtub</code> (optional): Indicates that the bath has a bathtub in the bathroom. Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>).</li> <li><code translate="no" dir="ltr">shower</code> (optional): Indicates that the bath has a shower. Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>).</li> </ul> </li> <li> <code translate="no" dir="ltr">&lt;Toilet&gt;</code> (optional): The existence of this element indicates that this room has a toilet. <p>The attributes are:</p> <ul> <li><code translate="no" dir="ltr">electronic_bidet</code> (optional): Indicates that the toilet has an <a href="https://en.wikipedia.org/wiki/Electronic_bidet">electronic bidet</a>. Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>).</li> <li><code translate="no" dir="ltr">mobility_accessible</code> (optional): Indicates that the toilet is mobility-accessible. Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>).</li> </ul> </li> </ul> <p>Example:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;BathAndToilet relation="separate"&gt; &lt;Bath bathtub="1" shower="1"/&gt; &lt;Toilet electronic_bidet="1" mobility_accessible="1"/&gt; &lt;/BathAndToilet&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;OpenAirBath&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room has a private open-air bath.</td> </tr> <tr> <td><span translate="no">&lt;AirConditioning&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room has air conditioning.</td> </tr> <tr> <td><span translate="no">&lt;Balcony&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">empty</span></td> <td>Provide this element when this room has a balcony or lanai.</td> </tr> <tr> <td><span translate="no">&lt;Views&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Valid options include: <p> <code translate="no" dir="ltr">&lt;AirportView/&gt;</code><br> <code translate="no" dir="ltr">&lt;BayView/&gt;</code><br> <code translate="no" dir="ltr">&lt;BeachView>/&gt;</code><br> <code translate="no" dir="ltr">&lt;CastleView/&gt;</code><br> <code translate="no" dir="ltr">&lt;CityView/&gt;</code><br> <code translate="no" dir="ltr">&lt;CountrysideView/&gt;</code><br> <code translate="no" dir="ltr">&lt;CourtyardView/&gt;</code><br> <code translate="no" dir="ltr">&lt;DuneView/&gt;</code><br> <code translate="no" dir="ltr">&lt;ForestView/&gt;</code><br> <code translate="no" dir="ltr">&lt;GardenView/&gt;</code><br> <code translate="no" dir="ltr">&lt;GolfCourseView/&gt;</code><br> <code translate="no" dir="ltr">&lt;HarborView/&gt;</code><br> <code translate="no" dir="ltr">&lt;LagoonView/&gt;</code><br> <code translate="no" dir="ltr">&lt;LakeView/&gt;</code><br> <code translate="no" dir="ltr">&lt;MarinaView/&gt;</code><br> <code translate="no" dir="ltr">&lt;MountainView/&gt;</code><br> <code translate="no" dir="ltr">&lt;NatureView/&gt;</code><br> <code translate="no" dir="ltr">&lt;OceanView/&gt;</code><br> <code translate="no" dir="ltr">&lt;ParkView/&gt;</code><br> <code translate="no" dir="ltr">&lt;PartialOceanView/&gt;</code><br> <code translate="no" dir="ltr">&lt;PisteView/&gt;</code><br> <code translate="no" dir="ltr">&lt;PoolView/&gt;</code><br> <code translate="no" dir="ltr">&lt;PyramidView/&gt;</code><br> <code translate="no" dir="ltr">&lt;RiverView/&gt;</code><br> <code translate="no" dir="ltr">&lt;StreetView/&gt;</code><br> </p> </td> </tr> </table> <h3 id="roomfeatures-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <p><code translate="no" dir="ltr">JapaneseHotelRoomStyle</code> doesn&#39;t have a default value. Omitting a value does not result in an XML error, but your listing is not shown in the search results, when the user filters by room style or beds.</p> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="two-single-beds" data-text="Two single beds" tabindex="-1">Two single beds</h3><p>The following example shows how to use <code translate="no" dir="ltr">&lt;RoomFeatures&gt;</code>:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;RoomID_1&lt;/RoomID&gt; &lt;RoomFeatures&gt; &lt;JapaneseHotelRoomStyle&gt;western&lt;/JapaneseHotelRoomStyle&gt; &lt;Beds&gt; &lt;!-- Two single beds --&gt; &lt;Bed size=&quot;single&quot;&gt; &lt;Width unit=&quot;cm&quot; number=&quot;97&quot;/&gt; &lt;Length unit=&quot;cm&quot; number=&quot;195&quot;/&gt; &lt;/Bed&gt; &lt;Bed size=&quot;single&quot;&gt; &lt;Width unit=&quot;cm&quot; number=&quot;97&quot;/&gt; &lt;Length unit=&quot;cm&quot; number=&quot;195&quot;/&gt; &lt;/Bed&gt; &lt;/Beds&gt; &lt;Suite/&gt; &lt;Capsule/&gt; &lt;Roomsharing&gt;private&lt;/Roomsharing&gt; &lt;Outdoor/&gt; &lt;MobilityAccessible/&gt; &lt;Smoking&gt;non_smoking&lt;/Smoking&gt; &lt;BathAndToilet relation=&quot;separate&quot;&gt; &lt;Bath bathtub=&quot;1&quot; shower=&quot;1&quot;/&gt; &lt;Toilet electronic_bidet=&quot;1&quot; mobility_accessible=&quot;1&quot;/&gt; &lt;/BathAndToilet&gt; &lt;OpenAirBath/&gt; &lt;AirConditioning/&gt; &lt;Balcony/&gt; &lt;Views&gt; &lt;LakeView/&gt; &lt;MarinaView/&gt; &lt;BeachView/&gt; &lt;ForestView/&gt; &lt;MountainView/&gt; &lt;NatureView/&gt; &lt;/Views&gt; &lt;/RoomFeatures&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="two-double-beds" data-text="Two double beds" tabindex="-1">Two double beds</h3><p>The following is an example of <code translate="no" dir="ltr">western</code> style Japanese room with two <code translate="no" dir="ltr">double</code> beds.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2023-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;RoomID_1&lt;/RoomID&gt; &lt;RoomFeatures&gt; &lt;JapaneseHotelRoomStyle&gt;western&lt;/JapaneseHotelRoomStyle&gt; &lt;Beds&gt; &lt;!-- Two double beds--&gt; &lt;Bed size=&quot;double&quot;&gt;&lt;/Bed&gt; &lt;Bed size=&quot;double&quot;&gt;&lt;/Bed&gt; &lt;/Beds&gt; &lt;/RoomFeatures&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> </div> <p><br></p> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="japanese-style-without-bed" data-text="Japanese style without bed" tabindex="-1">Japanese style without bed</h3><p>The following is an example of a Japanese style room without bed. Bed information is not required for <code translate="no" dir="ltr">japanese</code> style room.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2023-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;RoomID_1&lt;/RoomID&gt; &lt;RoomFeatures&gt; &lt;JapaneseHotelRoomStyle&gt;japanese&lt;/JapaneseHotelRoomStyle&gt; &lt;/RoomFeatures&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre><aside class="key-point"><strong>Key Point:</strong><span> Providing bed information for a <strong><code translate="no" dir="ltr">japanese</code></strong> style room has no impact.</span></aside></section> <section><h3 id="japanese-western-with-bed" data-text="Japanese western with bed" tabindex="-1">Japanese western with bed</h3><p>The following is an example of a <code translate="no" dir="ltr">japanese_western</code> style room with <code translate="no" dir="ltr">king</code> size bed.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2023-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;RoomID_1&lt;/RoomID&gt; &lt;RoomFeatures&gt; &lt;JapaneseHotelRoomStyle&gt;japanese_western&lt;/JapaneseHotelRoomStyle&gt; &lt;Beds&gt; &lt;Bed size=&quot;king&quot;&gt;&lt;/Bed&gt; &lt;/Beds&gt; &lt;/RoomFeatures&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre> <p></p> <p>If partner doesn&#39;t have the number of beds information in <code translate="no" dir="ltr">japanese_western</code> rooms, then follow the example:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2023-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;RoomID_1&lt;/RoomID&gt; &lt;RoomFeatures&gt; &lt;JapaneseHotelRoomStyle&gt;japanese_western&lt;/JapaneseHotelRoomStyle&gt; &lt;/RoomFeatures&gt; &lt;/RoomData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> </div> <h2 id="PackageData" data-text="&lt;PackageData&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></h2> <p>Defines itinerary-independent metadata about Room Bundles for a property. This element contains information that is associated with a partner and hotel, but not with an itinerary. The intended purpose is to define all non-itinerary data once and reference it from itinerary data.</p> <p>The <code translate="no" dir="ltr">&lt;PackageData&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <strong><code translate="no" dir="ltr">&lt;PackageData&gt;</code></strong> + <span class="nocode"><code translate="no" dir="ltr">&lt;Result&gt;</code></span> // Pricing and availability + <span class="nocode"><code translate="no" dir="ltr">&lt;Rates&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></span> + ... </pre> <p>The <code translate="no" dir="ltr">&lt;PackageData&gt;</code> element is similar to <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a>, but it describes rate features and terms that aren&#39;t part of the physical room description. You use <code translate="no" dir="ltr">&lt;RoomData&gt;</code> and <code translate="no" dir="ltr">&lt;PackageData&gt;</code> in combination to provide details about Room Bundles and rate features. For individual rooms that aren&#39;t part of a package, use just <code translate="no" dir="ltr">&lt;RoomData&gt;</code>.</p> <p>You can define both the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a> and <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> elements for the same room or Room Bundle. When Google displays that room or package in the search results, it will include the descriptions from both, separated by a hyphen.</p> <p>If you update a single <code translate="no" dir="ltr">&lt;PackageData&gt;</code> element for a property, you must update all <code translate="no" dir="ltr">&lt;PackageData&gt;</code> and <code translate="no" dir="ltr">&lt;RoomData&gt;</code> elements for the property. Each <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PropertyDataSet"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></a> is considered all data about the property, and overwrites any existing data.</p> <p>For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p> <h3 id="packagedata-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;PackageData&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span> <span class="nocode">&lt;Transaction ... &gt;</span> <span class="nocode">&lt;PropertyDataSet ... &gt;</span> &lt;PackageData&gt; &lt;PackageID&gt;<var translate="no">package_ID</var>&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text="<var translate="no">package_name</var>" language="<var translate="no">language_code</var>"/&gt; ... &lt;/Name&gt; &lt;Description&gt; &lt;Text text="<var translate="no">package_description</var>" language="<var translate="no">language_code</var>"/&gt; ... &lt;/Description&gt; &lt;Refundable available="[false|true]" refundable_until_days="<var translate="no">number_of_days</var>" refundable_until_time="<var translate="no">time</var>"/&gt; &lt;ChargeCurrency&gt;[deposit|hotel|installments|web]&lt;/ChargeCurrency&gt; &lt;Occupancy&gt;<var translate="no">max_number_of_intended_occupants</var>&lt;/Occupancy&gt; &lt;OccupancyDetails&gt;&lt;!-- optional info about the types of guests, whether adults or children --&gt;&lt;/OccupancyDetails&gt; &lt;!-- For these next 3 elements, boolean_value can be 0/1 or true/false --&gt; &lt;BreakfastIncluded&gt;<var translate="no">boolean_value</var>&lt;/BreakfastIncluded&gt; &lt;InternetIncluded&gt;<var translate="no">boolean_value</var>&lt;/InternetIncluded&gt; &lt;ParkingIncluded&gt;<var translate="no">boolean_value</var>&lt;/ParkingIncluded&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text="<var translate="no">photo_description</var>" language="<var translate="no">language_code</var>"/&gt; ... &lt;/Caption&gt; &lt;URL&gt;<var translate="no">photo_location</var>&lt;/URL&gt; &lt;/PhotoURL&gt; ... &lt;Meals&gt; &lt;Breakfast included="[true|false]" buffet="[true|false]" in_room="[true|false]" in_private_space="[true|false]"/&gt; &lt;Dinner included="[true|false]" buffet="[true|false]" in_room="[true|false]" in_private_space="[true|false]"/&gt; &lt;/Meals&gt; &lt;CheckinTime&gt;<var translate="no">checkin_time</var>&lt;/CheckinTime&gt; &lt;CheckoutTime&gt;<var translate="no">checkout_time</var>&lt;/CheckoutTime&gt; &lt;MembershipBenefitsIncluded&gt; &lt;ProgramName&gt; &lt;Text language="en" text="Special Rewards"&gt; &lt;/ProgramName&gt; &lt;ProgramLevel&gt; &lt;Text language="en" text="Platinum"&gt; &lt;/ProgramLevel&gt; &lt;/MembershipBenefitsIncluded&gt; &lt;OnPropertyCredit&gt; &lt;Amount currency="USD"&gt;123.45&lt;/Amount&gt; &lt;/OnPropertyCredit&gt; &lt;/PackageData&gt; &lt;!-- a PackageID with a <code translate="no" dir="ltr">MilesIncluded</code> rate feature --&gt; &lt;PackageData&gt; &lt;PackageID&gt;room_with_miles&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text="Room with Bundled Miles" language="en"&gt; &lt;/Name&gt; &lt;ChargeCurrency>hotel &lt;/ChargeCurrency&gt; &lt;MilesIncluded&gt; &lt;NumberOfMiles>1000 &lt;/NumberOfMiles&gt; &lt;Provider&gt; &lt;Text language="en" text="United Airlines"&gt; &lt;/Provider&gt; &lt;/MilesIncluded&gt; &lt;/PackageData&gt; ... <span class="nocode">... &lt;/PropertyDataSet&gt; ... &lt;/Transaction&gt;</span></pre> <h3 id="packagedata-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;PackageData&gt;</code> element has no attributes.</p> <h3 id="packagedata-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;PackageData&gt;</code> element has the following child elements:</p> <table class="fixed"> <tr> <th width="20%">Child&nbsp;Element</th> <th width="10%">Required?</th> <th width="8%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;BreakfastIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Specifies whether this package includes breakfast with the rate. Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>). <p class="note">It is preferred that you use <code translate="no" dir="ltr">&lt;Meals&gt;</code> instead of <code translate="no" dir="ltr">&lt;BreakfastIncluded&gt;</code>.</p> </td> </tr> <tr> <td><span translate="no">&lt;ChargeCurrency&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td>When and where the user pays for a booking. This element uses the same syntax as <code translate="no" dir="ltr">&lt;ChargeCurrency&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>. <p>The default value is <code translate="no" dir="ltr">web</code>.</p> </td> </tr> <tr> <td><span translate="no">&lt;CheckinTime&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Time">Time</a></span></td> <td>Earliest possible check-in time. Time must be less than 24:00 in the local time of the hotel.</td> </tr> <tr> <td><span translate="no">&lt;CheckoutTime&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Time">Time</a></span></td> <td>Latest possible check-out time in the local time of the hotel. </td> </tr> <tr> <td><span translate="no">&lt;Description&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>A detailed description of the package. This element should contain information not described by other elements or the <code translate="no" dir="ltr">&lt;Name&gt;</code> element. You shouldn't use all capital letters when specifying the description of the room. <p>The <code translate="no" dir="ltr">&lt;Description&gt;</code> element takes a single child element, <code translate="no" dir="ltr">&lt;Text&gt;</code>, which has two required attributes, <code translate="no" dir="ltr">text</code> and <code translate="no" dir="ltr">language</code>. The <code translate="no" dir="ltr">text</code> attribute is the description, and the <code translate="no" dir="ltr">language</code> attribute specifies a two-letter language code, as the following example shows:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Description&gt; &lt;Text text="Two breakfast buffet certificates for each night of stay." language="en"/&gt; &lt;Text text="Deux certificats petit-déjeuner buffet pour chaque nuit de séjour." language="fr"/&gt; &lt;/Description&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;InternetIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>If a package includes internet access at no charge, while other packages wouldn't include that amenity. Don't set this element for Room Bundles in a hotel that provides free internet to all rooms. This element does not apply to in-room wired internet or wireless internet that is not available in guest rooms. Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>). </td> </tr> <tr> <td><span translate="no">&lt;Meals&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Contains information about meals in this package. <p>The <code translate="no" dir="ltr">&lt;Meals&gt;</code> element takes two optional child elements, <code translate="no" dir="ltr">&lt;Breakfast&gt;</code> and <code translate="no" dir="ltr">&lt;Dinner&gt;</code>, which have the following attributes:</p> <ul> <li><code translate="no" dir="ltr">included</code> (required): Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) if the rate includes breakfast/dinner; otherwise set to <code translate="no" dir="ltr">0</code> or <code translate="no" dir="ltr">false</code>.</li> <li><code translate="no" dir="ltr">in_room</code> (optional): Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) if guests have the option to have breakfast/dinner in the room they stay in; otherwise set to <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>).</li> <li><code translate="no" dir="ltr">in_private_space</code> (optional): Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) if guests have the option to have breakfast/dinner in a space (except the room they stay in) where they can avoid contact with other guests; otherwise set to <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>).</li> <li><code translate="no" dir="ltr">buffet</code> (optional): Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) if breakfast/dinner is served as a buffet; otherwise set to <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>).</li> </ul> <p>The optional attributes are used only when <code translate="no" dir="ltr">included</code> is true.</p> <p>For meal filters (<code translate="no" dir="ltr">no meals</code>, <code translate="no" dir="ltr">breakfast only</code>, <code translate="no" dir="ltr">dinner only</code>, and <code translate="no" dir="ltr">breakfast and dinner</code>) to work, both <code translate="no" dir="ltr">&lt;Breakfast&gt;</code> and <code translate="no" dir="ltr">&lt;Dinner&gt;</code> need to be provided with the <code translate="no" dir="ltr">included</code> attribute.</p> </td> </tr> <tr> <td><span translate="no">&lt;Name&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td>The name of the package. This value should match what appears on the hotel's landing page. Don't set the value of this element to all capital letters. <p>This element takes a single child element, <code translate="no" dir="ltr">&lt;Text&gt;</code>, which has two attributes, <code translate="no" dir="ltr">text</code> and <code translate="no" dir="ltr">language</code>. The <code translate="no" dir="ltr">text</code> attribute is the description, and the <code translate="no" dir="ltr">language</code> attribute specifies a two-letter language code, as the following example shows:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Name&gt; &lt;Text text="Bed and Breakfast" language="en"/&gt; &lt;Text text="Lit et petit déjeuné" language="fr"/&gt; &lt;/Name&gt;</pre> </td> </tr> <tr> <td><span translate="no">&lt;Occupancy&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">integer</span></td> <td>The maximum number of guests that a Room Bundle <em>is intended for</em>. For example, a large suite might be able to physically accommodate 6 guests, but is intended for up to 4 guests only. <p>This value must be less than or equal to the <code translate="no" dir="ltr">&lt;Capacity&gt;</code> element, which is the number of people that the room can physically accommodate.</p> <p>The value of <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> must be a positive integer between 1 and 99, inclusive.</p> <p>If you specify this element in both <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> and <code translate="no" dir="ltr">&lt;PackageData&gt;</code>, the value in <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> takes precedence.</p> <p><b>Note</b>:</p> <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> may be accompanied by <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code>,which specifies the type of guests (adults or children). Refer to <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#OccupancyDetails"><code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code></a> for syntax and description of child elements. </td> </tr> <tr> <td><span translate="no">&lt;PackageID&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td><p>The unique ID for the package. Use this ID to match the Room Bundle data with the <code translate="no" dir="ltr">&lt;Result&gt;</code> blocks in your pricing updates. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p> <p>(You can also use this ID to reference a common Room Bundle definition used in a single Transaction message when defining Room Bundle data inline.)</p> </td> </tr> <tr> <td><span translate="no">&lt;ParkingIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Whether a Room Bundle includes parking at no charge, where parking would otherwise be a paid service at this hotel. Don't specify a value for this element for a hotel that offers free parking. <p>Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>). The default value is <code translate="no" dir="ltr">false</code>.</p> </td> </tr> <tr> <td><span translate="no">&lt;PhotoURL&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>(Same as <code translate="no" dir="ltr">&lt;PhotoURL&gt;</code> in <code translate="no" dir="ltr">&lt;RoomData&gt;</code>, but for the package (e.g. meal photos).) </td> </tr> <tr> <td><span translate="no">&lt;Refundable&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Enables listing a rate as being fully refundable or providing a free cancellation. If not provided, no information about a refund is displayed. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> level. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level. Refundable pricing can also be highlighted to users through alternative options without directly modifying your transaction message schema. Learn more about these options <a href="https://support.google.com/hotelprices/answer/9824483">Refundable rates policy</a>. <p></p> <p>The following example shows the <code translate="no" dir="ltr">&lt;Refundable&gt;</code> element with all of its attributes set:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Refundable available="1" refundable_until_days="7" refundable_until_time="18:00:00"/&gt;</pre> <p><b>Note:</b> We recommend setting all of the attributes. A feed status warning message is generated when one or more attributes are not set.</p> <p>If you don't set any attributes, the rate does not display as refundable. The attributes are:</p> <ul> <li><code translate="no" dir="ltr">available</code>: (Required) Set to <code translate="no" dir="ltr">1</code> or <code translate="no" dir="ltr">true</code> to indicate if the rate allows a full refund; otherwise set to <code translate="no" dir="ltr">0</code> or <code translate="no" dir="ltr">false</code>.</li> <li><code translate="no" dir="ltr">refundable_until_days</code>: (Required if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the number of days in advance of check-in that a full refund can be requested. The value of <code translate="no" dir="ltr">refundable_until_days</code> must be an integer between 0 and 330, inclusive.</li> <li><code translate="no" dir="ltr">refundable_until_time</code>: (Highly recommended if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the latest time of day, in the local time of the hotel, that a full refund request will be honored. This can be combined with <code translate="no" dir="ltr">refundable_until_days</code> to specify, for example, that "refunds are available until 4:00PM two days before check-in". If <code translate="no" dir="ltr">refundable_until_time</code> isn't set, the value defaults to midnight. <p>The value of this attribute uses the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Time">Time</a> format.</p> </li> </ul> <p>When setting the attributes, note the following:</p> <ul> <li>If <code translate="no" dir="ltr">available</code> or <code translate="no" dir="ltr">refundable_until_days</code> isn't set, the rate does not display as refundable.</li> <li>If <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">0</code> or <code translate="no" dir="ltr">false</code>, the other attributes are ignored. The rate does not display as refundable even if one or both of the other attributes is set.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;MembershipBenefits<wbr> Included&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Rate includes elite status benefits for duration of stay. Includes the following parameters: <ul> <li><code translate="no" dir="ltr">ProgramName</code>: Name of the elite status program</li> <li><code translate="no" dir="ltr">ProgramLevel</code>: Level of the program. For example: "Gold."</li> <li><code translate="no" dir="ltr">NightlyValue (optional)</code>: Nightly value of the benefits.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;CarRentalIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Rate includes free car rental for duration of stay. </td> </tr> <tr> <td><span translate="no">&lt;MilesIncluded&gt;</span>></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Rate includes frequent flyer miles. Parameters include: <ul> <li><code translate="no" dir="ltr">NumberofMiles</code>: Number of miles per itinerary.</li> <li><code translate="no" dir="ltr">Provider</code>: Frequent flyer miles provide.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;OnPropertyCredit&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Rate includes on-property credit (F&B, resort, spa, etc). Parameter: <ul> <li><code translate="no" dir="ltr">Amount</code>: The value of the credit per itinerary, in local currency.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;AirportTransportationIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Rate includes free transportation to/from a nearby airport. The optional <code translate="no" dir="ltr">direction</code> attribute specifies the directionality of the transportation. Valid values include: <ul> <code translate="no" dir="ltr">from</code>: Transportation is provided from the airport to the property. This is the default value if no direction is specified. <code translate="no" dir="ltr">to</code>: Transportation is provided to the airport from the property. <code translate="no" dir="ltr">round_trip</code>: Transportation is provided both to and from the airport. </ul> </td> </tr> </table> <h3 id="packagedata-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="single-room-bundle" data-text="Single room bundle" tabindex="-1">Single room bundle</h3><p>The following example defines a single Room Bundle, with an occupancy of 2 (one adult and one child) and includes breakfast:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;PackageData&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;1&lt;/NumAdults&gt; &lt;Children&gt; &lt;Child age=&quot;17&quot;/&gt; &lt;/Children&gt; &lt;/OccupancyDetails&gt; &lt;PackageID&gt;P54321&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Breakfast Included&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Avec le petit déjeuner&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Two certificates for continental breakfast will be provided.&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Deux certificats pour le petit déjeuner continental seront fournis.&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="room-and-package-metadata" data-text="Room and package metadata" tabindex="-1">Room and package metadata</h3><p>The following example defines room and package metadata:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single Bed Room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre single&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Non-smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Pas de fumiers&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Living area&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;/RoomData&gt; &lt;PackageData&gt; &lt;PackageID&gt;P54321&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Breakfast Included&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Avec le petit déjeuner&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Includes a delightful array of jams and jellies.&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Comprend une délicieuse gamme de confitures et gelées.&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="multiple-room-bundles_1" data-text="Multiple room bundles" tabindex="-1">Multiple room bundles</h3><p>The following example defines room and package metadata for multiple Room Bundles:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;!-- A transaction message with room types result. --&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;12345&lt;/Property&gt; &lt;RoomData&gt; &lt;RoomID&gt;single&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre simple&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;A single room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre simple&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Living area&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le chambre&quot; language=&quot;fr&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;PhotoURL&gt; &lt;URL&gt;http://www.foo.com/static/bar/image1235.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;Capacity&gt;2&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;RoomData&gt; &lt;RoomID&gt;double&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Double room&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre double&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Occupancy&gt;1&lt;/Occupancy&gt; &lt;/RoomData&gt; &lt;PackageData&gt; &lt;PackageID&gt;refundbreakfast&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Refundable Room with Breakfast&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre remboursable avec le petit déjeuner&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Continental Breakfast&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Petit déjeuner continental&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;3&quot;/&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;/PackageData&gt; &lt;PackageData&gt; &lt;PackageID&gt;prepaid&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Nonrefundable&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Non remboursable&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Description&gt; &lt;Text text=&quot;Blah blah blad&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Le blah blah blad&quot; language=&quot;fr&quot;/&gt; &lt;/Description&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;0&quot;/&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> </div> <p><br></p> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="room-bundle-with-rates" data-text="Room bundle with rates" tabindex="-1">Room bundle with rates</h3><p>The following example defines room and package metadata for a Room bundle with rate features:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;Transaction timestamp=&quot;2010-04-24T20:44:56-04:00&quot; id=&quot;TXNID&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;12345&lt;/Property&gt; &lt;RoomData&gt; ... &lt;/RoomData&gt; &lt;!-- definitions of PackageData types including rate features --&gt; &lt;PackageData&gt; &lt;PackageID&gt;room_with_addl_benefits&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Acme Hotels 2017 Promotion Package&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;BreakfastIncluded&gt;1&lt;/BreakfastIncluded&gt; &lt;MembershipBenefitsIncluded&gt; &lt;ProgramName&gt; &lt;Text language=&quot;en&quot; text=&quot;Marriott Rewards&quot;/&gt; &lt;/ProgramName&gt; &lt;ProgramLevel&gt; &lt;Text language=&quot;en&quot; text=&quot;Platinum&quot;/&gt; &lt;/ProgramLevel&gt; &lt;/MembershipBenefitsIncluded&gt; &lt;OnPropertyCredit&gt; &lt;Amount currency=&quot;USD&quot;&gt;123.45&lt;/Amount&gt; &lt;/OnPropertyCredit&gt; &lt;/PackageData&gt; &lt;PackageData&gt; &lt;PackageID&gt;room_with_miles&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Room with Bundled Miles&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;MilesIncluded&gt; &lt;NumberOfMiles&gt;1000&lt;/NumberOfMiles&gt; &lt;Provider&gt; &lt;Text language=&quot;en&quot; text=&quot;United Airlines&quot;/&gt; &lt;/Provider&gt; &lt;/MilesIncluded&gt; &lt;AirportTransportationIncluded direction=&quot;from&quot;/&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;!-- The actual list of prices --&gt; &lt;Result&gt; … &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="meals-photos" data-text="Meals &amp; photos" tabindex="-1">Meals &amp; photos</h3><p>The following example defines room and package metadata for meals, photos, and check-in and check-out times:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;PackageData&gt; &lt;PackageID&gt;PackageID_1&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Meals Included&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Breakfast&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;朝食&quot; language=&quot;ja&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://example.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;Meals&gt; &lt;!-- Guests can choose to have breakfast in their room or in another space to avoid contact with other guests. --&gt; &lt;Breakfast included=&quot;1&quot; in_room=&quot;1&quot; in_private_space=&quot;1&quot;/&gt; &lt;Dinner included=&quot;1&quot; buffet=&quot;1&quot;/&gt; &lt;/Meals&gt; &lt;CheckinTime&gt;15:00&lt;/CheckinTime&gt; &lt;CheckoutTime&gt;11:00&lt;/CheckoutTime&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="breakfast" data-text="Breakfast" tabindex="-1">Breakfast</h3><pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;PackageData&gt; &lt;PackageID&gt;PackageID_1&lt;/PackageID&gt; &lt;Name&gt; &lt;Text text=&quot;Breakfast Included&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;PhotoURL&gt; &lt;Caption&gt; &lt;Text text=&quot;Breakfast&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;朝食&quot; language=&quot;ja&quot;/&gt; &lt;/Caption&gt; &lt;URL&gt;http://example.com/static/bar/image1234.jpg&lt;/URL&gt; &lt;/PhotoURL&gt; &lt;Meals&gt; &lt;Breakfast included=&quot;true&quot;/&gt; &lt;!-- Dinner not included needs to be explicitly specified --&gt; &lt;Dinner included=&quot;false&quot;/&gt; &lt;/Meals&gt; &lt;CheckinTime&gt;15:00&lt;/CheckinTime&gt; &lt;CheckoutTime&gt;11:00&lt;/CheckoutTime&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;/Transaction&gt; </code></pre><aside class="key-point"><strong>Key Point:</strong><span> You must explicitly specify the <code translate="no" dir="ltr">Breakfast</code> and <code translate="no" dir="ltr">Dinner</code> as <code translate="no" dir="ltr">false</code>, if you want to exclude it from your meal option.</span></aside></section> </div> <h2 id="Result" data-text="&lt;Result&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;Result&gt;</code></h2> <p>A container for pricing and availability updates in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Transaction"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></a> message.</p> <aside class="key-point"><strong>Key Point:</strong><span> Leave <code translate="no" dir="ltr">&lt;BaseRate&gt;</code> for the <code translate="no" dir="ltr">&lt;Result&gt;</code> empty for shared rooms (e.g., dorm-style hostels). Instead, convey shared or hostel pricing info in <a href="#RoomBundle"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></a>.</span></aside> <p>The <code translate="no" dir="ltr">&lt;Result&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></span> + <strong><code translate="no" dir="ltr">&lt;Result&gt;</code></strong> // Pricing and availability + <span class="nocode"><code translate="no" dir="ltr">&lt;Rates&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></span> + ... </pre> <p>Use <code translate="no" dir="ltr">&lt;Result&gt;</code> to set or update room prices and define available inventory. Items defined in this element typically reference itinerary-independent metadata about a room or package (such as a description or set of amenities) defined in <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> and <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a>.</p> <p>You typically send Transaction messages with pricing updates very frequently. Exactly how and how often you do this depends on your <a href="/hotels/hotel-prices/dev-guide/delivery-mode">delivery mode</a>.</p> <p>You can use <code translate="no" dir="ltr">&lt;Result&gt;</code> in a Transaction message to remove itineraries, as described in <a href="/hotels/hotel-prices/dev-guide/removing-inventory">Removing Inventory</a>. For more information about using Transaction messages to update prices and availability, <a href="/hotels/hotel-prices/dev-guide/inventory">Adding and Updating Inventory</a>.</p> <p>A single Transaction message can include any number of <code translate="no" dir="ltr">&lt;Result&gt;</code> elements in it, as long as the size of the message does not exceed 100MB.</p> <h3 id="result-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;Result&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Transaction ... &gt;</span> &lt;Result&gt; &lt;!-- Required --&gt; &lt;Property&gt;<var translate="no">hotel_ID</var>&lt;/Property&gt; &lt;!-- Required --&gt; &lt;Checkin&gt;<var translate="no">YYYY-MM-DD</var>&lt;/Checkin&gt; &lt;!-- Required --&gt; &lt;Nights&gt;<var translate="no">number_of_nights</var>&lt;/Nights&gt; &lt;Baserate currency="<var translate="no">currency_code</var>"&gt;<var translate="no">price</var>&lt;/Baserate&gt; &lt;!-- Only required when &lt;Baserate&gt; contains a real price --&gt; &lt;Tax currency="<var translate="no">currency_code</var>"&gt;<var translate="no">tax_amount</var>&lt;/Tax&gt; &lt;!-- Only required when &lt;Baserate&gt; contains a real price --&gt; &lt;OtherFees currency="<var translate="no">currency_code</var>"&gt;<var translate="no">fee_amount</var>&lt;/OtherFees&gt; &lt;Refundable available="[false|true]" refundable_until_days="<var translate="no">number_of_days</var>" refundable_until_time="<var translate="no">time</var>"/&gt; &lt;RoomID&gt;<var translate="no">room_ID</var>&lt;/RoomID&gt; &lt;PackageID&gt;<var translate="no">package_ID</var>&lt;/PackageID&gt; &lt;ExpirationTime&gt;<var translate="no">expiration_time</var>&lt;/ExpirationTime&gt; &lt;ChargeCurrency&gt;[deposit|hotel|installments|web]&lt;/ChargeCurrency&gt; &lt;Occupancy&gt;<var translate="no">max_number_of_intended_occupants</var>&lt;/Occupancy&gt; &lt;!-- For Baserate, occupancy value must be greater than or equal to 2. If a value is not provided for occupancy, it defaults to 2. --&gt; &lt;OccupancyDetails&gt;<var translate="no">occupancy_info</var>&lt;/OccupancyDetails&gt; &lt;Rates&gt;...&lt;/Rates&gt; &lt;RoomBundle&gt;...&lt;/RoomBundle&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id="<var translate="no">landing_page_identifier</var>"/&gt; ... &lt;/AllowablePointsOfSale&gt; &lt;Custom[1-5]&gt;<var translate="no">custom_value</var>&lt;/Custom[1-5]&gt; &lt;/Result&gt; <span class="nocode">... &lt;/Transaction&gt;</span></pre> <h3 id="result-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;Result&gt;</code> element has the following attributes:</p> <table class="fixed"> <tr> <th width="18%">Attribute</th> <th width="10%">Required?</th> <th width="10%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">mergeable</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>By default, new prices for a specific hotel and itinerary pair will overwrite any previous (non-expired) prices present in Google's cache. The mergeable attribute lets you store additional prices to Google's cache without deleting previous pricing information. Live Pricing Query with Context responses will always have this attribute set to <code translate="no" dir="ltr">true</code> (regardless of your transaction message response).</td> </tr> </table> <h3 id="result-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;Result&gt;</code> element has the following child elements:</p> <table class="fixed"> <tbody> <tr> <th width="21%">Child&nbsp;Element</th> <th width="10%">Required?</th> <th width="14%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;AllowablePointsOfSale&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>One or more landing pages that are eligible for the hotel. A landing page is a website that can handle the booking process for the end-user. To explicitly include certain landing page (and exclude others), add one or more <code translate="no" dir="ltr">&lt;AllowablePointsOfSale&gt;</code> elements that match the <code translate="no" dir="ltr">&lt;PointOfSale&gt;</code> element's <code translate="no" dir="ltr">id</code> attribute in the landing pages file. <p>If you don't include this element, all landing pages defined in the landing pages file are considered eligible to be used for booking the room. For more information, refer to <a href="https://developers.google.com/hotels/hotel-prices/dev-guide/pos-syntax">Landing Pages File Syntax</a>.</p> </td> </tr> <tr> <td><span translate="no">&lt;Baserate&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">float</span></td> <td><p>The price of the room for the stay. The value of this element should reflect the following:</p> <ul> <li>For a private room, set the least expensive double-occupancy rate that you offer. Higher occupancies are allowed here if you don't have a double-occupancy rate and your account has non-double occupancy rates enabled. Please <a href="https://support.google.com/hotelprices/gethelp">contact us</a> to enable non-double occupancy rates. Single occupancy rates are not allowed here&mdash;they must be set under <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a>.</li> <li>For a shared room, leave empty and use <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>.</li> <li>This value should be the total base price for all nights, not the average nightly rate.</li> </ul> <p>When the room is unavailable for the itinerary, <code translate="no" dir="ltr">&lt;Baserate&gt;</code> should either be omitted or set to <code translate="no" dir="ltr">-1</code>, and <a href="#UnavailableTag"><code translate="no" dir="ltr">&lt;Unavailable&gt;</code></a> should be specified, along with any known reasons for the unavailability.</p> <p>To remove a Room Bundle, use the instructions in <a href="https://developers.google.com/hotels/hotel-prices/dev-guide/room-bundles#removing">Removing a Room Bundle</a>. </p> <p>The <code translate="no" dir="ltr">&lt;Baserate&gt;</code> must not contain any digit grouping symbols, such as a comma (,) or period (.). Always separate fractions using a period (.) as the decimal mark. For example, represent $1,200.40 as:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Baserate currency="USD"&gt;1200.40&lt;/Baserate&gt;</pre> <p>The <code translate="no" dir="ltr">&lt;Baserate&gt;</code> element takes the following optional attributes:</p> <ul> <li><code translate="no" dir="ltr">all_inclusive</code>: A Boolean that indicates if this rate includes taxes and fees. In general, set this value to <code translate="no" dir="ltr">false</code> for US and Canadian end-users and supply values for the <code translate="no" dir="ltr">&lt;Tax&gt;</code> and <code translate="no" dir="ltr">&lt;OtherFees&gt;</code> elements. If you use all-inclusive prices, you may not be eligible to appear in the listings if your prices don't separate out taxes and fees for Canadian users. <p class="note">All-inclusive prices are now shown to US users.</p> <p>For all other end-users, you typically include the taxes and fees in the base rate and set the value of the <code translate="no" dir="ltr">all_inclusive</code> attribute to <code translate="no" dir="ltr">true</code>. For more information, refer to <a href="https://support.google.com/hotelprices/answer/6064432">Taxes and Fees Policy</a>.</p> <p>The default value is <code translate="no" dir="ltr">false</code>.</p> </li> <li><code translate="no" dir="ltr">currency</code>: The three-letter <a href="https://support.google.com/merchants/answer/160637">currency code</a>. For example, <code translate="no" dir="ltr">USD</code> for US dollars.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;ChargeCurrency&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td>When and where the user pays for a booking. This element can be used in a Transaction message in the <code translate="no" dir="ltr">&lt;Result&gt;</code> element for the Hotel Price or <code translate="no" dir="ltr">&lt;PackageData&gt;</code> block for a Room Bundle. <p>Valid values are:</p> <ul> <li><code translate="no" dir="ltr">web</code>: The user is charged online at the time of booking. This is the default value. The actual landing page is defined by the <a href="/hotels/hotel-prices/dev-guide/pos-syntax"> landing page file</a>, and can be affected by the user's currency, location, language, or other factors.</li> <li><code translate="no" dir="ltr">hotel</code>: The user is charged when checking in at the hotel. If payment must always be made in the hotel's currency, set the value of <code translate="no" dir="ltr">&lt;ChargeCurrency&gt;</code> to <code translate="no" dir="ltr">hotel</code>. The actual landing page is not affected by the user's currency.</li> <li><code translate="no" dir="ltr">deposit</code>: The user is charged some portion immediately and the remainder is charged at a later point in time, typically when the user checks out of the hotel.</li> <li><code translate="no" dir="ltr">installments</code>: The user is charged an initial fraction of the total sum due and is expected to routinely pay a set balance over a fixed period of time.</li> </ul> <p>The default value is <code translate="no" dir="ltr">web</code>.</p> </td> </tr> <tr> <td><span translate="no">&lt;Checkin&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Date">Date</a></span></td> <td>The check-in date for an itinerary using the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Date">Date</a> format. The combination of the <code translate="no" dir="ltr">&lt;Nights&gt;</code> element and the <code translate="no" dir="ltr">&lt;Checkin&gt;</code> element make up an itinerary.</td> </tr> <tr> <td><span translate="no">&lt;Custom[1&#8209;5]&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>Defines a custom field that you can use to pass additional data associated with a hotel. You can pass up to five custom values with the following element names: <ul> <li><code translate="no" dir="ltr">&lt;Custom1&gt;</code></li> <li><code translate="no" dir="ltr">&lt;Custom2&gt;</code></li> <li><code translate="no" dir="ltr">&lt;Custom3&gt;</code></li> <li><code translate="no" dir="ltr">&lt;Custom4&gt;</code></li> <li><code translate="no" dir="ltr">&lt;Custom5&gt;</code> </li> </ul> <p>The <code translate="no" dir="ltr">&lt;Custom&gt;</code> elements let you pass arbitrary data. For example, you can specify a value in this field that will then be used by the landing pages file to construct a custom URL for a landing page. There is a limit of 200 characters per custom field. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/pos-syntax">landing page files </a>.</p> <p class="note">&lt;Custom&gt; elements provided in the <code translate="no" dir="ltr">&lt;Rate&gt;</code> element are not inherited to the <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element. You should define &lt;Custom&gt; attribute separately in each <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>. </p> </td> </tr> <tr> <td><span translate="no">&lt;ExpirationTime&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#DateTime">DateTime</a></span></td> <td>The date and time at which the price is considered expired (3 hours minimum). <p>We recommend that you don't provide expiration timestamps if it isn't critical to your pricing structure. </p> <p>Google doesn't serve any prices that are expired, and any itinerary that has an expired price will become eligible for <a href="/hotels/hotel-prices/dev-guide/query-messages#live-queries"> Live Pricing Querying</a>.</p> </td> </tr> <tr> <td><span translate="no">&lt;Nights&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">integer</span></td> <td>The number of nights for an itinerary. The value of the <code translate="no" dir="ltr">&lt;Nights&gt;</code> element must be a positive integer. The combination of <code translate="no" dir="ltr">&lt;Nights&gt;</code> and <code translate="no" dir="ltr">&lt;Checkin&gt;</code> make up an itinerary.</td> </tr> <tr> <td><span translate="no">&lt;OtherFees&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">float</span></td> <td>Fees other than the base rate and taxes that influence the final price of a room. The <code translate="no" dir="ltr">&lt;OtherFees&gt;</code> element takes a single required attribute, <code translate="no" dir="ltr">currency</code>, that defines the three-letter <a href="https://support.google.com/merchants/answer/160637">currency code</a> for the fees. For example, <code translate="no" dir="ltr">USD</code>. <p>The <code translate="no" dir="ltr">&lt;OtherFees&gt;</code> element is required if <code translate="no" dir="ltr">&lt;Baserate&gt;</code> is greater than zero.</p> </td> </tr> <tr> <td><span translate="no">&lt;Occupancy&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">integer</span></td> <td>Specifies the maximum allowed occupants for this rate. When <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> appears directly under <code translate="no" dir="ltr">&lt;Result&gt;</code>, it must specify <code translate="no" dir="ltr">2</code> or more. <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> may be accompanied by <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code>, which specifies the type of guests (adults or children). If guest types are not specified, they are assumed to be adults. Consult <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#OccupancyDetails"><code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code></a> for syntax and description of child elements. If the <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> element is not provided, occupancy is defaulted as <code translate="no" dir="ltr">2</code>. <p class="note">Note: Contact your support team to enable the feature to send non-double occupancy prices.</p> </td> </tr> <tr> <td><span translate="no">&lt;PackageID&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>The unique ID of the package to map it to predefined package data. Also used to populate the PACKAGE-ID landing page variable. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>. </td> </tr> <tr> <td><span translate="no">&lt;Property&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td>The ID of a hotel affected by the associated data (price, itinerary, Room Bundle, or metadata). The value of this element must be a string. The value of this element must match the listing <code translate="no" dir="ltr">&lt;id&gt;</code> that you defined in your Hotel List Feed. </td> </tr> <tr> <td><span translate="no">&lt;Rates&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a></span></td> <td>A container for one or more <code translate="no" dir="ltr">&lt;Rate&gt;</code> blocks. Each <code translate="no" dir="ltr">&lt;Rate&gt;</code> in <code translate="no" dir="ltr">&lt;Rates&gt;</code> defines a different price for the room/itinerary combination. <p>Use the <code translate="no" dir="ltr">&lt;Rates&gt;</code> element when there are multiple rates for the same room/itinerary combination or when a rate is not allowed to be specified at the <code translate="no" dir="ltr">&lt;Result&gt;</code> level. For example, you define multiple rates for <a href="/hotels/hotel-prices/dev-guide/fenced-rates"> conditional rates</a>, <a href="/hotels/hotel-prices/dev-guide/qualified-rates"> private rates</a>, <a href="/hotels/hotel-prices/dev-guide/room-bundles">conditional rates in Room Bundles</a>, or different occupancies.</p> <p class="note">Note: Within <code translate="no" dir="ltr">&lt;Result&gt;</code>, single-occupancy rates can only be specified in <code translate="no" dir="ltr">&lt;Rates&gt;</code>. Please <a href="https://support.google.com/hotelprices/gethelp">contact us</a> to allow non-double occupancy prices.</p> </td> </tr> <tr> <td><span translate="no">&lt;Refundable&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Enables listing a rate as being fully refundable or providing a free cancellation. If not provided, no information about a refund is displayed. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> level. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level. Refundable pricing can also be highlighted to users through alternative options without directly modifying your transaction message schema. Learn more about <a href="https://support.google.com/hotelprices/answer/9824483">Refundable rates policy</a>. <p></p> <p>The following example shows the <code translate="no" dir="ltr">&lt;Refundable&gt;</code> element with all of its attributes set:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Refundable available="1" refundable_until_days="7" refundable_until_time="18:00:00"/&gt;</pre> <p><b>Note:</b> We recommend setting all of the attributes. A feed status warning message is generated when one or more attributes are not set.</p> <p>If you don't set any attributes, the rate does not display as refundable. The attributes are:</p> <ul> <li><code translate="no" dir="ltr">available</code>: (Required) Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) to indicate if the rate allows a full refund; otherwise set to <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>).</li> <li><code translate="no" dir="ltr">refundable_until_days</code>: (Required if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the number of days in advance of check-in that a full refund can be requested. The value of <code translate="no" dir="ltr">refundable_until_days</code> must be an integer between 0 and 330, inclusive.</li> <li><code translate="no" dir="ltr">refundable_until_time</code>: (Highly recommended if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the latest time of day, in the local time of the hotel, that a full refund request will be honored. This can be combined with <code translate="no" dir="ltr">refundable_until_days</code> to specify, for example, that "refunds are available until 4:00PM two days before check-in". If <code translate="no" dir="ltr">refundable_until_time</code> isn't set, the value defaults to midnight. <p>The value of this attribute uses the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Time">Time</a> format.</p> </li> </ul> <p>When setting the attributes, note the following:</p> <ul> <li>If <code translate="no" dir="ltr">available</code> or <code translate="no" dir="ltr">refundable_until_days</code> isn't set, the rate does not display as refundable.</li> <li>If <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>), the other attributes are ignored. The rate does not display as refundable even if one or both of the other attributes is set.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;RoomBundle&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomBundle"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></a></span></td> <td>A container for information on priced physical descriptions of a room, any packaging of amenities, and some purchase policy details for the given hotel and itinerary. <p>In general, use this element to define pricing for the base room and different types of rooms within the same property. While it is possible to define Room Bundle descriptions inline, you should use a separate Transaction message to define that information. Google will store metadata so that you can reference it, rather than repeat it, in all future pricing updates.</p> </td> </tr> <tr> <td><span translate="no">&lt;RoomID&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>The unique ID of the room to map it to predefined room data. Also used to populate the PARTNER-ROOM-ID landing page variable. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>. </td> </tr> <tr> <td><span translate="no">&lt;Tax&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">float</span></td> <td>The taxes that are calculated for the final price of a room. The <code translate="no" dir="ltr">&lt;Tax&gt;</code> element takes a single required attribute, <code translate="no" dir="ltr">currency</code>, that defines the three-letter <a href="https://support.google.com/merchants/answer/160637">currency code</a> for the taxes. For example, <code translate="no" dir="ltr">USD</code>. The <code translate="no" dir="ltr">&lt;Tax&gt;</code> element is required if <code translate="no" dir="ltr">&lt;Baserate&gt;</code> is greater than zero. <p class="note">If <code translate="no" dir="ltr">&lt;Baserate&gt;</code> element's "all_inclusive" attribute is explicitly set to true, then setting this value is optional.</p></td> </tr> <tr> <td id="UnavailableTag"><span translate="no">&lt;Unavailable&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Indicates that the itinerary is unavailable for booking. Serves as a container for more detailed reasons why the itinerary was unavailable. One or more of the following unavailability reasons may be nested underneath the <code translate="no" dir="ltr">&lt;Unavailable&gt;</code> tag: <ul> <li><code translate="no" dir="ltr">&lt;NoVacancy/&gt;</code>: No more rooms are available for sale for one or more nights of the stay.</li> <li><code translate="no" dir="ltr">&lt;MinNightStay value=N/&gt;</code>: The itinerary was below the minimum night stay of <code translate="no" dir="ltr">N</code> for the stay dates.</li> <li><code translate="no" dir="ltr">&lt;MaxNightStay value=N/&gt;</code>: The itinerary was above the maximum night stay of <code translate="no" dir="ltr">N</code> for the stay dates.</li> <li><code translate="no" dir="ltr">&lt;MinAdvancePurchase value=N/&gt;</code>: The itinerary was below the minimum advance booking window of <code translate="no" dir="ltr">N</code> for the stay dates.</li> <li><code translate="no" dir="ltr">&lt;MaxAdvancePurchase value=N/&gt;</code>: The itinerary was above the maximum advance booking window of <code translate="no" dir="ltr">N</code> for the stay dates.</li> <li><code translate="no" dir="ltr">&lt;ClosedToArrival/&gt;</code>: The property does not allow check-in on the itinerary's arrival date.</li> <li><code translate="no" dir="ltr">&lt;ClosedToDeparture/&gt;</code>: The property does not allow check-out on the itinerary's departure date.</li> <li><code translate="no" dir="ltr">&lt;PropertyClosed first_open="YYYY-MM-DD" first_closed="YYYY-MM-DD"/&gt;</code>: The property is closed for some or all of the stay. Recommended attributes <code translate="no" dir="ltr">first_open</code> and <code translate="no" dir="ltr">first_closed</code> specify the first dates greater than or equal to the arrival date for which the property is open or closed, respectively. For a property that closes after the arrival date, <code translate="no" dir="ltr">first_open</code> should be equal to the arrival date, and <code translate="no" dir="ltr">first_closed</code> should be the date on which the property closes. For a property that is closed on the arrival date, <code translate="no" dir="ltr">first_closed</code> should be equal to the arrival date, and <code translate="no" dir="ltr">first_opened</code> should be the next date on which the property is open.</li> <li><code translate="no" dir="ltr">&lt;NotFetched/&gt;</code>: A price for the itinerary was not provided by downstream data sources.</li> <li><code translate="no" dir="ltr">&lt;InvalidProperty/&gt;</code>: The requested property identifier was not recognized.</li> <li><code translate="no" dir="ltr">&lt;InvalidOccupancy/&gt;</code>: The requested occupancy is not supported by the property.</li> <li><code translate="no" dir="ltr">&lt;PriceIssue/&gt;</code>: An issue with the price caused it to not be sent.</li> <li><code translate="no" dir="ltr">&lt;InternalError reason=""/&gt;</code>: Some unenumerated error occurred. Optional reason attribute can report the error as text.</li> <li><code translate="no" dir="ltr">&lt;OtherRestriction restriction=""/&gt;</code>: The itinerary was not available due to some unenumerated booking restriction. Optional restriction attribute allows reporting the restriction as text.</li> </ul> </td> </tr> </tbody> </table> <h3 id="result-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="multi-property-example" data-text="Multi-property example" tabindex="-1">Multi-property example</h3><p>The following example defines one itinerary and its pricing for two properties:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;060773&lt;/Property&gt; &lt;RoomID&gt;RoomType101&lt;/RoomID&gt; &lt;PackageID&gt;Package101&lt;/PackageID&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;278.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id=&quot;site1&quot;/&gt; &lt;/AllowablePointsOfSale&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;052213&lt;/Property&gt; &lt;RoomID&gt;RoomType101&lt;/RoomID&gt; &lt;PackageID&gt;Package101&lt;/PackageID&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;299.98&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;26.42&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id=&quot;otto&quot;/&gt; &lt;PointOfSale id=&quot;simon&quot;/&gt; &lt;/AllowablePointsOfSale&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre> <p>Not shown in this example are details about the room, such as a description, a picture and caption, the room&#39;s name, and its capacity.</p> <p>You can define that information <em>once</em> in a separate Transaction message that Google stores. You can then reference it in all subsequent pricing and inventory updates. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>.</p></section> <section><h3 id="multi-rate-example" data-text="Multi-rate example" tabindex="-1">Multi-rate example</h3><p>The following example defines a single itinerary and property with multiple rates for various occupancies. The <code translate="no" dir="ltr">&lt;Rates&gt;</code> element can be utilized to provide multi-rate pricing for a specific property. The following example is also useful for Vacation Rental (VR) properties:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2020-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2021-01-13&lt;/Checkin&gt; &lt;Nights&gt;9&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;3196.1&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;559.49&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;543.34&lt;/OtherFees&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;Rates&gt; &lt;Rate&gt; &lt;Baserate currency=&quot;USD&quot;&gt;3196.1&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;559.49&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;543.34&lt;/OtherFees&gt; &lt;Occupancy&gt;1&lt;/Occupancy&gt; &lt;/Rate&gt; &lt;Rate&gt; &lt;Baserate currency=&quot;USD&quot;&gt;3196.1&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;559.49&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;543.34&lt;/OtherFees&gt; &lt;Occupancy&gt;3&lt;/Occupancy&gt; &lt;/Rate&gt; &lt;Rate&gt; &lt;Baserate currency=&quot;USD&quot;&gt;3196.1&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;559.49&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;543.34&lt;/OtherFees&gt; &lt;Occupancy&gt;4&lt;/Occupancy&gt; &lt;/Rate&gt; &lt;Rate&gt; &lt;Baserate currency=&quot;USD&quot;&gt;3196.1&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;559.49&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;543.34&lt;/OtherFees&gt; &lt;Occupancy&gt;5&lt;/Occupancy&gt; &lt;/Rate&gt; &lt;Rate&gt; &lt;Baserate currency=&quot;USD&quot;&gt;3196.1&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;559.49&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;543.34&lt;/OtherFees&gt; &lt;Occupancy&gt;6&lt;/Occupancy&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="unavailable-example" data-text="Unavailable example" tabindex="-1">Unavailable example</h3><p>The following example defines one itinerary whose availability couldn&#39;t be retrieved from downstream channels, a second that is both below the minimum night stay and already booked for the specified dates, and a third whose property is closed on the arrival date, but that opens during the course of the stay:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;060773&lt;/Property&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Unavailable&gt; &lt;NotFetched/&gt; &lt;/Unavailable&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;073313&lt;/Property&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Unavailable&gt; &lt;NoVacancy/&gt; &lt;MinNightStay value=3/&gt; &lt;/Unavailable&gt; &lt;/Result&gt; &lt;Result&gt; &lt;Property&gt;052213&lt;/Property&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;10&lt;/Nights&gt; &lt;Unavailable&gt; &lt;PropertyClosed first_open=&quot;2018-06-15&quot; first_closed=&quot;2018-06-10&quot;/&gt; &lt;/Unavailable&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> <h2 id="Rates" data-text="&lt;Rates&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;Rates&gt;</code></h2> <p>A container for one or more <code translate="no" dir="ltr">&lt;Rate&gt;</code> blocks. Each <code translate="no" dir="ltr">&lt;Rate&gt;</code> in <code translate="no" dir="ltr">&lt;Rates&gt;</code> defines a different price for the room or itinerary combination.</p> <p>Use the <code translate="no" dir="ltr">&lt;Rates&gt;</code> element only when there are multiple rates for the same room or itinerary combination. For example, you define multiple rates for <a href="/hotels/hotel-prices/dev-guide/fenced-rates">conditional rates</a>, <a href="/hotels/hotel-prices/dev-guide/qualified-rates">private rates</a>, or <a href="/hotels/hotel-prices/dev-guide/room-bundles">conditional rates in Room Bundles</a>.</p> <p>The <code translate="no" dir="ltr">&lt;Rates&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;Result&gt;</code></span> // Pricing and availability + <strong><code translate="no" dir="ltr">&lt;Rates&gt;</code></strong> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></span> (Can also contain <code translate="no" dir="ltr">&lt;Rates&gt;</code>) + ... </pre> <p>Values set in a <code translate="no" dir="ltr">&lt;Rate&gt;</code> override pricing-related values on the parent <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> or <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomBundle"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></a> element. If they are not set in <code translate="no" dir="ltr">&lt;Rate&gt;</code>, they inherit their value from the parent element. Only &lt;AllowablePointsofSale&gt; is inherited to the <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element.</p> <h3 id="rates-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;Rates&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Transaction ... &gt; &lt;Result&gt;</span> &lt;Rates&gt; &lt;Rate rate_rule_id="<var translate="no">rate_rule_id</var>"&gt; &lt;Baserate currency="<var translate="no">currency_code</var>"&gt;<var translate="no">price</var>&lt;/Baserate&gt; &lt;Tax currency="<var translate="no">currency_code</var>"&gt;<var translate="no">tax_amount</var>&lt;/Tax&gt; &lt;OtherFees currency="<var translate="no">currency_code</var>"&gt;<var translate="no">fee_amount</var>&lt;/OtherFees&gt; &lt;ExpirationTime&gt;<var translate="no">expiration_time</var>&lt;/ExpirationTime&gt; &lt;Refundable available="[false|true]" refundable_until_days="<var translate="no">number_of_days</var>" refundable_until_time="<var translate="no">time</var>"/&gt; &lt;ChargeCurrency&gt;[deposit|hotel|installments|web]&lt;/ChargeCurrency&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id="<var translate="no">landing_page_identifier</var>"/&gt; &lt;/AllowablePointsOfSale&gt; &lt;Occupancy&gt;<var translate="no">max_number_of_intended_occupants</var>&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;!-- optional info about the types of guests, whether adults or children --&gt;&lt;/OccupancyDetails&gt; ... &lt;Custom[1-5]&gt;<var translate="no">custom_value</var>&lt;/Custom[1-5]&gt; &lt;/Rate&gt; ... &lt;/Rates&gt; <span class="nocode">&lt;/Result&gt; ... &lt;/Transaction&gt;</span></pre> <h3 id="rates-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;Rates&gt;</code> element has the following attributes:</p> <table class="fixed"> <tbody> <tr> <th width="18%">Attribute</th> <th width="10%">Required?</th> <th>Description</th> </tr> <tr> <td><span translate="no">rate_rule_id</span></td> <td><span translate="no">Optional</span></td> <td>For <a href="/hotels/hotel-prices/dev-guide/fenced-rates"> conditional rates</a>, this ID matches a rate to a definition in your Rate Rule Definition file. The character limit for this field is 40 characters. </td> </tr> </tbody> </table> <h3 id="rates-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;Rates&gt;</code> element has the following child elements:</p> <table class="fixed"> <tbody> <tr> <th width="21%">Child&nbsp;Element</th> <th width="10%">Required?</th> <th width="10%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;AllowablePointsOfSale&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>One or more landing pages that are eligible for the hotel. This element uses the same syntax as the <code translate="no" dir="ltr">&lt;AllowablePointsOfSale&gt;</code> on <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>.</td> </tr> <tr> <td><span translate="no">&lt;Baserate&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">float</span></td> <td>The price of the room for the stay. This element uses the same syntax as the <code translate="no" dir="ltr">&lt;Baserate&gt;</code> on <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>. <p><b>Note:</b> The <code translate="no" dir="ltr">&lt;Baserate&gt;</code> child element under <code translate="no" dir="ltr">&lt;Rate&gt;</code> cannot be defined as being unavailable.</p> </td> </tr> <tr> <td><span translate="no">&lt;ChargeCurrency&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td>When and where the user pays for a booking. This element uses the same syntax as a <code translate="no" dir="ltr">&lt;ChargeCurrency&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>.</td> </tr> <tr> <td><span translate="no">&lt;Custom[1&#8209;5]&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>Custom fields that you can use to pass additional data associated with a hotel to a landing page. This element uses the same syntax as a <code translate="no" dir="ltr">&lt;Custom[1&#8209;5]&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>. There is a limit of 200 characters per custom field. For more information, refer to <a href="/hotels/hotel-prices/xml-reference/transaction-messages"> landing page files</a>. <p class="note">If &lt;Custom&gt; elements are provided in the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> element, then they are not inherited in the <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element and should be defined separately for each <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> or it can be included in &lt;PackageData&gt; if needed.</p> </td> </tr> <tr> <td><span translate="no">&lt;ExpirationTime&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#DateTime">DateTime</a></span></td> <td>The date and time at which the rate is considered expired. This element uses the same syntax as an <code translate="no" dir="ltr">&lt;ExpirationTime&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>.</td> </tr> <tr> <td><span translate="no">&lt;Occupancy&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">integer</span></td> <td><p>Specifies the maximum allowed occupants for this rate. If not specified, it is assumed to be the same as parent rate. <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> may be accompanied by <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code>, which specifies the type of guests (adults or children). Consult <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#OccupancyDetails"><code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code></a> for syntax and description of child elements.</p></td> </tr> <tr> <td><span translate="no">&lt;OtherFees&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">float</span></td> <td>Fees other than the base rate and taxes that influence the final price of a room. This element uses the same syntax as <code translate="no" dir="ltr">&lt;OtherFees&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>. <p class="note">If <code translate="no" dir="ltr">&lt;Baserate&gt;</code> element's "all_inclusive" attribute is explicitly set to true, then setting this value is optional.</p></td> </tr> <tr> <td><span translate="no">&lt;Refundable&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Enables listing a rate as being fully refundable or providing a free cancellation. If not provided, no information about a refund is displayed. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> level. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level. Refundable pricing can also be highlighted to users through alternative options without directly modifying your transaction message schema. Learn more about these options <a href="https://support.google.com/hotelprices/answer/9824483">Refundable rates policy</a>. <p></p> <p>The following example shows the <code translate="no" dir="ltr">&lt;Refundable&gt;</code> element with all of its attributes set:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Refundable available="1" refundable_until_days="7" refundable_until_time="18:00:00"/&gt;</pre> <p><b>Note:</b> We recommend setting all of the attributes. A feed status warning message is generated when one or more attributes are not set.</p> <p>If you don't set any attributes, the rate does not display as refundable. The attributes are:</p> <ul> <li><code translate="no" dir="ltr">available</code>: (Required) Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) to indicate if the rate allows a full refund; otherwise set to <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>).</li> <li><code translate="no" dir="ltr">refundable_until_days</code>: (Required if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the number of days in advance of check-in that a full refund can be requested. The value of <code translate="no" dir="ltr">refundable_until_days</code> must be an integer between 0 and 330, inclusive.</li> <li><code translate="no" dir="ltr">refundable_until_time</code>: (Highly recommended if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the latest time of day, in the local time of the hotel, that a full refund request will be honored. This can be combined with <code translate="no" dir="ltr">refundable_until_days</code> to specify, for example, that "refunds are available until 4:00PM two days before check-in". If <code translate="no" dir="ltr">refundable_until_time</code> isn't set, the value defaults to midnight. <p>The value of this attribute uses the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Time">Time</a> format.</p> </li> </ul> <p>When setting the attributes, note the following:</p> <ul> <li>If <code translate="no" dir="ltr">available</code> or <code translate="no" dir="ltr">refundable_until_days</code> isn't set, the rate does not display as refundable.</li> <li>If <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>), the other attributes are ignored. The rate does not display as refundable even if one or both of the other attributes is set.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;Tax&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">float</span></td> <td>The taxes that are calculated for the final price of a room. This element uses the same syntax as the a <code translate="no" dir="ltr">&lt;Tax&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>.</td> </tr> </tbody> </table> <aside class="key-point"><strong>Key Point:</strong><span> Note that <code translate="no" dir="ltr">&lt;Rates&gt;</code> takes the same child elements as <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>, except for <code translate="no" dir="ltr">&lt;Checkin&gt;</code>, <code translate="no" dir="ltr">&lt;Nights&gt;</code>, <code translate="no" dir="ltr">&lt;Property&gt;</code>, <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>, and <code translate="no" dir="ltr">&lt;RoomID</code>&gt;.</span></aside> <h3 id="rates-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="base-rate-and-conditional-rate" data-text="Base rate and conditional rate" tabindex="-1">Base rate and conditional rate</h3><p>The following example shows a Transaction message that contains a base rate and a <a href="/hotels/hotel-prices/dev-guide/fenced-rates">conditional rate</a>:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;Transaction timestamp=&quot;2023-05-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2023-04-10&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;200.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;20.00&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;Rates&gt; &lt;!-- The rate_rule_id is required when using conditional rates --&gt; &lt;Rate rate_rule_id=&quot;mobile&quot;&gt; &lt;!-- Override base rate and taxes for conditional rates --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;180.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;18.00&lt;/Tax&gt; &lt;!-- NOTE: OtherFees is inherited from the above setting --&gt; &lt;Custom1&gt;ratecode123&lt;/Custom1&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="multiple-conditional-rates" data-text="Multiple conditional rates" tabindex="-1">Multiple conditional rates</h3><p>The following example defines a base rate and multiple conditional rates within a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomBundle"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></a>:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;Transaction timestamp=&quot;2023-05-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2023-04-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;!-- When Google receives new room bundle information for an itinerary, all previous room bundle pricing is dropped from Google&#39;s cache. Thus, if you want to delete a specific room bundle from Google&#39;s cache, you may do so by simply not providing that specific room bundle in subsequent transaction messages. --&gt; &lt;RoomBundle&gt; ... &lt;!-- RoomID is required, PackageID is recommended. --&gt; &lt;RoomID&gt;5&lt;/RoomID&gt; &lt;PackageID&gt;ABC&lt;/PackageID&gt; &lt;!-- Baserate is required. --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;275.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;27.50&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;!-- RatePlanID is optional and represents the unique identifier for a room and package data combination. We strongly recommend using RatePlanID as a variable to build your dynamic landing page (formerly Point of Sale) URL. For details, see Using Variables and Conditions. --&gt; &lt;RatePlanID&gt;5-ABC&lt;/RatePlanID&gt; &lt;!-- Occupancy is mandatory for RoomBundle elements. --&gt; &lt;!-- Elements below will get inherited to nested rate elements. --&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;2&lt;/NumAdults&gt; &lt;/OccupancyDetails&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;!-- Rate rule &quot;mobile&quot; overrides chargeCurrency, &quot;us_or_gb&quot; doesn&#39;t. --&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Custom1&gt;ratebasic&lt;/Custom1&gt; &lt;!-- Neither rate overrides Custom2. --&gt; &lt;Custom2&gt;ratebasic&lt;/Custom2&gt; &lt;Rates&gt; &lt;Rate rate_rule_id=&quot;mobile&quot;&gt; &lt;Baserate currency=&quot;USD&quot;&gt;258.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.83&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;!-- The value below overrides ChargeCurrency from roombundle. --&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;!-- The value below overrides Custom1 from roombundle. --&gt; &lt;Custom1&gt;ratecode321&lt;/Custom1&gt; &lt;!-- Custom2 is inherited from roombundle. --&gt; &lt;/Rate&gt; &lt;Rate rate_rule_id=&quot;us_or_gb&quot;&gt; &lt;Baserate currency=&quot;USD&quot;&gt;268.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;26.83&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;!-- The value below overrides Custom1 from roombundle. --&gt; &lt;Custom1&gt;ratecode432&lt;/Custom1&gt; &lt;!-- Custom2 is inherited from roombundle. --&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/RoomBundle&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> <h2 id="RoomBundle" data-text="&lt;RoomBundle&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></h2> <p>Defines pricing and availability for Room Bundles as a child of <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Transaction"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></a> message. Define a separate element for each package or itinerary combination. To define the <em>package and terms</em> of the Room Bundles, use <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a>.</p> <p>The <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element appears in the following place in the Transaction message XML hierarchy:</p> <pre class="prettyprint devsite-disable-click-to-copy" translate="no" dir="ltr">+ <span class="nocode"><code translate="no" dir="ltr">&lt;Transaction&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PropertyDataSet&gt;</code></span> // Room and package metadata + <span class="nocode">&lt;Property&gt;</span> + <span class="nocode"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></span> + <span class="nocode"><code translate="no" dir="ltr">&lt;Result&gt;</code></span> // Pricing and availability + <span class="nocode"><code translate="no" dir="ltr">&lt;Rates&gt;</code></span> + <strong><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></strong> + ... </pre> <p>For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles">Using Room Bundles</a>.</p> <h3 id="roombundle-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>The <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element uses the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr"><span class="nocode">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Transaction ... &gt; &lt;Result&gt; ...</span> &lt;RoomBundle&gt; &lt;!-- Required unless specified inline under <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a> --&gt; &lt;RoomID&gt;<var translate="no">room_ID</var>&lt;/RoomID&gt; &lt;!-- Required <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> --&gt; &lt;PackageID&gt;<var translate="no">package_ID</var>&lt;/PackageID&gt; &lt;!-- Required --&gt; &lt;Baserate currency="<var translate="no">currency_code</var>"&gt;<var translate="no">price</var>&lt;/Baserate&gt; &lt;!-- Required --&gt; &lt;Tax currency="<var translate="no">currency_code</var>"&gt;<var translate="no">taxes</var>&lt;/Tax&gt; &lt;!-- Required --&gt; &lt;OtherFees currency="<var translate="no">currency_code</var>"&gt;<var translate="no">other_fees</var>&lt;/OtherFees&gt; &lt;Refundable available="[false|true]" refundable_until_days="<var translate="no">number_of_days</var>" refundable_until_time="<var translate="no">time</var>"/&gt; &lt;!-- Required --&gt; &lt;ChargeCurrency&gt;[deposit|hotel|installments|web]&lt;/ChargeCurrency&gt; &lt;Occupancy&gt;<var translate="no">max_number_of_intended_occupants</var>&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;!-- optional info about the types of guests, whether adults or children --&gt;&lt;/OccupancyDetails&gt; &lt;BreakfastIncluded&gt;<var translate="no">boolean_value</var>&lt;/BreakfastIncluded&gt; &lt;InternetIncluded&gt;<var translate="no">boolean_value</var>&lt;/InternetIncluded&gt; &lt;ParkingIncluded&gt;<var translate="no">boolean_value</var>&lt;/ParkingIncluded&gt; &lt;RatePlanID&gt;<var translate="no">rate_plan_ID</var>&lt;/RatePlanID&gt; &lt;Rates&gt;...&lt;/Rates&gt; &lt;Custom1&gt;<var translate="no">custom_value_1</var>&lt;/Custom1&gt; &lt;Custom2&gt;<var translate="no">custom_value_2</var>&lt;/Custom2&gt; &lt;Custom3&gt;<var translate="no">custom_value_3</var>&lt;/Custom3&gt; &lt;Custom4&gt;<var translate="no">custom_value_4</var>&lt;/Custom4&gt; &lt;Custom5&gt;<var translate="no">custom_value_5</var>&lt;/Custom5&gt; &lt;/RoomBundle&gt; <span class="nocode">... &lt;/Result&gt; &lt;/Transaction&gt;</span></pre> <aside class="key-point"><strong>Key Point:</strong><span> Note that you <em>can</em> also define a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> and a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a> inside a <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>. However, this is less efficient than defining them separately and referring to them with <code translate="no" dir="ltr">&lt;RoomID&gt;</code> and <code translate="no" dir="ltr">&lt;PackageID&gt;</code>, and therefore is not recommended.</span></aside> <h3 id="roombundle-attributes" class="hide-from-toc" data-text="Attributes" tabindex="-1">Attributes</h3> <p>The <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element has no attributes.</p> <h3 id="roombundle-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element has the following child elements:</p> <table class="fixed"> <tbody> <tr> <th width="18%">Child&nbsp;Element</th> <th width="10%">Required?</th> <th width="10%">Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;Baserate&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">float</span></td> <td>Defines the price of the Room Bundle for the stay. This element uses the same syntax as <code translate="no" dir="ltr">&lt;Baserate&gt;</code> in <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>, with the following exception: <ul> <li>When the room is unavailable for the itinerary, remove the <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element to indicate that a room is no longer in inventory. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#removing"> Removing a Room Bundle</a>.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;BreakfastIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Specifies whether this Room Bundle includes breakfast with the rate.</td> </tr> <tr> <td><span translate="no">&lt;ChargeCurrency&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">enum</span></td> <td>When and where the user pays for a booking. This element uses the same syntax as <code translate="no" dir="ltr">&lt;ChargeCurrency&gt;</code> in a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>. <p>The default value is <code translate="no" dir="ltr">web</code>.</p> </td> </tr> <tr> <td><span translate="no">&lt;Custom[1&#8209;5]&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>Custom fields for passing additional data to the landing pages for the Room Bundle. These elements use the same syntax as <code translate="no" dir="ltr">&lt;Custom[1-5]&gt;</code> in <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>. There is a limit of 200 characters per custom field. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/pos-syntax">landing page files</a>. <p class="note">If &lt;Custom&gt; elements are provided in the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> element, then they are not inherited in the <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> element and should be defined separately for each <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> or it can be included in &lt;PackageData&gt; if needed.</p> </td> </tr> <tr> <td><span translate="no">&lt;InternetIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>If a Room Bundle includes internet access at no charge, while other bundles wouldn't include that amenity. Don't set this element for Room Bundles in a hotel that provides free internet to all rooms. This element does not apply to in-room wired internet or wireless internet that is not available in guest rooms. </td> </tr> <tr> <td><span translate="no">&lt;Occupancy&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">integer</span></td> <td>Specifies the maximum allowed occupants for this rate. For example, a large suite might be able to physically accommodate 6 guests, but the "Honeymoon Package" allows 2 guests only. <p>This value must be less than or equal to the <code translate="no" dir="ltr">&lt;Capacity&gt;</code>, which is the number of people that the room can physically accommodate.</p> <p>When defining occupancy in your landing page URL, use the <code translate="no" dir="ltr">NUM-ADULTS</code> and <code translate="no" dir="ltr">NUM-CHILDREN</code> variables, as described in <a href="/hotels/hotel-prices/dev-guide/pos-urls">Using Variables and Conditions</a>. The default value is <code translate="no" dir="ltr">2</code> adults and <code translate="no" dir="ltr">0</code> children.</p> <p>The value of <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> must be a positive integer between 1 and 99, inclusive.</p> <p><b>Notes</b>:</p> <ul> <li><code translate="no" dir="ltr">&lt;Occupancy&gt;</code> for <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> is strongly recommended so flagged as required and if omitted will throw a 1097 error.</li> <li><code translate="no" dir="ltr">&lt;Occupancy&gt;</code> comes from the data object in this order: <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>, <code translate="no" dir="ltr">&lt;PackageData&gt;</code>, and then = <code translate="no" dir="ltr">&lt;RoomData&gt;</code>. If there is no value present in any of these, the value defaults to 2. </li> <li><code translate="no" dir="ltr">&lt;Occupancy&gt;</code> may be accompanied by <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code>, which specifies the type of guests (adults or children). If guest types are not specified, they are assumed to be adults. Consult <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#OccupancyDetails"><code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code></a> for syntax and description of child elements.</li> <li>When you set <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> in both <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> and <code translate="no" dir="ltr">&lt;PackageData&gt;</code>, the value in <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> takes precedence. </li></ul> </td> </tr> <tr> <td><span translate="no">&lt;OtherFees&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">float</span></td> <td>Fees other than the base rate and taxes that influence the final price of a room. The <code translate="no" dir="ltr">&lt;OtherFees&gt;</code> element takes a single required attribute, <code translate="no" dir="ltr">currency</code>, that defines the three-letter <a href="https://support.google.com/merchants/answer/160637">currency code</a> for the fees. For example, use <code translate="no" dir="ltr">USD</code> for US dollars.</td> </tr> <tr> <td><span translate="no">&lt;PackageID&gt;</span></td> <td><span translate="no">Optional (recommended)</span></td> <td><span translate="no">string</span></td> <td>The unique ID for the package data. Use this ID to match the Room Bundle data with what was sent in <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a>. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata">Room Bundle metadata</a>. (You can also use this ID to reference a common Room Bundle definition used in a single Transaction message when defining Room Bundle data inline.)</td> </tr> <tr> <td><span translate="no">&lt;ParkingIncluded&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">boolean</span></td> <td>Whether a Room Bundle includes parking at no charge, where parking would otherwise be a paid service at this hotel. Don't specify a value for this element for a hotel that offers free parking. <p>Valid values are <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>) and <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>). The default value is <code translate="no" dir="ltr">false</code>.</p> </td> </tr> <tr> <td><span translate="no">&lt;RatePlanID&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">string</span></td> <td>The Rate Plan ID represents the unique identifier for a room and package combination. For example, given a <code translate="no" dir="ltr">&lt;RoomID&gt;</code> value of 5 and a <code translate="no" dir="ltr">&lt;PackageID&gt;</code> value of ABC, you could use a value of 5-ABC for <code translate="no" dir="ltr">&lt;RatePlanID&gt;</code>. We strongly recommend using RatePlanID as a variable to build your dynamic landing page (formerly Point of Sale) URL. <p>For more information, refer to <a href="/hotels/hotel-prices/dev-guide/pos-urls">Using Variables and Conditions</a>.</p> </td> </tr> <tr> <td><span translate="no">&lt;Rates&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no"><a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a></span></td> <td>Rates that override the defaults for this Room Bundle. This element uses the same syntax as <code translate="no" dir="ltr">&lt;Rates&gt;</code> in <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a>.</td> </tr> <tr> <td><span translate="no">&lt;Refundable&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>Enables listing a rate as being fully refundable or providing a free cancellation. If not provided, no information about a refund is displayed. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Result"><code translate="no" dir="ltr">&lt;Result&gt;</code></a> level. A refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#Rates"><code translate="no" dir="ltr">&lt;Rates&gt;</code></a> level overrides the refund policy at the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> level. Refundable pricing can also be highlighted to users through alternative options without directly modifying your transaction message schema. Learn more about these options <a href="https://support.google.com/hotelprices/answer/9824483">Refundable rates policy</a>. <p></p> <p>The following example shows the <code translate="no" dir="ltr">&lt;Refundable&gt;</code> element with all of its attributes set:</p> <pre class="prettyprint" translate="no" dir="ltr">&lt;Refundable available="1" refundable_until_days="7" refundable_until_time="18:00:00"/&gt;</pre> <p><b>Note:</b> We recommend setting all of the attributes. A feed status warning message is generated when one or more attributes are not set.</p> <p>If you don't set any attributes, the rate does not display as refundable. The attributes are:</p> <ul> <li><code translate="no" dir="ltr">available</code>: (Required) Set to <code translate="no" dir="ltr">1</code> (or <code translate="no" dir="ltr">true</code>) to indicate if the rate allows a full refund; otherwise set to <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>).</li> <li><code translate="no" dir="ltr">refundable_until_days</code>: (Required if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the number of days in advance of check-in that a full refund can be requested. The value of <code translate="no" dir="ltr">refundable_until_days</code> must be an integer between 0 and 330, inclusive.</li> <li><code translate="no" dir="ltr">refundable_until_time</code>: (Highly recommended if <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">true</code>) Specifies the latest time of day, in the local time of the hotel, that a full refund request will be honored. This can be combined with <code translate="no" dir="ltr">refundable_until_days</code> to specify, for example, that "refunds are available until 4:00PM two days before check-in". If <code translate="no" dir="ltr">refundable_until_time</code> isn't set, the value defaults to midnight. <p>The value of this attribute uses the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/datetime#Time">Time</a> format.</p> </li> </ul> <p>When setting the attributes, note the following:</p> <ul> <li>If <code translate="no" dir="ltr">available</code> or <code translate="no" dir="ltr">refundable_until_days</code> isn't set, the rate does not display as refundable.</li> <li>If <code translate="no" dir="ltr">available</code> is <code translate="no" dir="ltr">0</code> (or <code translate="no" dir="ltr">false</code>), the other attributes are ignored. The rate does not display as refundable even if one or both of the other attributes is set.</li> </ul> </td> </tr> <tr> <td><span translate="no">&lt;RoomID&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">string</span></td> <td>The unique ID for the room data. Use this ID to match the Room Bundle data with what you sent in <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a>. For more information, refer to <a href="/hotels/hotel-prices/dev-guide/room-bundles#metadata"> Room Bundle metadata</a>. (You can also use this ID to reference a common room definition in a single Transaction message when defining room data inline.)</td> </tr> <tr> <td><span translate="no">&lt;Tax&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">float</span></td> <td>The taxes that are calculated for the final price of a room. The <code translate="no" dir="ltr">&lt;Tax&gt;</code> element takes a single required attribute, <code translate="no" dir="ltr">currency</code>, that defines the three-letter <a href="https://support.google.com/merchants/answer/160637">currency code</a> for the taxes. For example, use <code translate="no" dir="ltr">USD</code> for US dollars.</td> </tr> </tbody> </table> <h3 id="roombundle-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="single-occupancy-bundle" data-text="Single occupancy bundle" tabindex="-1">Single occupancy bundle</h3><p>The following example defines a response with a single occupancy bundle. When a user selects <code translate="no" dir="ltr">1</code> in the Occupancy picker, Google displays the lowest eligible price regardless of occupancy.</p> <p>If a single occupancy price is not available, then Google will show the lowest double-occupancy price. Note that single occupancy prices are not live queried if double-occupancy or more prices are cached for an itinerary.</p> <p>This example references predefined room and package metadata with the <code translate="no" dir="ltr">&lt;RoomID&gt;</code> and <code translate="no" dir="ltr">&lt;PackageID&gt;</code> elements. Use the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a> and <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> elements to define that information.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;!-- Efficient method of defining Room Bundles--&gt; &lt;!----- Occupancy of 1 example -----&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;12345678&quot;&gt; &lt;!-- Part1: Define RoomData and PackageData in PropertyDataSet --&gt; &lt;!-- Note: Once defined it does not have to be repeated for future Transaction Messages. PropertyDataSets can also be defined and sent in their own Transaction Message separately from pricing. Google can be configured to pull just PropertyDataSets once per day (or on a predefined frequency). --&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;!-- Can be reused by multiple Room Bundles --&gt; &lt;RoomData&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single Queen Room - Non-Smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre de la Roi Premium - Pas de Fumeurs&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;!-- Room can accommodate up to 4, but package data specifies occupancy between 1 to 4 --&gt; &lt;Capacity&gt;4&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;RoomData&gt; &lt;RoomID&gt;436233&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Premium King Room - Non-Smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre de le Roi Premium - Pas de Fumeurs&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Capacity&gt;4&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;!-- Can be reused by multiple Room Bundles --&gt; &lt;PackageData&gt; &lt;PackageID&gt;P11111&lt;/PackageID&gt; &lt;Occupancy&gt;1&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;7&quot; refundable_until_time=&quot;18:00:00&quot;/&gt; &lt;ParkingIncluded&gt;1&lt;/ParkingIncluded&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;/PackageData&gt; &lt;PackageData&gt; &lt;PackageID&gt;P54321&lt;/PackageID&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;7&quot; refundable_until_time=&quot;18:00:00&quot;/&gt; &lt;ParkingIncluded&gt;1&lt;/ParkingIncluded&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;/PackageData&gt; &lt;PackageData&gt; &lt;PackageID&gt;P12345&lt;/PackageID&gt; &lt;Occupancy&gt;4&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;1&quot; refundable_until_time=&quot;18:00:00&quot;/&gt; &lt;ParkingIncluded&gt;1&lt;/ParkingIncluded&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;!-- Efficient method of defining Room Bundles --&gt; &lt;!-- Part 2: Reference RoomData and PackageData through ID --&gt; &lt;Result&gt; &lt;!-- Single occupancy pricing will be specified in a room bundle below --&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;Checkin&gt;2017-10-07&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;!-- Base Room Bundle --&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;PackageID&gt;P54321&lt;/PackageID&gt; &lt;Baserate currency=&quot;USD&quot;&gt;199.99&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;RatePlanID&gt;060773-P54321&lt;/RatePlanID&gt; &lt;/RoomBundle&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;PackageID&gt;P11111&lt;/PackageID&gt; &lt;!-- Price for 1 (&quot;occupancy&quot;) is the lowest price and will be displayed --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;174.99&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;22.08&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;RatePlanID&gt;060773-P11111&lt;/RatePlanID&gt; &lt;/RoomBundle&gt; &lt;!-- Premium Room Bundle --&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;436233&lt;/RoomID&gt; &lt;PackageID&gt;P12345&lt;/PackageID&gt; &lt;!-- Price for 4 (&quot;occupancy&quot;), any eligible room bundle with 1 or more occupancy will be displayed--&gt; &lt;Baserate currency=&quot;USD&quot;&gt;298.88&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;42.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;10.00&lt;/OtherFees&gt; &lt;RatePlanID&gt;436233-P12345&lt;/RatePlanID&gt; &lt;/RoomBundle&gt; &lt;!-- ..Continue providing all available RoomBundle rates under matched property for 1 or more occupancies..--&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="two-or-more-occupancies" data-text="Two or more occupancies" tabindex="-1">Two or more occupancies</h3><p>The following example defines a response containing two or more occupancies.</p> <p>This example references predefined room and package metadata with the <code translate="no" dir="ltr">&lt;RoomID&gt;</code> and <code translate="no" dir="ltr">&lt;PackageID&gt;</code> elements. Use the <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomData"><code translate="no" dir="ltr">&lt;RoomData&gt;</code></a> and <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#PackageData"><code translate="no" dir="ltr">&lt;PackageData&gt;</code></a> elements to define that information.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;!-- Efficient method of defining Room Bundles--&gt; &lt;!----- Occupancy of 3 example -----&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;12345678&quot;&gt; &lt;!-- Efficient method of defining Room Bundles--&gt; &lt;!-- Part1: Define RoomData and PackageData in PropertyDataSet --&gt; &lt;PropertyDataSet&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;!-- Can be reused by multiple Room Bundles --&gt; &lt;RoomData&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Single Queen Room - Non-Smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre de la Roi Premium - Pas de Fumeurs&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;!-- Room can accommodate up to 4, but package data specifies occupancy between 1 to 4 --&gt; &lt;Capacity&gt;4&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;RoomData&gt; &lt;RoomID&gt;436233&lt;/RoomID&gt; &lt;Name&gt; &lt;Text text=&quot;Premium King Room - Non-Smoking&quot; language=&quot;en&quot;/&gt; &lt;Text text=&quot;Chambre de le Roi Premium - Pas de Fumeurs&quot; language=&quot;fr&quot;/&gt; &lt;/Name&gt; &lt;Capacity&gt;4&lt;/Capacity&gt; &lt;/RoomData&gt; &lt;!-- Can be reused by multiple Room Bundles --&gt; &lt;PackageData&gt; &lt;PackageID&gt;P33333&lt;/PackageID&gt; &lt;Occupancy&gt;3&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;7&quot; refundable_until_time=&quot;18:00:00&quot;/&gt; &lt;ParkingIncluded&gt;1&lt;/ParkingIncluded&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;/PackageData&gt; &lt;PackageData&gt; &lt;PackageID&gt;P12345&lt;/PackageID&gt; &lt;Occupancy&gt;4&lt;/Occupancy&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;1&quot; refundable_until_days=&quot;1&quot; refundable_until_time=&quot;18:00:00&quot;/&gt; &lt;ParkingIncluded&gt;1&lt;/ParkingIncluded&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;/PackageData&gt; &lt;/PropertyDataSet&gt; &lt;Result&gt; &lt;Property&gt;180054&lt;/Property&gt; &lt;Checkin&gt;2017-10-07&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;!-- Efficient method of defining Room Bundles --&gt; &lt;!-- Part 2: Reference RoomData and PackageData through ID --&gt; &lt;!-- Base Room Bundle --&gt; &lt;RoomBundle&gt; &lt;!-- Baserate above and attributes must match atleast one room bundle below --&gt; &lt;RoomID&gt;060773&lt;/RoomID&gt; &lt;PackageID&gt;P33333&lt;/PackageID&gt; &lt;Baserate currency=&quot;USD&quot;&gt;499.99&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;55.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;22.00&lt;/OtherFees&gt; &lt;/RoomBundle&gt; &lt;!-- Premium Room Bundle --&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;436233&lt;/RoomID&gt; &lt;PackageID&gt;P12345&lt;/PackageID&gt; &lt;!-- Lowest price for 3 (&quot;occupancy&quot;), shown below, will be displayed --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;598.88&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;62.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;30.00&lt;/OtherFees&gt; &lt;/RoomBundle&gt; &lt;!-- ..Continue providing all available RoomBundle rates under matched property for 2 or more occupancies..--&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> <p><br></p> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="hostel-example" data-text="Multiple room bundles" tabindex="-1">Multiple room bundles</h3><p>The following example sets Occupancy in multiple Room bundles to demonstrate possible hostel room pricing.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction ... &gt; &lt;Result&gt; ... &lt;!-- Suite Room Bundle --&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;suite1&lt;/RoomID&gt; &lt;PackageID&gt;standard&lt;/PackageID&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;!-- Price for room --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;80.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;5.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;RoomData&gt; &lt;Name&gt; &lt;Text text=&quot;Suite for 2&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;/RoomData&gt; &lt;/RoomBundle&gt; &lt;!-- Small Dorm Room Bundle --&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;small_dorm&lt;/RoomID&gt; &lt;PackageID&gt;economy&lt;/PackageID&gt; &lt;Occupancy&gt;1&lt;/Occupancy&gt; &lt;!-- Price per bed --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;35.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;3.50&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;RoomData&gt; &lt;Name&gt; &lt;Text text=&quot;1 bed in small dorm&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;/RoomData&gt; &lt;/RoomBundle&gt; &lt;!-- Large Dorm Room Bundle --&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;large_dorm&lt;/RoomID&gt; &lt;PackageID&gt;economy&lt;/PackageID&gt; &lt;Occupancy&gt;1&lt;/Occupancy&gt; &lt;!-- Price per bed --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;20.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;2.50&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;RoomData&gt; &lt;Name&gt; &lt;Text text=&quot;1 bed in large dorm&quot; language=&quot;en&quot;/&gt; &lt;/Name&gt; &lt;/RoomData&gt; &lt;/RoomBundle&gt; ... &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="multiple-conditional-rates_1" data-text="Multiple Conditional rates" tabindex="-1">Multiple Conditional rates</h3><p>The following example defines a base rate and multiple conditional rates within a <a href="https://developers.google.com/hotels/hotel-prices/xml-reference/transaction-messages#RoomBundle"><code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></a>:</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; &lt;Transaction timestamp=&quot;2023-05-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2023-04-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;!-- When Google receives new room bundle information for an itinerary, all previous room bundle pricing is dropped from Google&#39;s cache. Thus, if you want to delete a specific room bundle from Google&#39;s cache, you may do so by simply not providing that specific room bundle in subsequent transaction messages. --&gt; &lt;RoomBundle&gt; ... &lt;!-- RoomID is required, PackageID is recommended. --&gt; &lt;RoomID&gt;5&lt;/RoomID&gt; &lt;PackageID&gt;ABC&lt;/PackageID&gt; &lt;!-- Baserate is required. --&gt; &lt;Baserate currency=&quot;USD&quot;&gt;275.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;27.50&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;!-- RatePlanID is optional and represents the unique identifier for a room and package data combination. We strongly recommend using RatePlanID as a variable to build your dynamic landing page (formerly Point of Sale) URL. For details, see Using Variables and Conditions. --&gt; &lt;RatePlanID&gt;5-ABC&lt;/RatePlanID&gt; &lt;!-- Occupancy is mandatory for RoomBundle elements. --&gt; &lt;!-- Elements below will get inherited to nested rate elements. --&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;2&lt;/NumAdults&gt; &lt;/OccupancyDetails&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;!-- Rate rule &quot;mobile&quot; overrides chargeCurrency, &quot;us_or_gb&quot; doesn&#39;t. --&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Custom1&gt;ratebasic&lt;/Custom1&gt; &lt;!-- Neither rate overrides Custom2. --&gt; &lt;Custom2&gt;ratebasic&lt;/Custom2&gt; &lt;Rates&gt; &lt;Rate rate_rule_id=&quot;mobile&quot;&gt; &lt;Baserate currency=&quot;USD&quot;&gt;258.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.83&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;!-- The value below overrides ChargeCurrency from roombundle. --&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;!-- The value below overrides Custom1 from roombundle. --&gt; &lt;Custom1&gt;ratecode321&lt;/Custom1&gt; &lt;!-- Custom2 is inherited from roombundle. --&gt; &lt;/Rate&gt; &lt;Rate rate_rule_id=&quot;us_or_gb&quot;&gt; &lt;Baserate currency=&quot;USD&quot;&gt;268.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;26.83&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;!-- The value below overrides Custom1 from roombundle. --&gt; &lt;Custom1&gt;ratecode432&lt;/Custom1&gt; &lt;!-- Custom2 is inherited from roombundle. --&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/RoomBundle&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> <h2 id="OccupancyDetails" data-text="&lt;OccupancyDetails&gt;" tabindex="-1"><code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code></h2> <p><code translate="no" dir="ltr">&lt;Occupancy&gt;</code> in a transaction message specifies the maximum number of guests for a room or package. <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> can contain additional information such as the number and type of guests (adults or children).</p> <p>When <code translate="no" dir="ltr">&lt;Occupancy&gt;</code> and <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> appear within the <code translate="no" dir="ltr">&lt;Rates&gt;</code> element of <code translate="no" dir="ltr">&lt;Result&gt;</code> or <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>, it means that the rate is constrained by the occupancy details.</p> <h3 id="occupancydetails-syntax" class="hide-from-toc" data-text="Syntax" tabindex="-1">Syntax</h3> <p>When <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> appears, it is always preceded by <code translate="no" dir="ltr">&lt;Occupancy&gt;</code>. Note the following syntax:</p> <pre class="prettyprint readonly" translate="no" dir="ltr">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Transaction ... &gt; &lt;Result&gt; ... &lt;Occupancy&gt;<var translate="no">max_number_of_intended_occupants</var>&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;<var translate="no">number_of_adults</var>&lt;/NumAdults&gt; &lt;Children&gt; &lt;Child age=<var translate="no">age_of_one_child_guest</var>/&gt; &lt;Child age=<var translate="no">age_of_one_child_guest</var>/&gt; &lt;/Children&gt; &lt;/OccupancyDetails&gt; &lt;/Result&gt; &lt;/Transaction&gt; </pre> <h3 id="occupancydetails-children" class="hide-from-toc" data-text="Child elements" tabindex="-1">Child elements</h3> <p>The <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> element has the following child elements:</p> <table class="alternating-odd-rows"> <tbody> <tr> <th>Child&nbsp;Element</th> <th>Required?</th> <th>Type</th> <th>Description</th> </tr> <tr> <td><span translate="no">&lt;NumAdults&gt;</span></td> <td><span translate="no">Required</span></td> <td><span translate="no">integer</span></td> <td>The number of adult guests. Min:1, Max:20.</td> </tr> <tr> <td><span translate="no">&lt;Children&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">Object</span></td> <td>A container for one or more <code translate="no" dir="ltr">&lt;Child&gt;</code> elements.</td> </tr> <tr> <td><span translate="no">&lt;Child age&gt;</span></td> <td><span translate="no">Optional</span></td> <td><span translate="no">integer</span></td> <td>The maximum age for this Child&mdash;for example, <code translate="no" dir="ltr">&lt;Child age="17"&gt;</code>.</td> </tr> </tbody> </table> <h3 id="occupancydetails-examples" class="hide-from-toc" data-text="Examples" tabindex="-1">Examples</h3> <p>The following examples show how <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> may appear within <code translate="no" dir="ltr">&lt;Results&gt;</code>, <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>, or the <code translate="no" dir="ltr">&lt;Rates&gt;</code> child element.</p> <div class="ds-selector-tabs" data-ds-scope="code-sample"> <section><h3 id="result-response" data-text="Result response" tabindex="-1">Result response</h3><p>The following example defines one itinerary and its pricing for one property in response to a Live Pricing Query where the user specified the number and types of guests. Here, the <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> -- 2 adults and one child -- are returned in <code translate="no" dir="ltr">&lt;Result&gt;</code>.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;060773&lt;/Property&gt; &lt;RoomID&gt;RoomType101&lt;/RoomID&gt; &lt;PackageID&gt;Package101&lt;/PackageID&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;278.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.12&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.00&lt;/OtherFees&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id=&quot;site1&quot;/&gt; &lt;/AllowablePointsOfSale&gt; &lt;Occupancy&gt;3&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;2&lt;/NumAdults&gt; &lt;Children&gt; &lt;Child age=&quot;17&quot;/&gt; &lt;/Children&gt; &lt;/OccupancyDetails&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="rates-response" data-text="Rates response" tabindex="-1">Rates response</h3><p>The following example defines one itinerary and its pricing for 1 adult and 1 child. Here, the <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> are returned in the <code translate="no" dir="ltr">&lt;Rates&gt;</code> element of <code translate="no" dir="ltr">&lt;Result&gt;</code>.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;Transaction id=&quot;Wtdj8QoQIWcAAbaTGlIAAAC4&quot; timestamp=&quot;2018-04-18T11:27:45-04:00&quot;&gt; &lt;Result&gt; &lt;Property&gt;8251&lt;/Property&gt; &lt;Checkin&gt;2018-06-20&lt;/Checkin&gt; &lt;Nights&gt;1&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;62.18&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;2.45&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0.00&lt;/OtherFees&gt; &lt;Rates&gt; &lt;Rate rate_rule_id=&quot;rule-951&quot;&gt; &lt;Occupancy&gt;2&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;1&lt;/NumAdults&gt; &lt;Children&gt; &lt;Child age=&quot;17&quot;/&gt; &lt;/Children&gt; &lt;/OccupancyDetails&gt; &lt;Baserate currency=&quot;USD&quot;&gt;42.61&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;5.70&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0.00&lt;/OtherFees&gt; &lt;Custom1&gt;abc4&lt;/Custom1&gt; &lt;AllowablePointsOfSale&gt; &lt;PointOfSale id=&quot;yourhotelpartnersite.com&quot;/&gt; &lt;/AllowablePointsOfSale&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="room-bundle" data-text="Room bundle" tabindex="-1">Room bundle</h3><p>The following example defines an occupancy of 2 adults and 1 child for two nights, with a refundable rate. Here, the <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> appear inside <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code></p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-23T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;6781291&lt;/Property&gt; &lt;Checkin&gt;2017-08-05&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; ... &lt;RoomBundle&gt; &lt;RoomID&gt;10291&lt;/RoomID&gt; &lt;RatePlanID&gt;564739&lt;/RatePlanID&gt; &lt;PackageID&gt;564739&lt;/PackageID&gt; &lt;Occupancy&gt;3&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;2&lt;/NumAdults&gt; &lt;Children&gt; &lt;Child age=&quot;17&quot;/&gt; &lt;/Children&gt; &lt;/OccupancyDetails&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Refundable available=&quot;true&quot; refundable_until_days=&quot;1&quot; refundable_until_time=&quot;23:59:00&quot; /&gt; &lt;Baserate currency=&quot;USD&quot;&gt;185.34&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;37.06&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;2.22&lt;/OtherFees&gt; &lt;/RoomBundle&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> <section><h3 id="multiple-room-bundles_2" data-text="Multiple room bundles" tabindex="-1">Multiple room bundles</h3><p>The following example defines multiple <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code> rates that are restricted to an occupancy of 2 adults and 2 children. Here, the <code translate="no" dir="ltr">&lt;OccupancyDetails&gt;</code> appear in the <code translate="no" dir="ltr">&lt;Rates&gt;</code> element of <code translate="no" dir="ltr">&lt;RoomBundle&gt;</code>.</p> <pre class="readonly prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;Transaction timestamp=&quot;2017-07-18T16:20:00-04:00&quot; id=&quot;42&quot;&gt; &lt;Result&gt; &lt;Property&gt;1234&lt;/Property&gt; &lt;Checkin&gt;2018-06-10&lt;/Checkin&gt; &lt;Nights&gt;2&lt;/Nights&gt; &lt;Baserate currency=&quot;USD&quot;&gt;275.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;27.50&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0&lt;/OtherFees&gt; &lt;RoomBundle&gt; &lt;RoomID&gt;5&lt;/RoomID&gt; &lt;PackageID&gt;STD&lt;/PackageID&gt; &lt;Baserate currency=&quot;USD&quot;&gt;275.00&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;27.50&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;0&lt;/OtherFees&gt; &lt;InternetIncluded&gt;1&lt;/InternetIncluded&gt; &lt;ChargeCurrency&gt;web&lt;/ChargeCurrency&gt; &lt;Custom1&gt;ratebasic&lt;/Custom1&gt; &lt;Custom2&gt;ratebasic&lt;/Custom2&gt; &lt;Occupancy&gt;4&lt;/Occupancy&gt; &lt;OccupancyDetails&gt; &lt;NumAdults&gt;2&lt;/NumAdults&gt; &lt;Children&gt; &lt;Child age=&quot;17&quot;/&gt; &lt;Child age=&quot;17&quot;/&gt; &lt;/Children&gt; &lt;/OccupancyDetails&gt; &lt;Rates&gt; &lt;Rate rate_rule_id=&quot;mobile&quot;&gt; &lt;Baserate currency=&quot;USD&quot;&gt;258.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;25.83&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;ChargeCurrency&gt;hotel&lt;/ChargeCurrency&gt; &lt;Custom1&gt;ratecode321&lt;/Custom1&gt; &lt;/Rate&gt; &lt;Rate rate_rule_id=&quot;us_or_gb&quot;&gt; &lt;Baserate currency=&quot;USD&quot;&gt;268.33&lt;/Baserate&gt; &lt;Tax currency=&quot;USD&quot;&gt;26.83&lt;/Tax&gt; &lt;OtherFees currency=&quot;USD&quot;&gt;1.00&lt;/OtherFees&gt; &lt;Custom1&gt;ratecode432&lt;/Custom1&gt; &lt;/Rate&gt; &lt;/Rates&gt; &lt;/RoomBundle&gt; &lt;/Result&gt; &lt;/Transaction&gt; </code></pre></section> </div> </div> <devsite-recommendations display="in-page" hidden yield> </devsite-recommendations> <devsite-thumb-rating position="footer"> </devsite-thumb-rating> <devsite-feedback position="footer" project-name="Hotel Prices" product-id="82128" bucket="Hotels" context="DevSite feedback link" version="t-devsite-webserver-20241114-r00-rc02.464922260396498922" data-label="Send Feedback Button" track-type="feedback" track-name="sendFeedbackLink" track-metadata-position="footer" class="nocontent" project-feedback-url="https://support.google.com/hotelprices/" project-icon="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png" project-support-url="https://support.google.com/hotelprices/" > <button> Send feedback </button> </devsite-feedback> <devsite-recommendations id="recommendations-link" yield></devsite-recommendations> <div class="devsite-floating-action-buttons"> </div> </article> <devsite-content-footer class="nocontent"> <p>All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.</p> <p>Last updated 2024-09-18 UTC.</p> </devsite-content-footer> <devsite-notification > </devsite-notification> <div class="devsite-content-data"> <template class="devsite-thumb-rating-feedback"> <devsite-feedback position="thumb-rating" project-name="Hotel Prices" product-id="82128" bucket="Hotels" context="DevSite feedback link" version="t-devsite-webserver-20241114-r00-rc02.464922260396498922" data-label="Send Feedback Button" track-type="feedback" track-name="sendFeedbackLink" track-metadata-position="thumb-rating" class="nocontent" project-feedback-url="https://support.google.com/hotelprices/" project-icon="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/touchicon-180-new.png" project-support-url="https://support.google.com/hotelprices/" > <button> Need to tell us more? </button> </devsite-feedback> </template> <template class="devsite-content-data-template"> [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],[]] </template> </div> </devsite-content> </main> <devsite-footer-promos class="devsite-footer"> </devsite-footer-promos> <devsite-footer-linkboxes class="devsite-footer"> <nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links"> <ul class="devsite-footer-linkboxes-list"> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Connect</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//googledevelopers.blogspot.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Blog </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://www.instagram.com/googlefordevs/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Instagram </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://www.linkedin.com/showcase/googledevelopers/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > LinkedIn </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//twitter.com/googledevs" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > X (Twitter) </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//www.youtube.com/user/GoogleDevelopers" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > YouTube </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Programs</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//www.womentechmakers.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Women Techmakers </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/community/gdg" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Google Developer Groups </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/community/experts" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Google Developer Experts </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/community/accelerators" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Accelerators </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/community/gdsc" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Google Developer Student Clubs </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Developer consoles</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//console.developers.google.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Google API Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//console.cloud.google.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Google Cloud Platform Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//play.google.com/apps/publish" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Google Play Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//console.firebase.google.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Firebase Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//console.actions.google.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Actions on Google Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//cast.google.com/publish" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 6)" > Cast SDK Developer Console </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//chrome.google.com/webstore/developer/dashboard" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 7)" > Chrome Web Store Dashboard </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//console.home.google.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 8)" > Google Home Developer Console </a> </li> </ul> </li> </ul> </nav> </devsite-footer-linkboxes> <devsite-footer-utility class="devsite-footer"> <div class="devsite-footer-utility nocontent"> <nav class="devsite-footer-sites" aria-label="Other Google Developers websites"> <a href="https://developers.google.com/" class="devsite-footer-sites-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Developers Link"> <picture> <img class="devsite-footer-sites-logo" src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/lockup-google-for-developers.svg" loading="lazy" alt="Google Developers"> </picture> </a> <ul class="devsite-footer-sites-list"> <li class="devsite-footer-sites-item"> <a href="//developer.android.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Android Link" > Android </a> </li> <li class="devsite-footer-sites-item"> <a href="//developer.chrome.com/home" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Chrome Link" > Chrome </a> </li> <li class="devsite-footer-sites-item"> <a href="//firebase.google.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Firebase Link" > Firebase </a> </li> <li class="devsite-footer-sites-item"> <a href="//cloud.google.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Cloud Platform Link" > Google Cloud Platform </a> </li> <li class="devsite-footer-sites-item"> <a href="//ai.google.dev/" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google AI Link" > Google AI </a> </li> <li class="devsite-footer-sites-item"> <a href="/products" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer All products Link" > All products </a> </li> </ul> </nav> <nav class="devsite-footer-utility-links" aria-label="Utility links"> <ul class="devsite-footer-utility-list"> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="/terms/site-terms" data-category="Site-Wide Custom Events" data-label="Footer Terms link" > Terms </a> </li> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="//policies.google.com/privacy" data-category="Site-Wide Custom Events" data-label="Footer Privacy link" > Privacy </a> </li> <li class="devsite-footer-utility-item glue-cookie-notification-bar-control"> <a class="devsite-footer-utility-link gc-analytics-event" href="#" data-category="Site-Wide Custom Events" data-label="Footer Manage cookies link" aria-hidden="true" > Manage cookies </a> </li> <li class="devsite-footer-utility-item devsite-footer-utility-button"> <span class="devsite-footer-utility-description">Sign up for the Google for Developers newsletter</span> <a class="devsite-footer-utility-link gc-analytics-event" href="/newsletter/subscribe" data-category="Site-Wide Custom Events" data-label="Footer Subscribe link" > Subscribe </a> </li> </ul> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="de" >Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es" >Español</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419" >Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr" >Français</a> </li> <li role="presentation"> <a role="menuitem" lang="id" >Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="it" >Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl" >Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br" >Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi" >Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr" >Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru" >Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he" >עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar" >العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa" >فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi" >हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn" >বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th" >ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw" >中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja" >日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko" >한국어</a> </li> </ul> </devsite-language-selector> </nav> </div> </devsite-footer-utility> <devsite-panel></devsite-panel> <devsite-concierge data-info-panel data-ai-panel data-api-explorer-panel > </devsite-concierge> </section></section> <devsite-sitemask></devsite-sitemask> <devsite-snackbar></devsite-snackbar> <devsite-tooltip ></devsite-tooltip> <devsite-heading-link></devsite-heading-link> <devsite-analytics> <script type="application/json" analytics>[{&#34;dimensions&#34;: {&#34;dimension11&#34;: false, &#34;dimension5&#34;: &#34;en&#34;, &#34;dimension3&#34;: false, &#34;dimension6&#34;: &#34;en&#34;, &#34;dimension1&#34;: &#34;Signed out&#34;, &#34;dimension4&#34;: &#34;Hotel Prices&#34;}, &#34;gaid&#34;: &#34;UA-24532603-1&#34;, &#34;metrics&#34;: {&#34;ratings_count&#34;: &#34;metric2&#34;, &#34;ratings_value&#34;: &#34;metric1&#34;}, &#34;purpose&#34;: 1}]</script> <script type="application/json" tag-management>{&#34;at&#34;: &#34;True&#34;, &#34;ga4&#34;: [{&#34;id&#34;: &#34;G-272J68FCRF&#34;, &#34;purpose&#34;: 1}], &#34;ga4p&#34;: [{&#34;id&#34;: &#34;G-272J68FCRF&#34;, &#34;purpose&#34;: 1}], &#34;gtm&#34;: [], &#34;parameters&#34;: {&#34;internalUser&#34;: &#34;False&#34;, &#34;language&#34;: {&#34;machineTranslated&#34;: &#34;False&#34;, &#34;requested&#34;: &#34;en&#34;, &#34;served&#34;: &#34;en&#34;}, &#34;pageType&#34;: &#34;article&#34;, &#34;projectName&#34;: &#34;Hotel Prices&#34;, &#34;signedIn&#34;: &#34;False&#34;, &#34;tenant&#34;: &#34;developers&#34;, &#34;recommendations&#34;: {&#34;sourcePage&#34;: &#34;&#34;, &#34;sourceType&#34;: 0, &#34;sourceRank&#34;: 0, &#34;sourceIdenticalDescriptions&#34;: 0, &#34;sourceTitleWords&#34;: 0, &#34;sourceDescriptionWords&#34;: 0, &#34;experiment&#34;: &#34;&#34;}, &#34;experiment&#34;: {&#34;ids&#34;: &#34;&#34;}}}</script> </devsite-analytics> <devsite-badger></devsite-badger> <script nonce="0HHTfxSI99nkE0Xq8bJgSnjBep2jwc"> (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i; t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0]; E.parentNode.insertBefore(t,E);})(window, document, 'script', 'https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/js/app_loader.js', '[1,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers","https://developers-dot-devsite-v2-prod.appspot.com",null,null,["/_pwa/developers/manifest.json","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/developers/images/favicon-new.png","https://fonts.googleapis.com/css?family=Google+Sans:400,500|Roboto:400,400italic,500,500italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,112,113,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,147,148,149,151,152,156,157,158,159,161,163,164,168,169,170,179,180,182,183,186,191,193,196],"AIzaSyAP-jjEJBzmIyKR4F-3XITp8yM9T1gEEI8","AIzaSyB6xiKGDR5O3Ak2okS4rLkauxGUG7XP0hg","developers.google.com","AIzaSyAQk0fBONSGUqCNznf6Krs82Ap1-NV6J4o","AIzaSyCCxcqdrZ_7QMeLCRY20bh_SXdAYqy70KY",null,null,null,["MiscFeatureFlags__enable_explain_this_code","Profiles__enable_recognition_badges","Profiles__enable_completecodelab_endpoint","Search__enable_ai_search_summaries","Profiles__enable_dashboard_curated_recommendations","Cloud__enable_cloud_dlp_service","Profiles__enable_developer_profiles_callout","Cloud__enable_legacy_calculator_redirect","MiscFeatureFlags__enable_firebase_utm","Search__enable_suggestions_from_borg","Cloud__enable_cloud_shell","MiscFeatureFlags__enable_project_variables","CloudShell__cloud_shell_button","CloudShell__cloud_code_overflow_menu","Experiments__reqs_query_experiments","Cloud__enable_cloudx_ping","Profiles__enable_release_notes_notifications","TpcFeatures__enable_mirror_tenant_redirects","Profiles__enable_profile_collections","Cloud__enable_llm_concierge_chat","Concierge__enable_concierge","Analytics__enable_clearcut_logging","DevPro__enable_cloud_innovators_plus","Cloud__enable_cloud_facet_chat","Search__enable_dynamic_content_confidential_banner","Profiles__enable_complete_playlist_endpoint","TpcFeatures__enable_required_headers","MiscFeatureFlags__emergency_css","BookNav__enable_tenant_cache_key","MiscFeatureFlags__developers_footer_image","Profiles__enable_awarding_url","Search__enable_page_map","MiscFeatureFlags__enable_view_transitions","Search__enable_ai_eligibility_checks","EngEduTelemetry__enable_engedu_telemetry","MiscFeatureFlags__enable_variable_operator","Profiles__enable_public_developer_profiles","Concierge__enable_concierge_restricted","DevPro__enable_developer_subscriptions","Cloud__enable_cloud_shell_fte_user_flow","Cloud__enable_free_trial_server_call","Profiles__enable_page_saving","Concierge__enable_pushui","MiscFeatureFlags__developers_footer_dark_image","Profiles__require_profile_eligibility_for_signin","Search__enable_ai_search_summaries_restricted","Significatio__enable_by_tenant","Cloud__enable_cloudx_experiment_ids"],null,null,"AIzaSyBLEMok-5suZ67qRPzx0qUtbnLmyT_kCVE","https://developerscontentserving-pa.clients6.google.com","AIzaSyCM4QpTRSqP5qI4Dvjt4OAScIN8sOUlO-k","https://developerscontentsearch-pa.clients6.google.com",1,4,null,"https://developerprofiles-pa.clients6.google.com",[1,"developers","Google for Developers","developers.google.com",null,"developers-dot-devsite-v2-prod.appspot.com",null,null,[1,1,[1],null,null,null,null,null,null,null,null,[1],null,null,null,null,null,null,[1],[1,null,null,[1,20],"/recommendations/information"],null,null,null,[1,1,1],[1,1,null,1,1]],null,[null,null,null,null,null,null,"/images/lockup-new.svg","/images/touchicon-180-new.png",null,null,null,null,1,null,null,null,null,null,null,null,null,1,null,null,null,"/images/lockup-dark-theme-new.svg",[]],[],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[6,1,14,15,20,22,23,29,32,36],null,[[null,null,null,[3,7,10,2,39,17,4,32,24,11,12,13,34,15,25],null,null,[1,[["docType","Choose a content type",[["Tutorial",null,null,null,null,null,null,null,null,"Tutorial"],["Guide",null,null,null,null,null,null,null,null,"Guide"],["Sample",null,null,null,null,null,null,null,null,"Sample"]]],["product","Choose a product",[["Android",null,null,null,null,null,null,null,null,"Android"],["ARCore",null,null,null,null,null,null,null,null,"ARCore"],["ChromeOS",null,null,null,null,null,null,null,null,"ChromeOS"],["Firebase",null,null,null,null,null,null,null,null,"Firebase"],["Flutter",null,null,null,null,null,null,null,null,"Flutter"],["Assistant",null,null,null,null,null,null,null,null,"Google Assistant"],["GoogleCloud",null,null,null,null,null,null,null,null,"Google Cloud"],["GoogleMapsPlatform",null,null,null,null,null,null,null,null,"Google Maps Platform"],["GooglePay",null,null,null,null,null,null,null,null,"Google Pay & Google Wallet"],["GooglePlay",null,null,null,null,null,null,null,null,"Google Play"],["Tensorflow",null,null,null,null,null,null,null,null,"TensorFlow"]]],["category","Choose a topic",[["AiAndMachineLearning",null,null,null,null,null,null,null,null,"AI and Machine Learning"],["Data",null,null,null,null,null,null,null,null,"Data"],["Enterprise",null,null,null,null,null,null,null,null,"Enterprise"],["Gaming",null,null,null,null,null,null,null,null,"Gaming"],["Mobile",null,null,null,null,null,null,null,null,"Mobile"],["Web",null,null,null,null,null,null,null,null,"Web"]]]]]],[1,1],null,1],[[["UA-24532603-1"],["UA-22084204-5"],null,null,["UA-24532603-5"],null,null,[["G-272J68FCRF"],null,null,[["G-272J68FCRF",2]]],[["UA-24532603-1",2]],null,[["UA-24532603-5",2]],null,1],[[4,3],[3,2],[5,4],[15,12],[16,13],[6,5],[11,8],[14,11],[12,9],[1,1],[13,10]],[[1,1],[2,2]]],null,4,null,null,null,null,null,null,null,null,null,null,null,null,null,"developers.devsite.google"],null,"pk_live_5170syrHvgGVmSx9sBrnWtA5luvk9BwnVcvIi7HizpwauFG96WedXsuXh790rtij9AmGllqPtMLfhe2RSwD6Pn38V00uBCydV4m"]') </script> <devsite-a11y-announce></devsite-a11y-announce> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10