Join our community at https://www.reddit.com/r/HotelByte/

HotelByte
HomepageWaitlist
HomepageWaitlist
Hotel Partners Roadmap
Submit issues
  1. Search
  • 1. Get started
    • Overview
    • Booking flow
    • Certification and Go Live
    • Frequently Asked Questions (FAQ)
  • 2. Guides
    • Quick start
    • Error handling
    • Rate limit
    • Certification cases
    • Test more scenarios
  • 3. API Reference
    • Authentication
      • Ticket
    • Content
      • Destinations
      • HotelStaticDetail
      • HotelsMetadata
    • Search
      • HotelList
        POST
      • HotelRates
        POST
    • Make bookings
      • CheckAvail
      • Book
    • Manage bookings
      • QueryOrders
      • Cancel
  • Schemas
    • Schemas
    • hotel.common.bff.Table
    • OrderHomeFunctionReq
    • TicketReq
    • TicketResp
    • DestinationInclude
    • DestinationExtra
    • Coordinates
    • CheckAvailReq
    • CheckAvailResp
    • HotelsMetadataListResp
    • HotelsMetadataReq
    • ComputedCancelPolicyItem
    • OrderHomeFunctionResp
    • OriginalRoomNaming
    • Rate
    • CancelResp
    • Tax
    • Holder
    • HotelOrder
    • OrderRoomRefundInfo
    • HotelListReq
    • HotelListResp
    • HotelListBasicInfo
    • BaseHeader
    • BookingHeader
    • ContentHeader
    • HotelMeta
    • DestinationType
    • Guest
    • DestinationsReq
    • DestinationsResp
    • OrderStatus
    • GuestPerRoom
    • RatePkgId
    • RoomRatePkg
    • HotelRatesReq
    • BookReq
    • HotelRatesResp
    • BookResp
    • CancelReq
    • QueryOrdersReq
    • HotelStaticDetailReq
    • QueryOrdersResp
    • HotelStaticDetailResp
  1. Search

HotelRates

HotelByte OpenAPI - Test
https://api-test.hotelbyte.com
HotelByte OpenAPI - Test
https://api-test.hotelbyte.com
POST
https://api-test.hotelbyte.com
/api/search/hotelRates
OpenapiResourceSearch
Get detailed room rates and availability for a specific hotel with comprehensive supplier coverage.
This endpoint provides detailed room rates and availability information for a single hotel, with support for multiple suppliers and advanced filtering options. It's optimized for detailed hotel booking scenarios where comprehensive rate information is required.
Key Differences from HotelList:
Single Hotel Focus: Designed for detailed analysis of one specific hotel
Full Supplier Support: All suppliers support detailed rate queries
Required Parameters:
hotelId: The unique identifier for the target hotel
checkIn/checkOut: Check-in and check-out dates
occupancies: Guest and room configuration
sessionId (in Header): The session ID for tracking the booking process
Response Features:
Complete room package information with rates
Room type mapping and standardization
Session tracking for booking context
Common Use Cases:
Hotel detail page rate display
Room selection and comparison
Detailed booking flow initiation
Integration Notes:
Use HotelList for multi-hotel searches with basic rate info
Use HotelRates for single hotel detailed rate analysis
Session management enables seamless booking flow transitions

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200成功
application/json
OK
Body

🟠400请求有误
🟠401未认证
🟠403权限不足
🟠429请求过多
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-test.hotelbyte.com/api/search/hotelRates' \
--header 'Client-Request-Timestamp;' \
--header 'Currency;' \
--header 'IP;' \
--header 'Language;' \
--header 'Request-Id;' \
--header 'Session-Id;' \
--header 'Test;' \
--header 'Timeout-Milliseconds;' \
--header 'Trace-Id;' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hotelId": "461850557",
    "checkIn": "now()",
    "checkOut": "now()+7",
    "countryCode": "US",
    "residencyCode": "US",
    "nationalityCode": "US",
    "roomOccupancies": [
        {
            "adultCount": 2,
            "childrenAges": [
                2
            ]
        }
    ]
}'
Response Response Example
{
    "code": 0,
    "msg": "string",
    "data": {
        "rooms": [
            {
                "roomTypeId": "string",
                "roomTypeName": {
                    "en": "string",
                    "zh": "string",
                    "ar": "string"
                },
                "hotelId": "string",
                "rates": [
                    {
                        "ratePkgId": "string",
                        "refundableMode": "full",
                        "refundableUntil": "2006-01-02T15:04:05Z07:00",
                        "cancelFees": [
                            {
                                "until": "2006-01-02T15:04:05Z07:00",
                                "fee": {
                                    "currency": "string",
                                    "amount": 0
                                }
                            }
                        ],
                        "originalRoomNaming": {
                            "id": "string",
                            "name": "string",
                            "supplier": 0
                        },
                        "rate": {
                            "commissionableRate": {
                                "currency": "string",
                                "amount": 0
                            },
                            "netRate": {
                                "currency": "string",
                                "amount": 0
                            },
                            "grossRate": {
                                "currency": "string",
                                "amount": 0
                            },
                            "respectGrossRate": true
                        },
                        "totalRate": {
                            "commissionableRate": {
                                "currency": "string",
                                "amount": 0
                            },
                            "netRate": {
                                "currency": "string",
                                "amount": 0
                            },
                            "grossRate": {
                                "currency": "string",
                                "amount": 0
                            },
                            "respectGrossRate": true
                        },
                        "rateComment": "string",
                        "includesPackaging": true,
                        "checkIn": "now()",
                        "checkOut": "now()+7",
                        "board": {
                            "boardId": "RO",
                            "boardName": {
                                "en": "string",
                                "zh": "string",
                                "ar": "string"
                            },
                            "boardDesc": {
                                "en": "string",
                                "zh": "string",
                                "ar": "string"
                            }
                        },
                        "tax": {
                            "total": {
                                "currency": "string",
                                "amount": 0
                            },
                            "items": [
                                {
                                    "taxType": "string",
                                    "taxName": "string",
                                    "amount": {
                                        "currency": "string",
                                        "amount": 0
                                    },
                                    "desc": "string"
                                }
                            ]
                        }
                    }
                ]
            }
        ]
    }
}
Previous
HotelList
Next
CheckAvail
Built with