Skip to main content

Issue EMD

Issue an Electronic Miscellaneous Document (EMD) for ancillary services associated with a flight booking. This endpoint is used to generate EMDs for services such as baggage, seats, or other add-ons.


Endpoint

  • URL: /api/v1/flight/issueEMD
  • 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>

Request

Body Schema

FieldTypeRequiredDescription
systemstringNoBooking system code
bookingCodestringNoBooking code
bookerCodestringNoDTC Addons
tourcodestringNoDTC Addons

Response

200 OK

FieldTypeDescription
systemstringSystem name (e.g., VN, VJ, 1A)
statusbooleanSuccess status
errorobjectError code object (see ErrorCode)
descriptionstringError description (if any)
trackingIdstringTracking log ID
trackingTimestringTracking timestamp (ISO 8601)
ticketsarrayList of issued tickets (see Ticket)

BookingTicket Object

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

ErrorCode

FieldTypeDescription
idintegerError code ID
messagestringError message

Business Rules

  • EMD can only be issued for eligible ancillary services.
  • All required booking and passenger information must be provided.
  • Duplicate or invalid booking codes will result in an error.

Example Request

{
"system": "VN",
"bookingCode": "ABC123",
"bookerCode": "BOOKER001",
"tourcode": "TOUR001"
}

Example Response

{
"system": "VN",
"status": true,
"error": null,
"description": null,
"trackingId": "track-003",
"trackingTime": "2024-07-01T13:00:00Z",
"tickets": [
{
"index": 1,
"passengerId": "PAX001",
"passengerType": "ADT",
"surname": "NGUYEN",
"givenName": "MINH",
"bookingCode": "ABC123",
"ticketNumber": "1234567890",
"ticketType": "EMD",
"ticketStatus": "OPEN",
"serviceType": "BAGGAGE",
"serviceCode": "BG15",
"issueDate": "2024-07-01T13:00:00",
"ticketInfo": "EMD 1234567890",
"baseFare": 500000,
"taxes": 0,
"totalFare": 500000,
"currency": "VND",
"taxDetails": [],
"couponInfos": [],
"relatedNumber": null,
"relatedType": null,
"endorsement": null,
"faceTicket": null
}
]
}

Error Codes

See Error Codes for details.


Validation Questions

  • What types of services are eligible for EMD issuance?
  • Are there restrictions on issuing multiple EMDs per booking?
  • What happens if the booking is not eligible for EMD?

Compliance

  • GDPR
  • PCI-DSS

Traceability

  • Requirement: EMD-001, EMD-002