Flight Delay Pass API
Issue Pass

Issue Flight Delay Pass

POST Endpoint: [BaseUrl]/api/v1/flight-delay-pass/issue-pass

Overview

The Issue Pass API creates and issues a flight delay pass for a passenger. This endpoint generates pass codes and booking confirmation details.

Authentication

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

Request Parameters

ParameterTypeRequiredDescription
uniqueTransIdStringYesUnique transaction ID from get-price API
productCodeStringYesProduct code (e.g., GMAT60MINS)
passengerCountIntegerYesNumber of passengers (minimum 1)
passenger_nameStringYesFull name of the passenger
passenger_emailStringYesEmail address of the passenger
passenger_mobileStringYesMobile number of the passenger
passenger_country_codeStringYesCountry code for the mobile number (e.g., +60)

Request Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer token for authentication
Content-TypeStringYesapplication/json
Request
{
  "uniqueTransId": "NZFDP2508061933445232",
  "productCode": "GMAT60MINS",
  "passengerCount": 1,
  "passenger_name": "John Doe",
  "passenger_email": "john.doe@example.com",
  "passenger_mobile": "1234567890",
  "passenger_country_code": "+60"
}

Response

Response
{
  "success": true,
  "uniqueTransId": null,
  "code": 200,
  "message": "Flight delay pass issued successfully",
  "data": {
    "bookingId": 25,
    "uniqueTransId": "NZFDP2510121249",
    "pnr": "1544027937",
    "passCodes": [
      "GMAT60MINSABC1461"
    ],
    "issueCodeRef": "7zcak11bsVknZW3mO8gJKjxDzL3UzCkt8zbMyCnhd1ZcF1Vujd/eVthjtAVojs9Gvw/4HAN51zPBJPMyDNUGeLjtodVyfE8J+2UqNC7FLQQ=",
    "totalPrice": "0.00",
    "currency": "BDT",
    "passengerCount": 1,
    "passengerName": "John Doe",
    "passengerEmail": "john.doe@example.com",
    "passengerMobile": "1234567890",
    "passengerCountryCode": "+60",
    "status": "ISSUED",
    "redeemUrl": "https://fdp.mastercard.com/mynztrip"
  }
}

Response Fields

FieldTypeDescription
successBooleanIndicates if the request was successful
codeIntegerHTTP status code
messageStringResponse message
data.bookingIdIntegerInternal booking ID
data.uniqueTransIdStringTransaction ID for this booking
data.pnrStringPassenger Name Record number
data.passCodesArrayArray of generated pass codes for passengers
data.issueCodeRefStringEncrypted reference code for the issued pass
data.totalPriceDecimalTotal price charged for the pass
data.currencyStringCurrency code
data.passengerCountIntegerNumber of passengers
data.passengerNameStringPassenger full name
data.passengerEmailStringPassenger email
data.passengerMobileStringPassenger mobile number
data.passengerCountryCodeStringCountry code
data.statusStringBooking status (ISSUED, VOIDED, etc.)

Product Codes

Product CodeDescriptionCoverage
GMAT60MINSFlight Delay Pass60 minutes delay coverage

Status Values

StatusDescription
ISSUEDPass has been successfully issued
VOIDEDPass has been cancelled/voided
PENDINGPass issuance is in progress

Important Notes

  • The uniqueTransId from get-price API must be used within its validity period
  • Pass codes are unique identifiers for each passenger's delay pass
  • Store the pnr and passCodes securely as they're needed for customer service
  • The issueCodeRef is an encrypted reference that may be required for support queries
  • Email notifications are automatically sent to the passenger email address

Error Handling

Common error scenarios:

  • Invalid uniqueTransId: The transaction ID has expired or is invalid
  • Invalid product code: The specified product code doesn't exist
  • Validation errors: Missing or invalid passenger information
  • Insufficient balance: Agent account doesn't have sufficient credit

Next Steps

After issuing a pass, you can: