API Specification
Tour Detail API
Get complete details of a tour package
Endpoint
POST
/api/b2b/tour/detail.php
This API returns detailed information about a tour including itinerary, inclusions, exclusions, FAQs, and media.
API Key Authentication
Authenticate requests via HTTP Header or Request ParameterEnjoy Holiday Hub APIs authenticate requests using your unique secret API Key. You can provide your key in either of the following standard formats:
Method 1: Header (Recommended)
Send key in standard HTTP header:
X-API-Key: demo_123456789
Method 2: Body / Query
Send key in JSON payload or query param:
"api_key": "demo_123456789"
Demo Sandbox Key:
Get your production key in Agent Portal
demo_123456789
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
TourId | integer | Required | Unique tour ID |
Request Example
JSON Response
{
"api_key": "YOUR_API_KEY",
"TourId": 201
}
cURL Example
curl -X POST "https://enjoyholidayhub.com/api/b2b/tour/detail.php" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-API-Key: demo_123456789" \
-d '{
"TourId": 201,
"api_key": "demo_123456789"
}'
Response Example
JSON Response
{
"status": true,
"data": {
"tour_id": 201,
"title": "Manali Adventure Trip",
"description": "Explore the beauty of Manali with adventure activities.",
"duration": "5 Days / 4 Nights",
"category": "Adventure",
"banner_image": "https://example.com/banner.jpg",
"locations": [
"Delhi",
"Manali",
"Solang Valley"
],
"pricing": {
"adult": 8000,
"child": 5000,
"infant": 2000
},
"itinerary": [
{
"day_title": "Day 1: Arrival in Manali",
"description": "Pickup from Delhi and transfer to Manali."
},
{
"day_title": "Day 2: Solang Valley",
"description": "Adventure activities and sightseeing."
}
],
"includes": [
"Hotel stay",
"Breakfast & Dinner",
"Local sightseeing"
],
"excludes": [
"Airfare",
"Personal expenses"
],
"gallery": [
"https://example.com/img1.jpg",
"https://example.com/img2.jpg"
],
"faqs": [
{
"question": "Is this tour refundable?",
"answer": "Yes, cancellation policy applies."
}
]
}
}
Response (Error)
ERROR / NOTICE
Tour not found
JSON Response
{
"status": false,
"message": "Tour not found"
}
Important Notes
- 🌍 Use TourId from search API
- 📅 Check availability separately before booking
- 📜 Always show inclusions/exclusions to users
- 📖 Itinerary helps improve booking conversion
- 🖼 Gallery enhances user experience