Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Las tarifas privadas son un tipo de regla de tarifa que te permite ofrecer tarifas reducidas a los miembros de una lista de público o un programa de lealtad. Por ejemplo, puedes tener una tarifa estándar de USD 150, pero una tarifa privada de USD 135 para los miembros de un programa de lealtad.
Las tarifas privadas tienen varios tratamientos de IU que te permiten mostrar precios con descuentos exclusivos a los usuarios aptos. Para obtener más información sobre estas opciones, consulta Detalles y ejemplos de las tarifas privadas.
Crea tarifas privadas
Para usar tarifas privadas, sigue estos pasos:
Para cada tarifa privada, agrega una nueva regla de tarifa que defina los criterios de la tarifa en el archivo XML de reglas de tarifas. Para obtener más información, consulta la Referencia de XML para las reglas de tarifas.
Agrega las tarifas privadas a los itinerarios correspondientes en tu feed de precios. Para ello, usa la misma sintaxis que Conditional Rates.
Establece el atributo rate_rule_id en el ID del elemento <Rate>.
Actualiza el archivo de tu página de destino (si es necesario) para verificar que los usuarios aptos puedan reservar la tarifa con descuento a través de un vínculo directo a tu sitio web. La URL de la página de destino se genera según la tarifa pública. Las reglas de tarifas para las tarifas privadas se completan en CLOSE-RATE-RULE-IDS y IF-CLOSE-RATE-RULE-IDS se resuelve en true.
Ejemplo
Tarifa privada básica
A continuación, se muestra un ejemplo básico de tarifas privadas:
Todos los derechos reservados. Java es una marca comercial de Oracle o sus afiliados.
Última actualización: 2025-07-30 (UTC)
[null,null,["Última actualización: 2025-07-30 (UTC)"],[[["\u003cp\u003ePrivate rates allow you to offer discounted pricing to specific groups like loyalty program members.\u003c/p\u003e\n"],["\u003cp\u003eYou can create private rates by defining rate criteria in the rate rules XML file and adding them to your price feed.\u003c/p\u003e\n"],["\u003cp\u003ePrivate rates leverage the same syntax as conditional rates, requiring a \u003ccode\u003erate_rule_id\u003c/code\u003e attribute for identification.\u003c/p\u003e\n"],["\u003cp\u003eEligible users can access the discounted rates through deep links, facilitated by updates to your landing page file.\u003c/p\u003e\n"],["\u003cp\u003eA non-hidden rate, such as a public or conditional rate, is necessary for displaying the UI treatment and calculating discounts.\u003c/p\u003e\n"]]],[],null,["# Private rates are a type of rate rule that lets you offer reduced rates for\nmembers of an audience list or loyalty program. For example, you might have a\nstandard rate of $150, but a private rate of $135 for members of a loyalty\nprogram.\n\nPrivate rates have various UI treatments that allow you to display exclusive\ndiscount pricing to eligible users. For more information about these options,\nrefer to [Private rates details and examples](//support.google.com/hotelprices/answer/9984299).\n\nCreate private rates\n--------------------\n\nTo use private rates:\n\n1. For each private rate, add a new rate rule that defines the rate criteria in\n the rate rules XML file. For details, refer to\n [Rate Rules XML Reference](/hotels/hotel-prices/xml-reference/rate-rules).\n\n | **Key Point:** It is recommended that you send single member rate price for the cheapest room bundle first, followed by the remaining room bundle pricing. Multiple member rate pricing is not allowed.\n2. Add the private rates to the appropriate itineraries in your price feed. To\n do this, use the same syntax as [Conditional Rates](/hotels/hotel-prices/dev-guide/fenced-rates).\n Set the `rate_rule_id` attribute to the ID in the `\u003cRate\u003e` element.\n\n3. [Update your landing page file](/hotels/hotel-prices/dev-guide/fenced-rates#pos)\n (if necessary) to verify eligible users can book the discount rate through a\n deep link to your website. The landing page URL is generated by the public\n rate. The rate rules for private rates populates in the `CLOSE-RATE-RULE-IDS`\n and the `IF-CLOSE-RATE-RULE-IDS` resolves to `true`.\n\n### Example\n\n### Basic Private rate\n\nThe following is a basic private rates example: \n\n \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n \u003cTransaction\u003e\n \u003cResult\u003e\n \u003cProperty\u003e1234\u003c/Property\u003e\n \u003cCheckin\u003e2023-05-23\u003c/Checkin\u003e\n \u003cNights\u003e1\u003c/Nights\u003e\n\n \u003c!-- An eligible non-hidden rate is required in order to display the UI treatment. --\u003e\n \u003c!-- This example uses a public rate, but a conditional rate where the\n user meets all conditions could also be used. --\u003e\n \u003c!-- This would be the strikethrough price. --\u003e\n \u003cBaserate currency=\"USD\"\u003e200.00\u003c/Baserate\u003e\n \u003cTax currency=\"USD\"\u003e20.00\u003c/Tax\u003e\n \u003cOtherFees currency=\"USD\"\u003e1.00\u003c/OtherFees\u003e\n\n \u003cRates\u003e\n \u003cRate rate_rule_id=\"sample_qr\"\u003e\n \u003c!-- Price will not be displayed, but is required for calculating discounts. --\u003e\n \u003cBaserate currency=\"USD\"\u003e180.00\u003c/Baserate\u003e\n \u003cTax currency=\"USD\"\u003e18.00\u003c/Tax\u003e\n \u003cCustom1\u003eratecode123\u003c/Custom1\u003e\n \u003c/Rate\u003e\n \u003c/Rates\u003e\n\n \u003c/Result\u003e\n \u003c/Transaction\u003e\n\n### Conditional private rates\n\nThe following example shows conditional rates for US users only. \n\n \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n \u003cTransaction\u003e\n \u003cResult\u003e\n \u003cProperty\u003e1234\u003c/Property\u003e\n \u003cCheckin\u003e2025-08-23\u003c/Checkin\u003e\n \u003cNights\u003e1\u003c/Nights\u003e\n \u003cBaserate currency=\"USD\"\u003e200.00\u003c/Baserate\u003e\n \u003cTax currency=\"USD\"\u003e20.00\u003c/Tax\u003e\n \u003cOtherFees currency=\"USD\"\u003e1.00\u003c/OtherFees\u003e\n \u003cRates\u003e\n \u003cRate rate_rule_id=\"sample_qr\"\u003e\n \u003cBaserate currency=\"USD\"\u003e180.00\u003c/Baserate\u003e\n \u003cTax currency=\"USD\"\u003e18.00\u003c/Tax\u003e\n \u003cCustom1\u003eratecode123\u003c/Custom1\u003e\n \u003cRateRuleSettings\u003e\n \u003cRateRule id=\"US_users\"\u003e\n \u003cUserRateCondition\u003e\n \u003cUserCountry\u003eUS\u003c/UserCountry\u003e\n \u003c/UserRateCondition\u003e\n \u003c/RateRule\u003e\n \u003c/RateRuleSettings\u003e\n \u003c/Rate\u003e\n \u003c/Rates\u003e\n \u003c/Result\u003e\n \u003c/Transaction\u003e\n\nRefer to [Rate Rules XML reference](/hotels/hotel-prices/xml-reference/rate-rules)\nfor more examples."]]