Skip to content

Get PNR

Request

This endpoint gets PNR for a given trip ID and PNR ID.

Security
Bearer
Path
tripIdstringrequired

Trip ID

Example:6926658168
pnrIdstringrequired

Pnr Id

Example:6926658168
curl -i -X GET \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/trips/6926658168/pnrs/6926658168 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
versioninteger, (int32)

Current PNR version. This field is used for handling conflicts in case of concurrent updates. This should be sent unmodified in update request.

Example:1
createdViastring(CreatedViaEnum)read-only

Indicates the source of creation of PNR, like SHELL, OBT, etc.

Enum:"OFFLINE""OBT""SHELL""PASSIVE""API"
initialVersionCreatedViastring(CreatedViaEnum)read-only

Indicates the source of creation of PNR, like SHELL, OBT, etc.

Enum:"OFFLINE""OBT""SHELL""PASSIVE""API"
sourceInfoobject(SourceInfo)

Information about the source of booking

invoiceDelayedBookingboolean

True if the billing is delayed

Example:false
pnrTravelersArray of objects, non-empty(PnrTraveler)

List of travelers on this pnr and their information. This is a required field.

costOfGoodsSoldobject(Cost of goods sold)

Payment information about all goods sold. This is a required field for now.

costToCustomerobject(Cost to customer)

Cost of services, charged to customer

transactionsArray of objects(Transaction)read-only
splitPaymentobject(SplitPayment)

Split payment details for claiming reimbursements.

isFinalizedbooleanread-only

Indicates if finalize action has been performed on the pnr.

Example:false
policyInfoobject(PolicyInfo)

Policy related info for this booking

airPnrobject(Air)

Air booking information

hotelPnrobject(HotelPnr)

Hotel booking information

carPnrobject(Car)

Car booking information

railPnrobject(Rail)

Rail booking information

limoPnrobject(LimoInfo)

Limo booking information

miscPnrobject(MiscInfo)

Miscellaneous booking information

additionalMetadataobject

Any addtional metadata associated with the booking

customFieldsV3ResponsesArray of objects(CustomFieldResponsesPerEntity)

List of all the Custom Fields responses associated with this Pnr.

bookingHistoryArray of objects(BookingHistory)read-only

Change Log associated with a PNR/Booking

totalFareobject(Money)read-only

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.

serviceFeesArray of objects(ServiceFee)read-only

The service fees associated with this pnr.

paymentInfoArray of objects(PaymentInfo)read-only

FOP fare breakup for all payments

bookingStatusstring(UserFacingStatus)read-only

User facing status for this booking.

Enum:"UNKNOWN_STATUS""PENDING_STATUS""CONFIRMED_STATUS""ACTIVE_STATUS""COMPLETED_STATUS""CANCELLED_STATUS""REFUNDED_STATUS""VOIDED_STATUS""PROCESSING_STATUS""UNCONFIRMED_STATUS"
Example:"PENDING_STATUS"
contactSupportbooleanread-only

Set to true if there might be an issue in the PNR for which the user should be warned to contact TMC support.

Example:false
travelerPnrVisibilityStatusstring

Represents the PNR visibility status, if marked as HIDDEN should not be displayed to the traveler

Enum:"VISIBLE""HIDDEN"
shellPnrInfoobject(ShellPnrInfo)

Information about shell pnr

pnrCreationDetailsobject(PnrCreationDetails)

Information about pnr creation

approvalInfoArray of objects(ApprovalInfo)

Approval related information for the PNR

cancellationRequestStatusstring(CancellationRequestStatus)

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

Enum:"CANCELLATION_IN_PROGRESS""CANCELLATION_BY_AGENT_REQUESTED"
Example:"CANCELLATION_IN_PROGRESS"
externalInfoobject

PNR related external information

tripIdstring

Spotnana trip ID to which the PNR belongs to

Example:"123456789"
documentsArray of objects(Document)read-only
freshnessInfoobject(FreshnessInfo)read-only

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.

bookingEmailInfoobject

Information passed to the Spotnana email system that processes booking updates.

llfPnrInfoobject(LLFPnrInfo)

Lowest logical fare info at pnr level

pnrIdstring

Spotnana PNR ID

Example:"123456789"
invoiceInfosArray of objects(InvoiceInfo)

Invoice related information for the PNR

invoiceDataArray of objects(BuyerSellerInfo)

Buyer and seller invoice information for this PNR

totalFareAmountobject(FareAmount)

Total fare amount of the PNR comprising components such as base fare and taxes. This field does not include any Service fees.

additionalFareAmountsArray of objects(AdditionalFareAmount)

Additional fare amounts of the PNR defining components like flight pass additional amount, change fee etc.

dkNumberstring

DK number attached to the PNR.

Example:"123456789"
tripUsageMetadataobject(TripUsageMetadata)

Usage metadata associated with the trip entity.

owningPccInfoobject(OwningPCCInfo)

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.

suspendReasonstring(SuspendReason)

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.
Enum:"AIR_PRICE_OPTIMIZATION""EXCHANGE""GDS_EXCHANGE""PRICE_OPTIMIZATION"
Example:"PRICE_OPTIMIZATION"
priceOptimizationMetadataobject(PriceOptimizationMetadata)read-only

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.

statestring

State of the PNR

Enum:"ITINERARY""PNR"
Example:"PNR"
createdAtobject(DateTimeOffset)

PNR creation dateTime.

updatedAtobject(DateTimeOffset)

DateTime when the PNR was last updated.

basicTripInfoobject(BasicTripInfo)

Trip basic info with only trip id, name and description set.

travelersArray of objects, non-empty(Traveler)deprecated
preBookAnswersobject(PreBookAnswers)deprecated

The per booking answers collected from the traveler during checkout.

customFieldsArray of objects(CustomField)deprecated

List of all the Custom Fields associated with this Pnr

savingsFareobject(SavingsFare)deprecated

Total savings present.

Response
{ "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": [ … ] } }