{
    "timestamp": "2026-05-16 13:38:39 UTC",
    "pid": "77A91868",
    "api_base_url": "https://api.adivaha.io/flights/",
    "server_ip": "184.168.115.157",
    "php_version": "8.3.30",
    "step1_createToken": {
        "request": {
            "method": "GET",
            "url": "https://api.adivaha.io/flights/api/?action=createToken",
            "headers": [
                "Accept: application/json",
                "PID: 77A91868",
                "x-api-key: 653A2DFB45A28"
            ]
        },
        "response": {
            "http_code": 200,
            "headers": "HTTP/1.1 200 OK\r\nDate: Sat, 16 May 2026 13:38:39 GMT\r\nServer: Apache/2.4.52 (Ubuntu)\r\nAccess-Control-Allow-Origin: https://docs.adivaha.io\r\nAccess-Control-Allow-Methods: GET, POST, OPTIONS\r\nAccess-Control-Allow-Headers: Content-Type, Authorization, customer-ip, pid, x-api-key\r\nContent-Length: 26\r\nContent-Type: text/html; charset=UTF-8",
            "body": {
                "Token_Status": "SUCCESS"
            },
            "curl_error": null
        }
    },
    "step2_flightSearch": {
        "request": {
            "method": "POST",
            "url": "https://api.adivaha.io/flights/api/?action=flightSearch",
            "headers": [
                "Accept: application/json",
                "Accept-Encoding: gzip",
                "Content-Type: application/json",
                "PID: 77A91868",
                "x-api-key: 653A2DFB45A28"
            ],
            "body": {
                "action": "flightSearch",
                "adults": "1",
                "children": "0",
                "infants": "0",
                "isoneway": "Yes",
                "From_IATACODE": "DEL",
                "To_IATACODE": "DXB",
                "departure_date": "2026-05-31",
                "return_date": "",
                "Flights_category": "Economy"
            }
        },
        "response": {
            "http_code": 200,
            "headers": "HTTP/1.1 200 OK\r\nDate: Sat, 16 May 2026 13:38:40 GMT\r\nServer: Apache/2.4.52 (Ubuntu)\r\nAccess-Control-Allow-Origin: https://docs.adivaha.io\r\nAccess-Control-Allow-Methods: GET, POST, OPTIONS\r\nAccess-Control-Allow-Headers: Content-Type, Authorization, customer-ip, pid, x-api-key\r\nVary: Accept-Encoding\r\nContent-Encoding: gzip\r\nContent-Length: 188\r\nContent-Type: text/html; charset=UTF-8",
            "body": {
                "status": "201",
                "status_message": "Failed",
                "responseData": {
                    "Response": {
                        "ResultRecommendationType": 0,
                        "ResponseStatus": 4,
                        "Error": {
                            "ErrorCode": 6,
                            "ErrorMessage": "Invalid Token"
                        },
                        "TraceId": "8485edc1-74fd-4ce5-b860-002bff00b311"
                    }
                }
            },
            "curl_error": null
        }
    },
    "summary": {
        "createToken_status": "SUCCESS",
        "flightSearch_errorCode": 6,
        "flightSearch_errorMessage": "Invalid Token",
        "issue": "createToken returns SUCCESS but flightSearch immediately returns ErrorCode 6 (Invalid Token). The token is not being activated server-side."
    }
}