API Specification

Visa Status API

v1.2.0 Active API Key Required

Track visa application status with timeline

Endpoint

POST /api/b2b/visa/status.php

This API returns the current status of a visa application along with status history (timeline).

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
ApplicationRefstringOptionalApplication reference number (optional)

Request Example

JSON Response
{
    "api_key": "YOUR_API_KEY",
    "ApplicationId": 1001
}

cURL Example

curl -X POST "https://enjoyholidayhub.com/api/b2b/visa/status.php" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-API-Key: demo_123456789" \
  -d '{
    "ApplicationId": 1001,
    "api_key": "demo_123456789"
}'

Response Example

JSON Response
{
    "status": true,
    "data": {
        "application_id": 1001,
        "current_status": "processing",
        "timeline": [
            {
                "status": "pending",
                "remarks": "Application submitted",
                "date": "2026-05-01 10:00:00"
            },
            {
                "status": "processing",
                "remarks": "Under review",
                "date": "2026-05-02 14:30:00"
            }
        ]
    }
}

Response (Error)

ERROR / NOTICE Application not found
JSON Response
{
    "status": false,
    "message": "Application not found"
}

Important Notes

  • 📊 Status can be pending, processing, approved, rejected
  • 🕒 Timeline shows complete status history
  • 🔍 Use ApplicationId or ApplicationRef
  • 📢 Always show latest status to users
  • 🛂 Status updates depend on embassy processing