Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Mức giá ưu đãi chọn lọc là một loại quy tắc giá giúp bạn giảm giá cho các thành viên trong danh sách đối tượng hoặc chương trình khách hàng thân thiết. Ví dụ: Mức giá chuẩn có thể là 1.500.000 VND, nhưng mức giá ưu đãi chọn lọc là 1.350.000 VND dành cho thành viên của chương trình khách hàng thân thiết.
Mức giá ưu đãi chọn lọc có nhiều biện pháp xử lý giao diện người dùng để giúp bạn đăng giá chiết khấu dành riêng cho những người dùng đủ điều kiện. Để biết thêm thông tin về những cách làm này, hãy tham khảo bài viết Ví dụ và thông tin chi tiết về mức giá ưu đãi chọn lọc.
Tạo mức giá ưu đãi chọn lọc
Cách sử dụng mức giá ưu đãi chọn lọc:
Đối với mỗi mức giá ưu đãi chọn lọc, hãy thêm một quy tắc giá mới giúp xác định tiêu chí của mức giá trong tệp XML quy tắc giá. Để biết chi tiết, hãy tham khảo bài viết Tài liệu tham khảo về quy tắc giá viết bằng XML.
Thêm mức giá ưu đãi chọn lọc cho những hành trình phù hợp trong nguồn cấp dữ liệu giá. Để thực hiện việc này, hãy sử dụng cú pháp giống như Giá phòng có điều kiện.
Đặt thuộc tính rate_rule_id thành mã nhận dạng trong phần tử <Rate>.
Cập nhật tệp trang đích (nếu cần) để xác minh rằng người dùng đủ điều kiện có thể đặt phòng với giá chiết khấu thông qua một đường liên kết sâu đến trang web của bạn. URL trang đích do mức giá công khai tạo ra. Quy tắc giá cho mức giá ưu đãi chọn lọc sẽ được điền vào CLOSE-RATE-RULE-IDS và IF-CLOSE-RATE-RULE-IDS sẽ phân giải thành true.
Ví dụ:
Giá ưu đãi chọn lọc cơ bản
Sau đây là một ví dụ cơ bản về mức giá ưu đãi chọn lọc:
Mọi quyền được bảo lưu. Java là một nhãn hiệu đã đăng ký của Oracle và/hoặc chi nhánh của Oracle.
Cập nhật lần gần đây nhất: 2025-07-30 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]