{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Making an air booking","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"making-an-air-booking","__idx":0},"children":["Making an air booking"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The steps below explain how to create a new air booking for a traveler."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before using the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airSearch"},"children":["get air itineraries"]}," API (Step 1) you must:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["have air travel enabled for your company."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["have active airline suppliers configured for your company."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["have a valid ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["companyId"]},"."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you encounter a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 Internal Server Error"]}," when using the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airSearch"},"children":["get air itineraries"]}," API,"," ","the following could be the possible causes:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Company not configured for air bookings in the environment"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Missing airline content supplier configuration"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflow","__idx":2},"children":["Workflow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All APIs mentioned below are dependent on each other and the steps described"," ","in this section must be executed in the order specified."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Step"},"children":["Step"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Details"},"children":["Details"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airSearch"},"children":["Get air itineraries"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/search-flights"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Search for available flights. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paginationParameters"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airAttributes"},"children":["Get flight attributes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/flight-attributes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retrieve flight attributes such as amenities and fare rules for every flight displayed on a search result.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paginationParameters"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airSelectedItinerary"},"children":["Get selected itinerary"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/selected-itinerary"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["View one selected itinerary and its respective details. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," Itinerary details for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}," provided in the request."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airFlightCheckout"},"children":["Get flight checkout details"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/flight-checkout"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Get checkout related information for a selected itinerary from Step 3. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkoutResponseId"]},", baggage information, ancillaries, other checkout parameters and supported payment options. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["checkoutResponseId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":5},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airSeatMap"},"children":["Get flight seat map"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/seat-map"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["View the seat map for the selected itinerary from Step 3. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["airItineraryId"]}," (an object wrapper containing both ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["searchId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["itineraryId"]}," from Step 1) and traveler information. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["seatMapResponseId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["travelerSeatMaps"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["travelerId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["flightSeatMapIds"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["seatMaps"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["seatMapId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["seatMapResponseId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/tripapi/trips/getcompanytripsummarieslist"},"children":["List trips for a company"]}," (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v3/trips/companies/{companyId}/list"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["During the checkout process, you can use this API to choose a trip name from the list of existing names or create a new trip name in the next step. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paginationRequestParams"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripFilters"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOptions > sortField"]}," to specify start and end dates, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOptions > sortOrder"]}," to determine how to arrange the results. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL path requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["companyId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/tripapi#operation/createTrip"},"children":["Create trip"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/trips"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Trips act as a container to group one or more related PNRs (bookings). You must provide a unique value for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripName"]}," parameter. If you've already picked an existing  trip name in Step 6, you can skip this step. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripName"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airInitiateBooking"},"children":["Initiate booking"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/initiate-booking"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Initiate the booking process for the new trip created in Step 7. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initiateBookingWorkflowIds > checkoutResponseId"]}," from Step 4, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initiateBookingWorkflowIds > seatMapResponseId"]}," from Step 5, traveler details, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingCharges"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingContact"]},". ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initiateBookingResponseId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initiateBookingResponseId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":9},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airRevalidateItinerary"},"children":["Validate itinerary"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/revalidate-itinerary"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["To finalize a reservation, the travelers must indicate their preferred seat, number of checked and carry-on bags, and select whether they want any ancillaries such as travel insurance or priority boarding (applied as additional booking charges). Use this API to validate your itinerary. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]}," from Step 7, traveler details, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingCharges > paymentMethod > selectedPaymentSource > paymentSourceId"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflowIds"]}," containing the below parameters:",{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n\"workflowIds\": {\n  \"checkoutResponseId\": \"<checkoutResponseId from Step 4>\",\n  \"seatMapResponseId\": \"<seatMapResponseId from Step 5>\",\n  \"initiateBookingId\": \"<initiateBookingResponseId from Step 8>\"\n }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"em","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note:"]}," Contact your Spotnana representative to obtain the"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentSourceId"]},". ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingId"]},", fare breakdown, leg prices, and policy details. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":10},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airCreatePnr"},"children":["Create air pnr"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/create-pnr"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create a new air booking (PNR) for your trip. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingId"]}," from Step 9, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initiateBookingId"]}," (i.e., the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["initiateBookingResponseId"]}," from Step 8.) ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourcePnrId"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrStatus"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," generated by this API will be used in the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/air_exchange_workflow"},"children":["exchange"]}," and ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/air_cancellation_workflow"},"children":["cancel"]}," booking workflows."]}]}]}]}]}]},"headings":[{"value":"Making an air booking","id":"making-an-air-booking","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Workflow","id":"workflow","depth":2}],"frontmatter":{"seo":{"title":"Making an air booking"}},"lastModified":"2026-02-25T08:57:52.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/spotnana/air_booking_workflow","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}