Flight Delay Pass API
Cancel Request

Send Cancel Request

POST Endpoint: [BaseUrl]/api/v1/flight-delay-pass/send-cancel-request

Overview

The Send Cancel Request API allows agents to request cancellation of an issued flight delay pass. This endpoint initiates the cancellation process for a specific booking.

Authentication

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

Request Parameters

ParameterTypeRequiredDescription
uniqueTransIdStringYesUnique transaction ID of the booking to cancel

Request Headers

HeaderTypeRequiredDescription
AuthorizationStringYesBearer token for authentication
Content-TypeStringYesapplication/json
Request
{
  "uniqueTransId": "NZFDP2508061933445232"
}

Response

Success Response
{
  "success": true,
  "uniqueTransId": "NZFDP2508061933445232",
  "code": 200,
  "message": "Cancellation request submitted successfully",
  "data": {
    "status": "VOID_REQUESTED",
    "requestDate": "2025-10-12T14:30:00.000000Z",
    "uniqueTransId": "NZFDP2508061933445232"
  }
}

Response Fields

FieldTypeDescription
successBooleanIndicates if the request was successful
uniqueTransIdStringTransaction ID of the booking
codeIntegerHTTP status code
messageStringResponse message
data.statusStringUpdated booking status
data.requestDateDateTimeTimestamp when cancellation was requested
data.uniqueTransIdStringConfirmation of the transaction ID

Cancellation Status Flow

StatusDescription
ISSUEDInitial status - Pass is active
VOID_REQUESTEDCancellation has been requested
VOIDEDPass has been successfully cancelled
VOID_REJECTEDCancellation request was rejected

Important Notes

  • Only passes with status ISSUED can be cancelled
  • Cancellation is subject to the terms and conditions of the delay pass product
  • Refund processing may take time depending on payment method and policies
  • Once voided, a pass cannot be reactivated
  • The agent will be notified of the final cancellation status via email or system notification

Cancellation Policy

⚠️ Important:
  • Cancellation requests must be made before the flight departure time
  • Some products may have non-refundable or partially refundable conditions
  • Cancellation fees may apply based on the product terms
  • Check the specific product's cancellation policy before requesting cancellation

Error Responses

CodeMessageDescription
400Invalid booking statusThe booking is not in a cancellable state
404Booking not foundThe uniqueTransId doesn't exist or doesn't belong to the agent
401UnauthorizedInvalid or expired authentication token
422Validation errorMissing or invalid uniqueTransId
409ConflictA cancellation request already exists for this booking

Example Error Response

Error Response
{
  "success": false,
  "uniqueTransId": "NZFDP2508061933445232",
  "code": 400,
  "message": "Cancellation not allowed for this booking",
  "errors": {
    "status": [
      "Booking is already in VOIDED status"
    ]
  }
}

Verification

After submitting a cancellation request, you can verify the status using the Booking Details endpoint.

Best Practices

  1. Check Status First: Always retrieve booking details to verify the current status before attempting cancellation
  2. Handle Async Processing: Cancellation may not be instant; the status might change to VOID_REQUESTED initially
  3. Monitor Status Changes: Implement webhook or polling to track when the status changes to VOIDED
  4. Customer Communication: Inform customers about the cancellation process and expected timelines
  5. Record Keeping: Store the cancellation request timestamp and response for audit purposes

Related Endpoints