API Specification
Visa Appointment API
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 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 |
|---|---|---|---|
ApplicationId | integer | Required | Visa application ID |
AppointmentDate | date | Required | Preferred appointment date (YYYY-MM-DD) |
AppointmentTime | time | Required | Preferred time slot (HH:MM:SS) |
EmbassyName | string | Required | Embassy or VAC name |
Address | string | Optional | Embassy 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