Document History API Reference

POST

documents/history

Base path:

Use this base path if you have not yet received or not migrated to the new credentials from Travelport:

Pre-production https://api.pp.travelport.com/11/

Production https://api.travelport.com/11/

Use this base path after you have migrated to the new credentials from Travelport (using .net instead of .com):

Pre-production https://api.pp.travelport.net/11/

Production https://api.travelport.net/11/

The base path for this API varies from that for other JSON Air APIs and does not include air at the end.

Related Content: Air Booking Guide

Document History retrieves the history of up to six documents associated with a record locator code. This request can retrieve this information even after the booking and tickets are purged from the airline's database. You can request documents by any of the following:

  • record locator only: Returns up to six documents associated with that locator

  • document type only: Returns up to six documents of the specified type/s

  • document number: Returns history of the specified document/s only, up to six

The response can return the following types of documents as applicable and as requested:

The JSON Air APIs provide the following APIs to retrieve bookings and tickets:

  • To retrieve all booking details, use Reservation Retrieve. Returns all booking, payment, and ticketing information currently on a booking,

  • To retrieve a list of all ticket numbers on a reservation, use Ticket List.

  • To retrieve details for all tickets associated with a record locator (GDS only), or for a single ticket for NDC, use Ticket Retrieve.

  • To return a list of documents on a booking, including tickets, invoices, MCOs, and EMDs, use Document List.

  • To return histories of up to six documents on with a booking, including tickets, invoices, MCOs, and EMDs, use Document History.

Request

As part of the request requirements, also see Authentication and Common Air Headers.

Query Parameters

None.

Request Body

Response

The objects returned in documentHistories vary according to the type of document returned. See the developer toolkits for the Swagger files for full specifications.

Example Request

For additional examples, download the developer toolkits and see Using Postman and Developer Toolkits.

The request payload requires the locator code. Sending one ore more document numbers associated with that locator code is optional.

Example Response

For additional examples, download the developer toolkits and see Using Postman and Developer Toolkits.

In response to a request that sends a record locator and a specific ticket number, the following response returns one instance of documentHistories, for the requested document.

In response to a request that sends only a record locator, the following response returns tickets and an invoice associated with that locator.