Skip to main content
The Tripedge Client API provides a client-side SDK for interacting with the Tripedge platform. It includes methods for searching hotels, managing bookings, and handling user authentication. The API is designed to be used in browser-based applications and requires a valid API key for authentication.

Base URL

Authentication

All endpoints are secured and require authentication using a user-specific token. The token needs to be refreshed periodically to maintain access. Below is an example of how to wrap the API client to handle token expiration and automatic refresh:
Example Authentication with the Client API

Core Features

Search for destinations using a query string:
Search for hotel availability using various criteria:

Hotel Details

Retrieve detailed information about a specific hotel:

Booking Management

Create Pre-booking

Initialize a pre-booking for a hotel:

Create Booking

Create a final booking:

Get All Bookings

Retrieve all bookings:

Cancel Booking

Cancel an existing booking:

Types

Common Types

Search Types

Booking Types

Error Handling

All API responses include a standard format:
Handle errors by checking the success flag and message: