Air

Cancel Air Pnr

Cancel the air pnr and issues applicable refunds

post/v2/air/cancel-pnr

Request body

pnrIdstring required

The spotnana assigned unique PNR id of the booking.

optionIdstring required

Cancellation option id chosen by the traveler prior to cancelling the booking. The trip->cancellation-details API returns a bunch of options like whether the traveler wants to keep the ticket as unused or get the refunds with applicable penalties.

Response

OK

sourcePnrIdstring

Source pnr id of the cancellation.

status'CANCELLED' | 'AGENT_TASK_CREATED'
  • CANCELLED: PNR is cancelled.
  • AGENT_TASK_CREATED: Agent task is created for the cancellation.
processingWarningstring

Optional warning message if processing is taking longer than expected

Example response

{
  "sourcePnrId": "ABCDEF",
  "status": "CANCELLED",
  "automaticCancellationInfo": {
    "segmentsCancelled": true,
    "automaticRefundSuccessful": true,
    "refundedTicketNumbers": [
      "1234567890123"
    ],
    "automaticProcessingMessage": "Refunded tickets: 1234567890123"
  },
  "processingWarning": "Cancellation is successful but update is taking longer than expected",
  "paymentVerificationInfo": {
    "stripeVerificationInfo": {
      "stripeCardTokens": {
        "paymentProcessor": "STRIPE",
        "paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3",
        "setupIntentClientSecret": "seti_1IBwEiKXFM6BpWYhfdCGZ7sg_secret_InXJDifWGBcVqekJvhAxidON6vHAvfS",
        "connectedAccountId": "acct_1NT8oyCZnFgI0lFY",
        "publishableKey": "pk_test_51Hx7XyI3bT9GUjvoUkRQooN3"
      }
    }
  }
}