API Specification
Visa Search API
Search available visa services by country
Endpoint
POST
/api/b2b/visa/search.php
This API returns available visa services based on country selection. It includes visa types, processing time, and starting price.
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 |
|---|---|---|---|
CountryId | integer | Optional | Filter by country ID |
Keyword | string | Optional | Search by country name |
Page | integer | Optional | Page number (default 1) |
Limit | integer | Optional | Results per page (default 10) |
Request Example
JSON Response
{
"api_key": "YOUR_API_KEY",
"CountryId": 1,
"Page": 1,
"Limit": 10
}
cURL Example
curl -X POST "https://enjoyholidayhub.com/api/b2b/visa/search.php" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-API-Key: demo_123456789" \
-d '{
"CountryId": 1,
"Page": 1,
"api_key": "demo_123456789"
}'
Response Example
JSON Response
{
"status": true,
"data": {
"total": 5,
"page": 1,
"limit": 10,
"visa_services": [
{
"visa_type_id": 5,
"country": "United Arab Emirates",
"visa_type": "Tourist Visa",
"processing_days": 3,
"price_from": 5000
},
{
"visa_type_id": 6,
"country": "Singapore",
"visa_type": "Tourist Visa",
"processing_days": 5,
"price_from": 4500
}
]
}
}
Response (Error)
ERROR / NOTICE
No visa services found
JSON Response
{
"status": false,
"message": "No visa services found"
}
Important Notes
- 🌍 Use visa_type_id for requirements and pricing APIs
- 📊 Supports pagination for large datasets
- 💰 Price is starting price (final amount may vary)
- ⏳ Processing days are approximate
- 🔁 Results depend on available visa services