API Specification

Visa Appointment API

v1.2.0 Active API Key Required

Schedule embassy appointment for visa application

Endpoint

POST /api/b2b/visa/appointment.php

This API allows you to schedule an embassy appointment for a visa application.

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
ApplicationIdintegerRequiredVisa application ID
AppointmentDatedateRequiredPreferred appointment date (YYYY-MM-DD)
AppointmentTimetimeRequiredPreferred time slot (HH:MM:SS)
EmbassyNamestringRequiredEmbassy or VAC name
AddressstringOptionalEmbassy address

Request Example

JSON Response
{
    "api_key": "YOUR_API_KEY",
    "ApplicationId": 1001,
    "AppointmentDate": "2026-06-01",
    "AppointmentTime": "10:30:00",
    "EmbassyName": "UAE Embassy",
    "Address": "New Delhi"
}

cURL Example

curl -X POST "https://enjoyholidayhub.com/api/b2b/visa/appointment.php" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-API-Key: demo_123456789" \
  -d '{
    "ApplicationId": 1001,
    "AppointmentDate": "2026-06-01",
    "AppointmentTime": "10:30:00",
    "api_key": "demo_123456789"
}'

Response (Success)

SUCCESS Appointment scheduled successfully
JSON Response
{
    "status": true,
    "message": "Appointment scheduled successfully",
    "data": {
        "appointment_id": 501,
        "application_id": 1001,
        "status": "scheduled"
    }
}

Response (Error)

ERROR / NOTICE Appointment booking failed or slot unavailable
JSON Response
{
    "status": false,
    "message": "Appointment booking failed or slot unavailable"
}

Important Notes

  • 📅 Appointment must be scheduled before visa processing
  • ⏳ Slots are subject to availability
  • 📍 Embassy details must be accurate
  • 🔁 Appointment can be rescheduled if allowed
  • 🛂 Applicant must visit embassy at scheduled time