Skip to main content

Issue Ticket

Issue flight tickets for confirmed bookings. This endpoint handles ticket issuance for both traditional and NDC bookings with various payment options.


Endpoint

  • URL: /api/v1/flight/issueticket
  • 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
systemstringNoTicketing system (e.g., VN, VJ, 1A)
bookingCodestringNoBooking code (PNR)
comAmountnumberNoCommission amount value
comPercentagebooleanNoWhether commission is percentage (true) or fixed amount (false)
bookerCodestringNoBooker code - Agent code or representative booking code
tourCodestringNoPromotional code used for some airlines
caCodestringNoCorporate account code

Example Request:

{
"system": "VN",
"bookingCode": "ABC123",
"comAmount": 5.0,
"comPercentage": true,
"bookerCode": "AGENT001",
"tourCode": "PROMO2024",
"caCode": "CORP001"
}

Request Constraints & Business Rules

  • The booking must be confirmed and ready for ticketing.
  • Validating carrier must be authorized for ticket issuance.
  • Commission rates must comply with airline agreements.
  • Tour codes must be valid and active for the specified airline.
  • Payment method must be authorized for the user/agency.
  • NDC bookings require additional payment information.
  • Time limits for ticket issuance must be respected.
  • All required passenger information must be complete.

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)
ticketsarrayYesList of issued tickets

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 - Electronic Document)
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",
"tickets": [
{
"index": 1,
"passengerId": "pax-001",
"passengerType": "ADT",
"surname": "NGUYEN",
"givenName": "VAN A",
"bookingCode": "ABC123",
"ticketNumber": "2389876543210",
"ticketType": "TKT",
"ticketStatus": "OPEN",
"serviceType": "FLIGHT",
"serviceCode": "",
"issueDate": "2024-06-01T12: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.
  • Booking codes are verified against existing confirmed bookings.
  • Commission rates are validated against airline agreements.
  • Tour codes are verified for validity and authorization.
  • All ticket issuance actions are logged and traceable.
  • Payment information is validated for NDC transactions.

Validation Questions

  • What are the time limits for ticket issuance after booking confirmation?
  • How are commission rates validated against airline agreements?
  • What payment methods are supported for different airlines?
  • How are EMD (Electronic Miscellaneous Document) tickets handled?

For integration support, see Contact Support.