Skip to content

Cancel Air Pnr

Request

Cancel the air pnr and issues applicable refunds

Security
Bearer
Bodyapplication/jsonrequired
pnrIdstringrequired

The spotnana assigned unique PNR id of the booking.

Example:"1234567819"
optionIdstringrequired

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.

Example:"OPTION123"
cancellationOverrideobject(CancellationOverride)

Cancellation info override details, like cancellation penalty, waiver code, etc.

customFieldV3ResponsesArray of objects(CustomFieldV3Response)

Custom field responses for the booking.

postPaymentVerificationInfoPostStripeVerificationInfoWrapper (object) or PostUrlBasedVerificationInfoWrapper (object) or AmadeusCheckoutVerificationInfoWrapper (object) or ThreeDSecure2PostVerificationInfoWrapper (object) or RazorpayPostVerificationInfoWrapper (object)(PostPaymentVerificationInfo)
One of:

Wrapper for post stripe verification info object.

bookingPaymentDetailsobject(BookingPaymentDetails)

Payment details used for booking.

manualRemarksArray of any(ThirdPartyPnrRemark)

Remarks from the frontend to be added to the PNR during creation.

unusedCreditTicketNumbersArray of strings

Ticket numbers to be left open to convert to unused credit.

Example:
[ "0161234567890" ]
refundDetailsArray of objects(AirCancelRefundDetails)

Per-ticket refund details including refund amount and cancel type.

waiveOffInfoobject(WaiveOffInfo)

Waive off info for TMC fee during cancellation.

curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/air/cancel-pnr \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "pnrId": "1234567819",
    "optionId": "OPTION123",
    "cancellationOverride": {
      "waiverCode": "WAV123",
      "tourCode": "TRAC345",
      "newCancellationPenalty": {
        "amount": 510,
        "currencyCode": "GBP",
        "convertedAmount": 715.42,
        "convertedCurrency": "USD",
        "otherCoinage": [
          {
            "coinageCode": "BREX_POINTS",
            "amount": 1000,
            "conversionRate": 0.01,
            "preferredCurrencyConversionRate": 0.01,
            "otherCoinageMetadata": {
              "metadataType": "FlightPassPaymentMetadata",
              "flightPassMetadata": {
                "flightPassNumber": "FP123456789",
                "flightPassAmounts": {
                  "taxBreakdown": []
                }
              }
            }
          }
        ]
      }
    },
    "customFieldV3Responses": [
      {
        "fieldId": "84922011-b03d-4966-bc95-c5b49bc2e342",
        "fieldName": "string",
        "armId": "0fd508db-63ff-4444-bfb1-b89c43061433",
        "includeLocations": [
          "APPROVAL_EMAILS"
        ],
        "selectedOptions": [
          {
            "name": "string",
            "translatedName": "string",
            "description": "string",
            "translatedDescription": "string",
            "additionalUserInput": "string",
            "additionalInfos": [
              "string"
            ],
            "additionalInfoConfigs": [
              {
                "type": "VARIABLE",
                "name": "LLF"
              }
            ],
            "optionId": "dee15a0e-f1fe-4cd8-88ac-c090810707f8"
          }
        ]
      }
    ],
    "postPaymentVerificationInfo": {
      "paymentKey": "string",
      "postStripeVerificationInfo": {
        "paymentMethodId": "pm_1HzKDPI3bT9GUjvoUkRQooN3"
      }
    },
    "bookingPaymentDetails": {
      "bookingTravelerPaymentDetails": [
        {
          "selectedFormOfPayments": [
            {
              "paymentItems": [
                {
                  "fareComponent": []
                }
              ],
              "selectedPaymentSources": [
                {}
              ]
            }
          ]
        }
      ]
    },
    "manualRemarks": [
      {
        "sabre": {
          "type": "GENERAL",
          "text": "PREF ALLIANCES 1-ONE WORLD/AA",
          "legIndex": 1,
          "flightIndex": 0
        }
      }
    ],
    "unusedCreditTicketNumbers": [
      "0161234567890"
    ],
    "refundDetails": [
      {
        "ticketNumber": "0161234567890",
        "refundAmount": {
          "base": {
            "amount": 510,
            "currencyCode": "GBP",
            "convertedAmount": 715.42,
            "convertedCurrency": "USD",
            "otherCoinage": [
              {
                "coinageCode": "BREX_POINTS",
                "amount": 1000,
                "conversionRate": 0.01,
                "preferredCurrencyConversionRate": 0.01,
                "otherCoinageMetadata": {}
              }
            ]
          },
          "tax": {
            "amount": 510,
            "currencyCode": "GBP",
            "convertedAmount": 715.42,
            "convertedCurrency": "USD",
            "otherCoinage": [
              {
                "coinageCode": "BREX_POINTS",
                "amount": 1000,
                "conversionRate": 0.01,
                "preferredCurrencyConversionRate": 0.01,
                "otherCoinageMetadata": {}
              }
            ]
          },
          "taxBreakdown": [
            {
              "amount": {
                "amount": 510,
                "currencyCode": "GBP",
                "convertedAmount": 715.42,
                "convertedCurrency": "USD",
                "otherCoinage": [
                  {}
                ]
              },
              "taxCode": "VAT",
              "percentage": 9,
              "description": "AIR TRAVELLERS SECURITY CHARGE"
            }
          ]
        },
        "cancelType": "REFUND",
        "refundTaxBreakdown": [
          {
            "amount": {
              "amount": 510,
              "currencyCode": "GBP",
              "convertedAmount": 715.42,
              "convertedCurrency": "USD",
              "otherCoinage": [
                {}
              ]
            },
            "taxCode": "VAT",
            "percentage": 9,
            "description": "AIR TRAVELLERS SECURITY CHARGE"
          }
        ]
      }
    ],
    "waiveOffInfo": {
      "waiveOffInfoPerModules": [
        {
          "moduleId": "BOOKING",
          "waiveOffFeeReason": {
            "reasonCode": "WA05",
            "reason": "Customer goodwill"
          }
        }
      ]
    }
  }'

Responses

OK

Bodyapplication/json
sourcePnrIdstring

Source pnr id of the cancellation.

Example:"ABCDEF"
statusstring(CancellationStatus)
  • CANCELLED: PNR is cancelled.
  • AGENT_TASK_CREATED: Agent task is created for the cancellation.
Enum:"CANCELLED""AGENT_TASK_CREATED"
Example:"CANCELLED"
automaticCancellationInfoobject(AutomaticCancellationInfo)

Information about automatic processing that was performed during cancellation

processingWarningstring

Optional warning message if processing is taking longer than expected

Example:"Cancellation is successful but update is taking longer than expected"
paymentVerificationInfoStripeVerificationInfoWrapper (object) or UrlVerificationInfoWrapper (object) or ThreeDSecure2VerificationInfoWrapper (object) or RazorpayVerificationInfoWrapper (object)(PaymentVerificationInfo)
One of:

Wrapper for stripe verification Info.

Response
{ "sourcePnrId": "ABCDEF", "status": "CANCELLED", "automaticCancellationInfo": { "segmentsCancelled": true, "automaticRefundSuccessful": true, "refundedTicketNumbers": [ … ], "automaticProcessingMessage": "Refunded tickets: 1234567890123" }, "processingWarning": "Cancellation is successful but update is taking longer than expected", "paymentVerificationInfo": { "gatewayIdentifier": { … }, "paymentKey": "string", "stripeVerificationInfo": { … } } }