Get Flight Info
Retrieve detailed information for a specific flight.
Endpoint
- URL:
/api/v1/flight/getflightinfo - Method:
POST - Auth Required: Yes (Bearer Token/X-api-key)
- Content-Type:
application/json
Authentication
This endpoint requires a valid JWT Bearer token in the Authorization header:
Authorization: Bearer <access_token>
Obtain tokens via /api/v1/sign-in (POST) with your credentials.
Request Structure
| Field | Type | Required | Description |
|---|---|---|---|
| system | string | No | Booking system code (e.g., VN, VJ, 1A) |
| sessionInfo | string | No | Flight session info from user selection |
Example Request:
{
"system": "VN",
"sessionInfo": "SESSION123"
}
Request Constraints & Business Rules
sessionInfomust be from a valid user selection.- Only supported flights can be queried.
Response Structure
| Field | Type | Nullable | Description |
|---|---|---|---|
| system | string | Yes | Name of the airline system |
| status | boolean | No | true if successful, false if failed |
| error | ErrorCode (object) | Yes | Error details (if any) |
| description | string | Yes | Error description (if any) |
| trackingId | string | Yes | Tracking ID for request logs |
| trackingTime | string (date-time) | Yes | Time for request tracking |
| segments | array of Segment | Yes | List of flight segments |
Example Response:
{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "abc123",
"trackingTime": "2025-07-01T07:00:00.000Z",
"segments": []
}
Error Codes
See Error Codes for details on possible error responses.
Security & Validation
- All input is validated for type and required fields.
- Only authenticated users can access this endpoint.
- The endpoint is protected against tampering with
sessionInfoand flight data.
Validation Questions
- Are there limits on the number of segments returned?
- Are there airline-specific restrictions for flight info queries?
For integration support, see Contact Support.