Multi-Provider Requests
These requests are limited to a single NDC method call (AirShopping) as it is the only method that can be concurrently requested from multiple NDC providers.
To perform a Multi-Provider Request (MPR), a valid standard NDC AirShopping request must be sent with the HTTP header:
AG-Providers: *
This header tells the NDC Gateway to send the request to all available NDC providers for the consumer. Alternatively, a list of providers can be specified using comma-separated standard IATA airline designators.
AG-Providers: BA, AA, LH
MPR Responses
MPR responses are handled asynchronously with the following HTTP headers:
Connection: keep-alive
MPR response formats:
There are two modes for MPR responses (applies only to AirShopping searches): Streaming or Standard HTTP.
To enable the streaming mode (recommended for GUI Applications), the following HTTP header is required:
AG-Connection: keep-alive
Additionally, a timeout can be set on the server-side upon client request to define a maximum request lifetime.
AG-Request-Timeout: X (where X is an integer in seconds)
Using this header allows the client to receive all results within the specified time. For example, with a timeout set at 6 seconds, results from airline 1 (returned in 5 seconds) will be received, but not from airline 2 (returned in 10 seconds).
Important note
Please note that streaming mode responses utilize a non-standard JSON notation called JSON Streaming for a streamlined collection of valid JSON objects, rather than a standard JSON format.