Flight Offer Market Affiliates
Flight Offer Market Affiliates
Flight Offer Market Affiliate API returns the pricing details for 1 Adult for the requested route, cabin and departure date if seats are available for all the passengers requested.
The latest version number of Flight Offer Market Affiliate resource is v1.
You can try this live service using I/O docs if you Register or Sign in with your Mashery ID.
Version Information
The most recent version of the Flight Offer Market Affiliates API is version 1. Previous versions are shown below.
Version | Status | End-of-life date |
---|---|---|
v1.0 | Current | N/A |
API Endpoints
Flight Offer Market Affiliate has a REST API endpoint. Click here for more information on using British Airways Rest APIs.
The endpoints available are:
Endpoint | URL |
---|---|
Live | https://api.ba.com/rest-v1/v1/flightOfferMktAffiliates |
Test | N/A |
API Methods
Method | URL Resource | Description |
---|---|---|
GET | flightOfferMktAffiliates;departureDateTimeOutbound={OutboundDepartureDate}; locationCodeOriginOutbound={OutboundOriginLocationCode}; locationCodeDestinationOutbound={OutboundDestinationLocationCode}; cabin={Cabin};cabinSubtype={CabinSubType}; departureDateTimeInbound={InboundDepartureDate};locationCodeOriginInbound={InboundOriginLocationCode};locationCodeDestinationInbound={InboundDestinationLocationCode};ADT={NumberOfAdults}; CHD={NumberOfChildren};INF={NumberOfInfants} | Returns priced availability for 1 Adult for the requested route, cabin and departure date if seats are available for all the passengers requested. |
HTTP Headers
Header Name | Description | Mandatory? | In/Outbound | Example |
---|---|---|---|---|
client-key | Your unique key used to authorise access to the API. | Yes | Inbound | n/a |
Search Parameters
The various search parameters are described below:
Name | Description | Format | Default | Example | Allowed values |
---|---|---|---|---|---|
departureDateTimeOutbound | A valid date and time | YYYY-MM-DDTHH:MM:SSZ | N/A | 2014-01-10T12:00:00Z | A date >= today and <= today plus 365 days |
locationCodeOriginOutbound | A city or airport | IATA 3 character airport or city code | N/A | LHR | Only locations which BA flies to / from |
locationCodeDestinationOutbound | A city or airport | IATA 3 character airport or city code | N/A | MIA | Only locations which BA flies to / from |
cabin | Name of class | Alpha characters | N/A | Economy | Economy, Business or First class |
cabinSubType | Cabin sub type for travel | Alpha characters | N/A | Premium | Premium (only for Economy cabin) |
departureDateTimeInbound | Departure Date of the inbound flight | YYYY-MM-DDTHH:MM:SSZ | N/A | 2014-01-10T12:00:00Z | A date >= today and <= today plus 365 days |
locationCodeOriginInbound | Origin location code of inbound journey | IATA 3 character airport or city code | N/A | MIA | Only locations which BA flies to / from |
locationCodeDestinationInbound | Destination location code of inbound journey | IATA 3 character airport or city code | N/A | LHR | Only locations which BA flies to / from |
ADT | Number of adult passengers | Numbers | N/A | 1 | ADT + CHD (No. of seats required) <= 9 |
CHD | Number of child passengers | Numbers | N/A | 1 | ADT + CHD (No. of seats required) <= 9 |
INF | Number of infant passengers | Numbers | N/A | 1 | ADT + CHD (No. of seats required) <= 9 |
cabinSubType, departureDateTimeInbound, locationCodeOriginInbound and locationCodeDestinationInbound are optional.
- At least one of ADT, CHD or INF should be more than Zero.
- ADT + CHD should be <= 9
Search parameters may be submitted in any order and are case insensitive.
Supported Status Codes
You can view the standard status codes returned by our APIs here.
Docs Navigation
- Docs
- Avios Documentation
- Getting started with our API
- Aggregator / Service Providor
- Seller Direct Connect
- Seller using Aggregator / Service Provider
- AirShopping
- FlightPrice/OfferPrice
- BaggageList / ServiceList
- SeatAvailability
- OrderCreate
- AirDocIssue
- OrderRetrieve
- OrderChange
- ItinReshop
- OrderCancel
- OrderList
- OrderView RS
- Countries, Currencies and FOPs Supported
- Passenger Types, Special Service Request and Special Discounts
- API Plans Landing Page