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

HotelByte
HomepageWaitlist
HomepageWaitlist
Hotel Partners Roadmap
Submit issues
  1. 2. Guides
  • 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
      • HotelRates
    • Make bookings
      • CheckAvail
      • Book
    • Manage bookings
      • QueryOrders
      • Cancel
  1. 2. Guides

Quick start

🚀 Environment Setup#

🔧 Essential configuration for HotelByte API integration - Get up and running in minutes
EnvironmentURLPurpose
Productionhttps://api.hotelbyte.comOfficial business operations
Testinghttps://api-test.hotelbyte.comDevelopment and testing

Step 1: Get Authentication#

We provid test credential hotelbyte_api_demo for seamless development integration.
Response Example:
{
    "code": 0,
    "msg": "success",
    "data": {
        "ticket": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
    }
}

Step 2: Search Hotels#

https://openapi.hotelbyte.com/hotellist-344040746e0

Step 3: Search Rates#

https://openapi.hotelbyte.com/hotelrates-344040747e0

Step 4: CheckAvail#

https://openapi.hotelbyte.com/checkavail-345458908e0

Step 5: Book#

https://openapi.hotelbyte.com/book-303257136e0

Essential Headers#


Standard Response Format#

body
{
    "code": 0,
    "msg": "success",
    "data": {
        // Business data
    }
}
header
{
    "Request-Id": "request-id",
    "Trace-Id": "trace-id",
    "Server-Cost-Milliseconds": 500,
    "Session-Id": "verified-session-id"
}

🚀 Recommended todos in development#

1. Set up your environment-based configuration variables#

2. Ticket Caching (Critical for Performance)#

Here is an example:

📊 API Overview#

Core Interface Mapping#

Feature ModuleEndpointMethodDescription
Authentication/api/auth/ticketPOSTGet access token
Hotel rates/api/search/hotelListPOSTHotel list search
Hotel rates/api/search/hotelRatesPOSTRate query
Make bookings/api/search/checkAvailPOSTcheck ARI
Make bookings/api/trade/bookPOSTSmart booking
Manage bookings/api/trade/queryOrdersPOSTOrder query
Manage bookings/api/trade/cancelPOSTCancel order
Content/api/search/hotelsMetadataPOSTHotels metadata with pagination
Content/api/search/hotelStaticDetailPOSTHotel static details
Content/api/search/destinationsPOSTDestinations where your customers book hotels

📊 Performance Metrics#

MetricValueDescription
API Process Time< 1000msP95 process time (+1s network)
Concurrent Processing10,000+ QPSSupports high traffic access
Supplier Coverage20+Global major hotel suppliers
Hotel Inventory1,000,000+Covers major cities worldwide
Booking Success Rate99.5%Enhanced by async processing

Overall Architecture Diagram#

🌐 Infrastructure & Network Configuration#

Common Issues:
IP whitelist configuration delays
SSL certificate setup
Network connectivity problems
Security policy conflicts
Solutions:
Early Infrastructure Planning: Begin network configuration during development
IP Address Documentation: Provide static IP addresses early in the process
Security Review: Conduct thorough security assessments
Staging Environment: Test all configurations in pre-production
Required Information:
Static IP addresses for API access
SSL certificate requirements
Network security policies
Firewall configuration needs

🔧 SDK Support (comming soon)#

LanguageSDKStatus
Javahotelbyte-java🔄 In Development
Gohotelbyte-go✅ V0.0.1 Released!
PHPhotelbyte-php🔄 In Development
JavaScripthotelbyte-js🔄 In Development
TypeScripthotelbyte-js🔄 In Development
Pythonhotelbyte-python🔄 In Development

Previous
Frequently Asked Questions (FAQ)
Next
Error handling