- Cancel Air Pnr
Cancel the air pnr and issues applicable refunds
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.
Cancellation info override details, like cancellation penalty, waiver code, etc.
Custom field responses for the booking.
Wrapper for post stripe verification info object.
Remarks from the frontend to be added to the PNR during creation.
Ticket numbers to be left open to convert to unused credit.
[ "0161234567890" ]
Per-ticket refund details including refund amount and cancel type.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v2/air/cancel-pnr
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/airapi/v2/air/cancel-pnr
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"
}
}
]
}
}'OK
- CANCELLED: PNR is cancelled.
- AGENT_TASK_CREATED: Agent task is created for the cancellation.
Information about automatic processing that was performed during cancellation
Optional warning message if processing is taking longer than expected
{ "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": { … } } }