This endpoint gets PNR for a given trip ID and PNR ID.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/trips/{tripId}/pnrs/{pnrId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/tripapi/v3/trips/{tripId}/pnrs/{pnrId}
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v3/trips/6926658168/pnrs/6926658168 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
Current PNR version. This field is used for handling conflicts in case of concurrent updates. This should be sent unmodified in update request.
Indicates the source of creation of PNR, like SHELL, OBT, etc.
Indicates the source of creation of PNR, like SHELL, OBT, etc.
List of travelers on this pnr and their information. This is a required field.
Payment information about all goods sold. This is a required field for now.
List of all the Custom Fields responses associated with this Pnr.
The total fare of the PNR inclusive of various components, for example: Flights, Seats, Service fee for an Air Pnr; Hotel rooms, Hotel fee, Service for a Hotel PNR. Service fee is included only when show trip fee to traveler is enabled in service fee settings.
User facing status for this booking.
Set to true if there might be an issue in the PNR for which the user should be warned to contact TMC support.
Represents the PNR visibility status, if marked as HIDDEN should not be displayed to the traveler
Status of in progress cancellation request CANCELLATION_IN_PROGRESS - Cancellation request is in progress via OBT CANCELLATION_BY_AGENT_REQUESTED - Cancellation request is in progress via agent
Information about the freshness of the data set in this PNR object. This field is only set when the PNR returned is not the latest PNR available.
Information passed to the Spotnana email system that processes booking updates.
Total fare amount of the PNR comprising components such as base fare and taxes. This field does not include any Service fees.
Additional fare amounts of the PNR defining components like flight pass additional amount, change fee etc.
The agency PCC (pseudo city code) office that owns this booking. Determines which agency desk services it and which GDS queue agent servicing is routed to. Populated on GDS-sourced PNRs.
Reason for suspending the PNR. Determines which finalizeIntent variant is required when finalizing.
- PRICE_OPTIMIZATION: Unified price optimization reshop (air or hotel). Finalize with priceOptimization (PriceOptimizationMetadata).
- EXCHANGE: Ticket exchange initiated by agent. Finalize with manualVerificationIntent.
- GDS_EXCHANGE: GDS-driven ticket exchange. Finalize with manualVerificationIntent.
- AIR_PRICE_OPTIMIZATION: Deprecated. Legacy air-only reshop. Use PRICE_OPTIMIZATION instead. Finalize with airPriceOptimizationMetadata.
Result of the latest price optimization (reshop) finalize for this PNR, including net savings. Present for air and hotel PNRs that went through price optimization.
The per booking answers collected from the traveler during checkout.
List of all the Custom Fields associated with this Pnr
{ "version": 1, "createdVia": "OFFLINE", "initialVersionCreatedVia": "OFFLINE", "sourceInfo": { "sourcePnrId": "AEDAVF", "bookingSource": "United.com", "thirdParty": "United.com", "bookingDateTime": { … }, "posDescriptor": "LA5K", "iataNumber": "426666" }, "invoiceDelayedBooking": false, "travelers": [ { … } ], "pnrTravelers": [ { … } ], "costOfGoodsSold": { "payments": [ … ] }, "costToCustomer": { "payments": [ … ] }, "transactions": [ { … } ], "splitPayment": { "inPolicyAmount": { … }, "isAmountReimbursable": true, "personalFopChargeableAmount": { … } }, "isFinalized": false, "policyInfo": { "outOfPolicy": false, "approverName": { … }, "reasonCode": "TIMING_OR_SCHEDULING", "reason": "Business class cheaper than economy", "appliedPolicyInfo": { … }, "isPersonalUpgrade": false }, "airPnr": { "legs": [ … ], "airPnrRemarks": [ … ], "travelerInfos": [ … ], "automatedCancellationInfo": { … }, "automatedExchangeInfo": { … }, "bookingMetadata": { … }, "otherServiceInfos": [ … ], "holdDeadline": { … }, "airPriceOptimizationMetadata": { … }, "disruptedFlightDetails": [ … ], "voidPolicy": { … }, "utas": [ … ], "showRawFareRules": false }, "hotelPnr": { "checkInDateTime": { … }, "checkOutDateTime": { … }, "hotelInfo": { … }, "numberOfRooms": 1, "payment": { … }, "pnrStatus": "CONFIRMED", "room": { … }, "vendorConfirmationNumber": "2108528068", "travelerInfos": [ … ], "sortingPriority": 0, "vendorReferenceId": "AWKHGS", "vendorCancellationId": "AWKHGS", "preferredType": [ … ], "preferences": [ … ], "occupancy": [ … ], "sourceStatus": "string", "rebookReference": { … }, "hotelSpecialRequests": { … }, "ancillaries": [ … ], "bookingMetadata": { … } }, "carPnr": { "cancellationPolicy": { … }, "carInfo": { … }, "dropOffDateTime": { … }, "paymentType": "PREPAID", "pickupDateTime": { … }, "pnrStatus": "CONFIRMED", "rate": { … }, "vendorConfirmationNumber": "2108528068", "sortingPriority": 0, "corporateId": "8371", "rateType": "PUBLISHED", "sourceStatus": "string", "vendorCancellationId": "2108528068", "originalCarSearchInfo": { … }, "rateMetadata": { … }, "rebookReference": { … }, "dailyRates": [ … ], "carAverageRate": { … }, "promotionalOffers": { … }, "arrivalFlightInfo": { … }, "specialEquipmentTypes": [ … ] }, "railPnr": { "inwardJourney": { … }, "legInfos": [ … ], "outwardJourney": { … }, "rate": { … }, "rateMetadata": { … }, "passengerInfos": [ … ], "paymentMode": "PRE_PAID", "sections": [ … ], "tickets": [ … ], "ticketDetails": [ … ], "type": "RETURN", "vendorConfirmationNumber": "ABQTEJ", "itineraryId": "abcde", "ancillaries": [ … ], "termsAndConditions": { … }, "exchangeInfo": { … }, "previousItinerary": { … }, "relatedRateInfos": [ … ], "relatedRefundRateInfos": [ … ] }, "limoPnr": { "cancellationPolicy": { … }, "driver": { … }, "legs": [ … ], "limoDetails": { … }, "bookingNotes": "string", "duration": { … }, "notesToVendor": "string", "paymentType": "PREPAID", "pnrStatus": "CONFIRMED", "rate": { … }, "vendorConfirmationNumber": "2108528068", "sourceStatus": "string" }, "miscPnr": { "description": "Any text info", "endDateTime": { … }, "pnrStatus": "CONFIRMED", "rate": { … }, "startDateTime": { … }, "vendorConfirmationNumber": "2108528068", "sortingPriority": 10, "sourceStatus": "string" }, "additionalMetadata": { "airportInfo": [ … ], "airlineInfo": [ … ], "bta": "YMT" }, "preBookAnswers": { "answers": [ … ], "preBookQuestionResponseId": "string" }, "customFields": [ { … } ], "customFieldsV3Responses": [ { … } ], "bookingHistory": [ { … } ], "totalFare": { "amount": 510, "currencyCode": "GBP", "convertedAmount": 715.42, "convertedCurrency": "USD", "otherCoinage": [ … ] }, "serviceFees": [ { … } ], "paymentInfo": [ { … } ], "bookingStatus": "PENDING_STATUS", "contactSupport": false, "travelerPnrVisibilityStatus": "VISIBLE", "shellPnrInfo": { "shellPnrCreateReasonType": "CONTENT_NOT_AVAILABLE", "createShellPnrReason": "Flight Missing", "pnrType": "AIR" }, "pnrCreationDetails": { "requestedByDetails": { … } }, "approvalInfo": [ { … } ], "cancellationRequestStatus": "CANCELLATION_IN_PROGRESS", "externalInfo": { "externalPnrId": "A2345", "externalPnrVersion": 1, "externalUrlMetadata": "exchange=a,cancel=b" }, "tripId": "123456789", "documents": [ { … } ], "freshnessInfo": { "latestVersionDateTime": { … }, "returnedVersionDateTime": { … } }, "bookingEmailInfo": { "disableEmail": true }, "llfPnrInfo": { "totalFare": { … } }, "pnrId": "123456789", "invoiceInfos": [ { … } ], "invoiceData": [ { … } ], "totalFareAmount": { "base": { … }, "tax": { … }, "taxBreakdown": [ … ] }, "additionalFareAmounts": [ { … } ], "dkNumber": "123456789", "savingsFare": { "fareAmount": { … }, "isTaxIncluded": false }, "tripUsageMetadata": { "tripUsageType": "STANDARD", "eventMetadata": { … } }, "owningPccInfo": { "zoneId": "America/Chicago" }, "suspendReason": "PRICE_OPTIMIZATION", "priceOptimizationMetadata": { "oldPnrId": "8196487818", "newPnrId": "8196487818", "netSavedAmount": { … }, "result": { … }, "travelType": { … } }, "state": "PNR", "createdAt": { "iso8601": "2017-07-21T17:32Z" }, "updatedAt": { "iso8601": "2017-07-21T17:32Z" }, "basicTripInfo": { "tripId": "6926658168", "tripName": "JFK SFO Trip", "tripDescription": "JFK SFO Business Trip", "applicationId": "97ab27fa-30e2-43e3-92a3-160e80f4c0d5", "startDate": { … }, "endDate": { … }, "userId": { … }, "registrarUserId": { … }, "tripMetadata": { … }, "tripDisabledInfo": { … }, "stealthType": "STEALTH_TYPE_1", "stealthMode": { … }, "tripLocations": [ … ], "tripHeaderImages": [ … ] } }