Skip to main content

Retrieve Ticket

Retrieve detailed information about an issued ticket including ticket details, passenger information, and fare breakdown.


Endpoint

  • URL: /api/v1/ticket/retrieve
  • 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

FieldTypeRequiredDescription
systemstringNoSystem code (e.g., VN, VJ, 1A)
ticketTypestringNoTicket type: TKT (Flight ticket), EMD (EMD ticket)
ticketNumberstringNoTicket number
bookingCodestringNoBooking code

Example Request:

{
"system": "VN",
"ticketType": "TKT",
"ticketNumber": "738-1234567890",
"bookingCode": "XSDEFG"
}

Request Constraints & Business Rules

  • The ticketNumber or bookingCode must be provided to identify the ticket.
  • The system should match the system where the ticket was issued.
  • Only issued tickets can be retrieved (not voided or refunded tickets unless specified).
  • EMD tickets require ticketType to be set to "EMD".
  • Access to ticket information may be restricted based on user permissions.

Response Structure

FieldTypeNullableDescription
systemstringYesSystem name (e.g., VN, VJ, 1A)
statusbooleanNotrue if successful, false if failed
errorobjectYesError details (if any)
descriptionstringYesError description (if any)
trackingIdstringYesTracking ID for request logs
trackingTimestringYesTime for request tracking (ISO 8601 format)
ticketobjectYesTicket information (see Ticket object)

BookingTicket Object

FieldTypeNullableDescription
indexintegerNoTicket sequence number
passengerIdstringYesPassenger ID
passengerTypestringYesPassenger type (ADT, CHD, INF)
surnamestringYesPassenger surname
givenNamestringYesPassenger given name
bookingCodestringYesBooking code (PNR)
ticketNumberstringYesTicket number
ticketTypestringYesTicket type (TKT - Flight ticket, EMD - EMD)
ticketStatusstringYesTicket status (OPEN, VOID, USED, RFND, EXCH, TORFND)
serviceTypestringYesService type (FLIGHT, BAGGAGE, SEAT, SSR)
serviceCodestringYesService code
issueDatedatetimeYesTicket issue date
ticketInfostringYesFull ticket information string
baseFarenumberNoBase fare amount
taxesnumberNoTotal taxes
totalFarenumberNoTotal fare amount
currencystringYesCurrency code
taxDetailsarrayYesTax details (see TaxDetail)
couponInfosarrayYesCoupon information (see CouponInfo)
relatedNumberstringYesRelated ticket number
relatedTypestringYesRelated type (EXCH, RFND, ORGN)
endorsementstringYesEndorsement information
faceTicketstringYesFace ticket string

Example Response:

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "abc-123",
"trackingTime": "2024-06-01T12:00:00Z",
"ticket": {
"index": 1,
"passengerId": "PAX001",
"passengerType": "ADT",
"surname": "NGUYEN",
"givenName": "VAN A",
"bookingCode": "ABC123",
"ticketNumber": "738-1234567890",
"ticketType": "TKT",
"ticketStatus": "OPEN",
"serviceType": "FLIGHT",
"serviceCode": "",
"issueDate": "2024-06-01T10:00:00",
"ticketInfo": "PAX 738-2300031330/ETVN/10APR24/HANVN28DB/37963973",
"baseFare": 2000000,
"taxes": 350000,
"totalFare": 2350000,
"currency": "VND",
"taxDetails": [],
"couponInfos": [],
"relatedNumber": null,
"relatedType": null,
"endorsement": "NON-REFUNDABLE",
"faceTicket": null
}
}

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.
  • Ticket access is controlled based on user permissions.
  • Sensitive information may be masked based on user role.
  • All retrieval actions are logged and traceable.

Validation Questions

  • What ticket statuses are retrievable (issued, voided, refunded)?
  • Are there restrictions on retrieving tickets from different systems?
  • How is sensitive passenger information protected in ticket details?
  • What information is available for EMD tickets vs. flight tickets?

For integration support, see Contact Support.