Skip to content

Latest commit

 

History

History
 
 

Booking-Management

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sabre Booking Management API Postman files

The Booking Management API (integral part of Sabre's Business Services) facilitates working with Sabre reservations (bookings) by providing a normalized set of services for the most common travel related use-cases.

Current Release

The services available in this API are listed below:

Service Description Endpoint Type
Get Booking Normalized view of the Sabre Booking /trip/orders/getBooking RPC/JSON
Create Booking Create Booking provides a single, unified service to create an air booking for different content sources (NDC, Traditional, LCC). /trip/orders/createBooking RPC/JSON
Modify Booking Modify Booking provides a single, unified service to modify non-itinerary content of a booking. Current implementation supports modification of CSL hotel bookings, PNR elements, NDC order elements, group bookings etc. In the future, we are planning to enhance the API with such features as: addition of ancillaries (seats/baggage) for existing booking, and more! /trip/orders/modifyBooking RPC/JSON
Cancel Booking Normalized cancel of Sabre Products within a Booking. Also, lets you process a refund/void offer for NDC orders /trip/orders/cancelBooking RPC/JSON
Check Flight Tickets Check Flight Tickets provides a single, unified service to verify exchangeability, voidability and refundablity for a list of electronic documents (ATPCO). The endpoint also lets you check if the NDC order may be voided or refunded. /trip/orders/checkFlightTickets RPC/JSON
Void Flight Tickets Void Flight Tickets provides a single, unified service to void a list of electronic documents (ATPCO). This includes electronic tickets as well as electronic miscellaneous documents (EMD). /trip/orders/voidFlightTickets RPC/JSON
Refund Flight Tickets Refund Flight Tickets provides a single, unified service to refund a list of electronic documents (ATPCO). The service allows to specify refund qualifiers. This is currently limited electronic tickets. /trip/orders/refundFlightTickets RPC/JSON

This Postman collection was created to showcase Sabre APIs and provide developers the ability to test them freely.

Note: Sabre APIs Test credentials are required to successfully test these APIs, if you are an existing Sabre APIs customer and do not have your CERT credentials, please contact your Sabre account manager.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Things you need to install:

You'll also need your Sabre APIs CERT-environment credentials

Installing

Here are one-time steps for getting your test environment set up:

  • Run the Postman app on your local development machine
  • Import the environment file into Postman using the File -> Import option
  • Import the latest collection file (see below) into Postman using the File -> Import option
Collection version Comments
2023.12 Version incorporates:
- New workflow scenario for NDC order creation for multiple traveler types. Also, there are additional examples related to retention line (OTH segment) processing (createBooking, cancelBooking).
2023.10 Version incorporates:
- New workflow scenarios focused on modifying order elements via modifyBooking.
2023.08 Version incorporates:
- New workflow scenarios focused on checking ticket rules and refundability/exchangeability.
2023.04 Version incorporates:
- New workflow scenarios focused on NDC content.
2023.03 Version incorporates:
- a number of minor corrections for various scenarios.
2022.11 Version incorporates:
- a number of minor corrections for various scenarios.
2022.10 Version incorporates:
- modifyBooking service examples for ATPCO modifications. Each use case scenario is presented as a workflow. We hope that this would simplify tests and integration. On top of that, we added data preparation scenarios for createBooking service, which may help you build up flight/hotel/car flow
2022.06 Version incorporates:
- new modifyBooking service examples for changing CSL hotel bookings. Each use case scenario is presented as a workflow. We hope that this should simplify tests and integration.
2021.12 Version incorporates:
- new CreateBooking examples for booking vehicle content,
- an extra CreateBooking example for CSL hotel + strong customer authentication,
- 'Workflows' folder has been updated and revised (added new vehicle workflow, corrected wrong REST endpoints, updated various variables).
2021.09 Version incorporates:
- CreateBooking samples for booking ancillaries
2021.06 Version incorporates:
- CreateBooking samples for booking hotel content
2021.04 Version incorporates:
- CreateBooking samples for sending other service information (OSI)
- CreateBooking sample using a profile filtered by the ID
- CheckFlightTickets request by confirmationId. This allows you to check all ATPCO tickets of a reservation and check the refund or void option of a NDC Order
- CancelBooking samples for voids or refunds for NDC orders
2021.02 Version incorporates:
- CreateBooking RPC/JSON service to book air content (NDC, Traditional, LCC).
- Check Flight Tickets samples
- Void Flight Tickets samples
- Refund Flight Tickets samples
- New e2e workflows
2020.08 Version incorporates:
- Cancel Flight Tickets samples (RPC/JSON)
- Additional Cancel Booking samples
2020.05 Version incorporates:
- Patch fix to ensure compatibility with Postman v7.25.0 as latest version caused a problem in the scripting logic
2020.04 Launch version for this API, which contains:
- Get Booking samples (RPC/JSON)
- Get Booking samples (GraphQL)
- Cancel Booking samples (RPC/JSON)

Use Your Credentials

The environment file you imported has a list of key/value pairs that you need to update with your SOAP API credentials. The following variables have been marked out with dummy values:

  • username - also known as EPR (employee profile record)
  • password - your Sabre provisioned password
  • pcc - also known as pseudo city code (your agency's unique identifier)

Update the dummy values with your official credentials. To do that follow these steps:

  • Click the gear icon to go to the manage environments pop-up dialog box.
  • Click on the name of your imported environment file to see a list of all key/value pairs.
  • Enter your credentials, and press the "Update" button.

environment variables

Running the Tests

  1. Authenticate. In the Booking Management API collection you'll find a folder named Authentication and an item called REST Authorize. Select it. Click the Send button. Look for a 200 Success result. If it failed review your environment credentials.
  2. Both the GetBooking and CancelBooking services require a confirmation id (PNR locator) in order to properly function, make sure you have one available in order to test. Examples are available in the individual folders: Get Booking and Cancel Booking. Simply open one of these folders, select an example to test, click the Send button, and look for a 200 Success result.

For more information regarding our Booking Management API offering please read through its documentation.

Running the Tests using the Collection Runner.

The Collection Runner allows you to run sets of requests in a specified sequence. The Collection Runner will log your request test results, and your scripts can pass data between requests as well as alter the request workflow. You can use the Runner for the Deep Dive into E2E NDC Reservation Management with the Booking Management API collection.

  1. Click on the root folder of the project.
  2. Click on “run” icon.
  3. Choose desired requests from the run order list.
  4. Click on the blue “run” button in order to start execution.

1 2

License

Copyright (c) 2023 Sabre Corp Licensed under the MIT license.

Disclaimer of Warranty and Limitation of Liability

This software and any compiled programs created using this software are furnished “as is” without warranty of any kind, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. No oral or written information or advice given by Sabre, its agents or employees shall create a warranty or in any way increase the scope of this warranty, and you may not rely on any such information or advice. Sabre does not warrant, guarantee, or make any representations regarding the use, or the results of the use, of this software, compiled programs created using this software, or written materials in terms of correctness, accuracy, reliability, currentness, or otherwise. The entire risk as to the results and performance of this software and any compiled applications created using this software is assumed by you. Neither Sabre nor anyone else who has been involved in the creation, production or delivery of this software shall be liable for any direct, indirect, consequential, or incidental damages (including damages for loss of business profits, business interruption, loss of business information, and the like) arising out of the use of or inability to use such product even if Sabre has been advised of the possibility of such damages.