API Specification

Visa Appointment Slots API

v1.2.0 Active API Key Required

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 Parameter
Required for all endpoints

Enjoy 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: demo_123456789
Get your production key in Agent Portal

Request Parameters

FieldTypeRequiredDescription
VisaTypeIdintegerRequiredSelected visa type ID
DatedateRequiredPreferred appointment date (YYYY-MM-DD)
EmbassyNamestringRequiredEmbassy 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