Flight Delay Pass API
Booking Details

Get Booking Details

GET Endpoint: [BaseUrl]/api/v1/flight-delay-pass/booking-details/{uniqueTransId}

Overview

The Booking Details API retrieves comprehensive information about a flight delay pass booking including passenger details, pass codes, pricing, and current status.

Authentication

This endpoint requires Bearer token authentication. Include your access token in the Authorization header.

URL Parameters

ParameterTypeRequiredDescription
uniqueTransIdStringYesUnique transaction ID from the booking

Request Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer token for authentication

Example Request

GET [BaseUrl]/api/v1/flight-delay-pass/agent/booking-details/NZFDP2508061933445232

Response

Response
{
  "success": true,
  "uniqueTransId": "NZFDP2508061933445232",
  "code": 200,
  "message": "Booking details retrieved",
  "data": {
    "booking": {
      "unique_trans_id": "NZFDP2508061933445232",
      "product_code": "GMAT60MINS",
      "pnr": "1798061126",
      "pass_codes": [
        "GMAT60MINSABC1400"
      ],
      "passenger_count": 1,
      "passenger_name": "John Doe",
      "passenger_email": "john.doe@example.com",
      "passenger_mobile": "1234567890",
      "passenger_country_code": "+60",
      "booking_total_price": "0.00",
      "currency": "BDT",
      "status": "VOIDED",
      "status_date": "2025-08-06T19:51:11.000000Z",
      "platform_type": "B2B",
      "redeemUrl": "https://fdp.mastercard.com/mynztrip",
      "agent": {
        "company_name": "Agent Malaysia",
        "sl_no": "25080001"
      }
    },
    "pass_codes": [
      "GMAT60MINSABC1400"
    ],
  }
}

Response Fields

FieldTypeDescription
successBooleanIndicates if the request was successful
uniqueTransIdStringTransaction ID used for the query
codeIntegerHTTP status code
messageStringResponse message
data.bookingObjectMain booking information object

Booking Object Fields

FieldTypeDescription
unique_trans_idStringUnique transaction identifier
product_codeStringProduct code (e.g., GMAT60MINS)
pnrStringPassenger Name Record number
pass_codesArrayArray of issued pass codes
passenger_countIntegerNumber of passengers
passenger_nameStringFull name of passenger
passenger_emailStringEmail address
passenger_mobileStringMobile number
passenger_country_codeStringCountry code for mobile
booking_total_priceDecimalTotal booking amount
original_total_priceDecimalOriginal price before any adjustments
total_price_buyingDecimalBuying price (agent cost)
total_price_sellingDecimalSelling price (customer price)
conversion_rateDecimalCurrency conversion rate applied
currencyStringCurrency code
statusStringCurrent booking status
status_dateDateTimeTimestamp of last status change
platform_typeStringPlatform type (B2B, B2C)
agentObjectAgent information

Agent Object Fields

FieldTypeDescription
company_nameStringAgent company name
sl_noStringAgent serial number/ID

Booking Status Values

StatusDescription
ISSUEDPass has been successfully issued and is active
VOIDEDPass has been cancelled and is no longer valid
PENDINGPass issuance is in progress
EXPIREDPass validity period has expired

Important Notes

  • Only bookings belonging to the authenticated agent can be retrieved
  • The api_logs array contains historical API interaction logs (if available)
  • The pass_codes array in the main data object provides quick access to all pass codes
  • Price fields show the complete pricing breakdown including buying and selling prices
  • The status_date indicates when the current status was last updated

Use Cases

This endpoint is useful for:

  • Verifying booking details after issuance
  • Customer service inquiries
  • Reconciliation and reporting
  • Checking current booking status
  • Retrieving pass codes for customer communication

Error Responses

CodeMessageDescription
404Booking not foundThe uniqueTransId doesn't exist or doesn't belong to the agent
401UnauthorizedInvalid or expired authentication token
403ForbiddenAgent doesn't have permission to access this booking

Next Steps

Based on the booking status, you can:

  • Send Cancel Request if status is ISSUED
  • Contact support if there are any discrepancies
  • Use the information for reporting and reconciliation