Ancillary Price API Reference (NDC)
POST |
ancillaryprice/offers/buildancillaryoffersfromcatalogofferings Base path: Pre-production https://api.pp.travelport.com/11/air/ Production https://api.travelport.com/11/air/ |
Related Content: Ancillary and EMD Guide, Ancillary Shop API Reference, Ancillary Workflow Diagram
The Ancillary Price request confirms pricing for a selected ancillary. It can be sent either as part of the initial booking workflow, or for an existing reservation. The request uses the same endpoint and payload in each flow. See the Ancillary and EMD Guide for currently supported ancillaries in each flow.
You must first create a new or post-commit workbench and send an Ancillary Shop request. After pricing, add the selected ancillary to the workbench.
Request
Also see Authorization and Common Headers.
Query Parameters
None.
Request Body
Object |
Description |
Required/Optional |
---|---|---|
OfferQueryBuildAncillaryOffersFromCatalogOfferings |
Top level object. |
Required |
BuildAncillaryOffersFromCatalogOfferings |
Top level object. |
Required |
CatalogOfferingsIdentifier |
Includes response transaction identifiers from the ancillary shop response. |
Required |
CatalogOfferingsIdentifier/Identifier |
Sends identifiers from ancillary shop response. |
Required |
|
Send the value in CatalogOfferingsID/CatalogOffering/Identifier/authority from the Ancillary Shop response. |
Required |
|
Send the value in CatalogOfferingsID/CatalogOffering/Identifier/value from the Ancillary Shop response. |
Required |
CatalogOfferingIdentifier |
Sends offer identifier. |
Required |
|
Send value in CatalogOfferingsID/CatalogOffering/id from the Ancillary Shop response. |
Required |
ProductIdentifier |
Sends product identifier. |
Required |
|
Send the value in CatalogOfferingsID/CatalogOffering/ProductOptions/Product/id for the product you want to book from the Ancillary Shop response. |
Required |
TravelerIdentifierRef |
Sends identifier of traveler for whom to price the ancillary. |
Required |
|
Send the value in CatalogOfferingsID/TravelerIdentifierRef/id from the Ancillary Shop response. You can also verify passenger ID details via a Reservation Retrieve. |
Required |
Quantity |
The amount of this ancillary product requested. |
Required |
Response
Object |
Description |
---|---|
OfferListResponse |
Top level object. Returns OfferID, Identifier, and ReferenceList objects. |
OfferID |
Returns product and pricing details for requested offer. Key value pair:
Includes Identifier, Product, Price, and TermsAndConditionsFull objects. |
OfferID/Identifier |
Identifier for the offer. Key value pairs:
OfferID/Identifier/value and /authority must be sent in any subsequent ancillary book requests.
|
Product |
Array. Returns one or more instances of @type ProductAncillary to detail the ancillary product. Key value pair:
Includes Quantity and Ancillary. CatalogOffering/ProductOptions/Product/id must be sent as the product identifier in subsequent ancillary price and/or book requests.
|
Quantity |
The available number of this ancillary product. |
Ancillary |
Details of this ancillary. Includes Description and FlightRef. |
Description |
Supplier-provided description of this ancillary product. Key value pairs:
|
FlightRef |
Internal reference number for the flight on which this ancillary is available. Matches to FlightRef in ReferenceList/ReferenceListFlight. |
Price |
Price details for this ancillary. Ancillary pricing may vary by carrier for whether the price returned is per individual ancillary (e.g., price is for one checked bag when two were requested) or all requested ancillaries (e.g., price is for two checked bags when two were requested).
Includes CurrencyCode, Base, TotalTaxes, TotalPrice objects. |
CurrencyCode |
The currency in which the price is returned. Unless changed in the request, the currency is the default associated with your provisioned PCC from Travelport. Key value pairs:
|
Base |
Base price before taxes. |
TotalTaxes |
Sum of all taxes for the product. |
TotalPrice |
Total price including base and taxes. |
TermsAndConditionsFull |
Returned with @typeTermsAndConditionsFullAncillary. Terms and conditions for this ancillary. Includes TravelerProduct and ApplicationLimit. |
TravelerProduct |
Includes TravelerIdentifierRef. |
TravelerIdentiferRef |
Returns details of the traveler the ancillary is priced for. Key value pairs: id: Internal system-generated traveler id. value: Internal system-generated traveler id. |
ApplicationLimit |
Any restrictions on the number of this ancillary product that can be purchased. Key value pairs:
|
OfferListResponse/Identifier |
Identifier for ancillary price response as a whole. Key value pairs:
CatalogOfferingsAncillaryListResponse/Identifier/value must be sent as the response identifier in subsequent ancillary price and/or book requests.
|
ReferenceList |
Consolidates flight details in ReferenceList/ReferenceListFlight. Includes ReferenceListFlight. See table below. |
The ancillary price response returns ReferenceList/ReferenceListFlight for flight details, Note it does not return the AvailabilitySourceCode or IntermediateStop objects below.
Object | Description |
---|---|
ReferenceListFlight |
Returns an array of Flight objects that match to the flights that make up a product. ReferenceListFlight is a common object in the model. Not all objects in this table may be returned in this specific API. |
Flight |
One instance for one flight. Key value pairs:
For GDS, the Flight id is formatted as the letter ‘s’+ unique numeric value, as in s1. For NDC, the Flight id is formatted as the two letter NDC carrier code + s+ unique numeric value, as in QFs1. Includes Departure, Arrival, AvailabilitySourceCode, and IntermediateStop objects. |
Departure |
Departure details. Key value pairs are the location, date, time, and terminal of departure. |
Arrival |
Arrival details. Key value pairs are the location, date, time, and terminal of arrival. |
Returned to assist in troubleshooting. Returned in Search, Air Availability, Exchange Search, AirPrice, and AirReservation commit responses. Recommended to be sent in the AirPrice Full Payload and Add Offer Full Payload requests. Supported values and definitions for AvailabilitySourceCode are as follows:
|
|
IntermediateStop |
Returned if the flight has a technical stop but does not incur a change in flight number. Returned only in Search and Exchange Search responses. Key value pairs:
|
Example Request
The following ancillary price requests pricing confirmation on offer SQa1 and product SQpa0 for traveler CT1.
{
"OfferQueryBuildAncillaryOffersFromCatalogOfferings": {
"BuildAncillaryOffersFromCatalogOfferings": [
{
"@type": "BuildAncillaryOffersFromCatalogOfferings",
"CatalogOfferingsIdentifier": {
"Identifier": {
"authority": "Travelport",
"value": "653f9c6f-4618-44e5-8f2d-2a23dd6fcc40_PC"
}
},
"CatalogOfferingIdentifier": {
"id": "SQa1"
},
"ProductIdentifier": {
"id": "SQpa0"
},
"Quantity": 1,
"TravelerIdentifierRef": {
"id": "CT1"
}
}
]
}
}
Example Response
The following example response confirms pricing for two paid bags.
{
"OfferListResponse": {
"OfferID": [
{
"@type": "Offer",
"id": "SQa1",
"Identifier": {
"authority": "SQ",
"value": "U1AyRi05NTMxNzAwNTk0NTYxODUwNjY5LTl8U1AyRi05NTMxNzAwNTk0NTYxODUwNjY5LTktMnxBRFR8UEFYMXxTUlYwfFNFRzJ8MXxTUQ=="
},
"Product": [
{
"@type": "ProductAncillary",
"id": "SQpa0",
"Quantity": 1,
"Ancillary": {
"@type": "AncillaryAir",
"Description": [
{
"code": "XBAG",
"value": "ONE KILOGRAM BAGGAGE"
}
],
"FlightRef": [
"SQs1"
]
}
}
],
"Price": {
"@type": "PriceDetail",
"CurrencyCode": {
"value": "SGD"
},
"Base": 15.5,
"TotalTaxes": 0,
"TotalPrice": 15.5,
"PriceBreakdown": [
{
"@type": "PriceBreakdownAncillary",
"quantity": 1,
"Amount": {
"@type": "Amount",
"CurrencyCode": {
"value": "SGD"
},
"Base": 15.5,
"Taxes": {
"@type": "Taxes",
"TotalTaxes": 0
},
"Total": 15.5
}
}
]
},
"TermsAndConditionsFull": [
{
"@type": "TermsAndConditionsFullAncillary",
"ApplicationLimit": {
"start": "1",
"end": "1",
"value": "PassengerSegment"
}
}
]
}
],
"Identifier": {
"authority": "Travelport",
"value": "653f9c6f-4618-44e5-8f2d-2a23dd6fcc40_PC"
},
"ReferenceList": [
{
"@type": "ReferenceListFlight",
"Flight": [
{
"@type": "Flight",
"duration": "PT3H55M",
"carrier": "SQ",
"number": "883",
"id": "SQs1",
"Departure": {
"@type": "Departure",
"location": "HKG",
"date": "2022-06-13",
"time": "14:25:00"
},
"Arrival": {
"@type": "Arrival",
"location": "SIN",
"date": "2022-06-13",
"time": "18:20:00"
}
}
]
}
]
}
}