API Specification
Visa Appointment Slots API
Get available appointment slots for embassy
Endpoint
POST
/api/b2b/visa/slots.php
This API returns available appointment slots for a visa application based on selected embassy and date.
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 |
|---|---|---|---|
VisaTypeId | integer | Required | Selected visa type ID |
Date | date | Required | Preferred appointment date (YYYY-MM-DD) |
EmbassyName | string | Required | Embassy or VAC name |
Request Example
JSON Response
{
"api_key": "YOUR_API_KEY",
"VisaTypeId": 5,
"Date": "2026-06-01",
"EmbassyName": "UAE Embassy"
}
cURL Example
curl -X POST "https://enjoyholidayhub.com/api/b2b/visa/slots.php" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-API-Key: demo_123456789" \
-d '{
"VisaTypeId": 5,
"Date": "2026-06-01",
"api_key": "demo_123456789"
}'
Response Example
JSON Response
{
"status": true,
"data": {
"date": "2026-06-01",
"slots": [
{
"time": "09:30:00",
"available": true
},
{
"time": "10:30:00",
"available": true
},
{
"time": "11:30:00",
"available": false
}
]
}
}
Response (Error)
ERROR / NOTICE
No slots available for selected date
JSON Response
{
"status": false,
"message": "No slots available for selected date"
}
Important Notes
- 🕒 Slots are dynamic and may change quickly
- 📅 Always fetch slots before booking appointment
- ❌ Unavailable slots cannot be booked
- 📍 Embassy selection is required
- 🔁 Slot availability depends on visa type and location