Skip to content

Find Pnr details like BookingId and TripId

Request

This API gets Pnr details for a given Source Pnr/ Ticket Number/ Vendor Confirmation.

Security
Bearer
Query
searchTextstringrequired

The Source Pnr or Ticket Number or Vendor Confirmation to be searched

Example:searchText=MDIB5C
inputTypestringrequired

The type of Search text,i.e, SOURCE_PNR or TICKET_NUMBER or VENDOR_CONFIRMATION

Enum:"SOURCE_PNR""TICKET_NUMBER""VENDOR_CONFIRMATION"
Example:inputType=SOURCE_PNR
curl -i -X GET \
  'https://api-ext-sboxmeta.partners.spotnana.com/v2/pnrs/search?searchText=MDIB5C&inputType=SOURCE_PNR' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
pnrIdstringrequired

Spotnana Booking Id mapped with Source PNR or Ticket Number or Vendor Confirmation

Example:"1234567890"
tripIdstringrequired

Trip Id associated with the booking

Example:"1234567890"
Response
{ "pnrId": "1234567890", "tripId": "1234567890" }