0% found this document useful (0 votes)
61 views3 pages

B2B Hotel API for Travel Agencies

Uploaded by

Rithi Pong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views3 pages

B2B Hotel API for Travel Agencies

Uploaded by

Rithi Pong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

MG BEDBANK

Introduction:
MG Bedbank is South East Asia’s largest Bedbank. We provide
comprehensive range of hotels - both domestic andworldwide - with
guaranteed competitive pricing through B2B online booking system and
Jarvis 1.0 API. API enables
easy, fast and instant access to MG’s unbeatable content, which includes
more t
han 350,000 hotels worldwide with more than 5,500 direct contracts in
Indonesia and Southeast Asia. Thus, online tour operators, travel
agencies, wholesalers can plug-in all our products into their B2C or B2B
websites or reservation system.

-Authentication methods they use


1-API Key Authentication:
 Developers receive an API key after registering with MG Bedbank
 This key uniquely identifies the client application and is required
for all API requests.
 The API key is sent as part of the HTTP request headers or as a
query parameter.
2. Token-Based Authentication (OAuth-like):
-Upon initial authentication using an API key or credentials (username
and password), the system issues an access token.
-This token must be included in subsequent requests to verify the client.
3. Session-Based Authentication (Optional):
-Some platforms may issue session IDs for temporary access.
-Less common in modern APIs but could be used for specific
integrations.
-Supported data formats
1. JSON (JavaScript Object Notation)
-Primary format for both requests and responses.
-Lightweight, easy to read and parse.
-Ideal for web and mobile applications due to its wide compatibility.
2. XML(Extensible Markup Language)
-May be supported as an alternative format for compatibility with older
systems or legacy integrations.
-Verbose but structured and widely used in B2B integrations.
-Key Endpoints for Hotel Data Integration
1. Authentication
-Purpose: Obtain an access token to authenticate subsequent API
requests.
-Endpoint: POST /api/auth/login
-Request Payload:
{
"api_key": "YOUR_API_KEY",
"username": "your_username",
"password": "your_password"
}
-Response:
{
"access_token": "your_access_token",
"expires_in": 3600
}
2. Search Hotels
 Purpose: Search for hotels based on destination, travel dates, and
guest details.
 Endpoint: GET /api/hotels/search
3. Retrieve Hotel Details
 Purpose: Get detailed information about a specific hotel, such as
descriptions, amenities, and images.
4. Check Room Availability and Pricing
 Purpose: Retrieve available rooms and pricing for a specific hotel.
5. Create Booking
 Purpose: Book a room for a specific hotel.
6. Booking Management
Retrieve Booking Details:

 Endpoint: GET /api/bookings/{booking_id}


 Cancel Booking : Endpoint: DELETE /api/bookings/{booking_id}
 Modify Booking : Endpoint: PUT /api/bookings/{booking_id

7. Promotions and Special Deals

 Purpose: Retrieve promotional offers or discounted rates.

8. Hotel Content API

 Purpose: Access static hotel metadata like images, descriptions,


and amenities in bulk.

You might also like