Introduction
The Farel API is organized around REST. Our API has predictable resource-oriented URLs and uses standard HTTP response codes and API key based authentication.
Authorization
Use API keys to authenticate API requests.
Farel authenticates your API requests using your account’s API key. Farel raises an invalid request error if you don’t include a key, and an authentication error if the key is incorrect or outdated.
You can generate the account’s API key in your agency web portal in Settings - API-key.
API-key must be passed in header named X-AGENCY-API-KEY
Base URLs
Important: Each airline has their own specific domain. The API endpoints are hosted on airline-specific domains.
Base URL Pattern: https://{your-airline-domain}/api
Important: All API endpoints are prefixed with /api
due to the servlet context path configuration.
To get your airline’s specific API domain, contact your technical integration manager.
Resources
Search Flights
The API allows you to search for flights by specified dates and route directions.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchFlightOptions/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchFlightOptions/request-fields.adoc[]
The response contains information on each available flight: detailed information about the flight, branded fares, additional services, and prices for each passenger. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchFlightOptions/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchFlightOptions/response-fields.adoc[]
Search Returning Flights
The API allows you to search for returning flights by specified dates, route directions and fare frame ID.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchReturningFlights/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchReturningFlights/request-fields.adoc[]
The response contains information on each available returning flight: detailed information about the flight, branded fares, additional services, and prices for each passenger. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchReturningFlights/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/searchReturningFlights/response-fields.adoc[]
Get Flights Calendar
The API allows you to get flight dates for specified dates and route directions.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/calendar/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/calendar/request-parameters.adoc[]
The response contains list of dates with available flights. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/calendar/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/calendar/response-fields.adoc[]
Get fare data
The API allows you to get fare data by specified route directions.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/getRouteDetails/http-request.adoc[]
The response contains information about fares. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/getRouteDetails/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightSearchControllerTest/getRouteDetails/response-fields.adoc[]
Get flight fare prices
The API allows you to get fare prices by specified flights.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightFareControllerTest/getFlightFarePrices/http-request.adoc[]
The response contains information about fare prices. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightFareControllerTest/getFlightFarePrices/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightFareControllerTest/getFlightFarePrices/response-fields.adoc[]
Get flight fare prices with rules
The API allows you to get fare prices by specified flights.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightFareControllerTest/getFlightFarePricesWithRules/http-request.adoc[]
The response contains information about fare prices with riles. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightFareControllerTest/getFlightFarePricesWithRules/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightFareControllerTest/getFlightFarePricesWithRules/response-fields.adoc[]
Get route details
The API allows you to get route ID by flight IDs.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiRouteControllerTest/getRoute/http-request.adoc[]
The response contains information about route with legs. Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiRouteControllerTest/getRoute/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiRouteControllerTest/getRoute/response-fields.adoc[]
Branded Fare Details
Branded fares consist of services such as baggage allowance, meals on board, seat selection, and exchange and refund conditions.
The request must include all of the following parameters to get information about the branded fares. Fare(Brand) frame id is a parameter in order to get actual fare.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBrandedFareControllerTest/brandedFarePrices/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBrandedFareControllerTest/brandedFarePrices/request-fields.adoc[]
The response contains information about each branded fare on the flight, indicating the scope of services, conditions, and prices for each passenger.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBrandedFareControllerTest/brandedFarePrices/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBrandedFareControllerTest/brandedFarePrices/response-fields.adoc[]
Flight Offer
The airline may sell additional services on the flight, such as extra baggage, pre-paid meals onboard, seat selection, etc.
You need to submit a request to receive a list of additional services of the airline available for purchase.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightOfferControllerTest/flightOffers/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightOfferControllerTest/flightOffers/request-parameters.adoc[]
The response contains information about each branded fare on the flight, indicating the scope of services, conditions, and prices for each passenger.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightOfferControllerTest/flightOffers/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiFlightOfferControllerTest/flightOffers/response-fields.adoc[]
Flight Assistances
This request is for a list of available passenger assistance services.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiAssistanceControllerTest/assistances/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiAssistanceControllerTest/assistances/request-parameters.adoc[]
The response for each service additionally indicates the type of passenger for which assistance can be selected.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiAssistanceControllerTest/assistances/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiAssistanceControllerTest/assistances/response-fields.adoc[]
Booking Create
To create a booking, you must specify information about the selected flight, brand, and passengers. Additionally, for each passenger, you can specify a list of selected additional services and assistance of the airline on this flight.
*The set of mandatory parameters that must be specified to the passenger when booking may differ depending on the selected airline configuration. For each airline, the agent must agree on the list of parameters to be used.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createBooking/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createBooking/request-fields.adoc[]
The response contains information about the created booking and its price.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createBooking/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createBooking/response-fields.adoc[]
Booking Payment
To pay for the booking from the agent’s balance, you must complete the following request with information on the booking id. Our system will automatically determine the payment instrument for your agency and authorize for the amount of the booking.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingPaymentControllerTest/pay/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingPaymentControllerTest/pay/http-response.adoc[]
Booking Order
Booking payment deadline in seconds. Order ID must be passed in path, it can be obtained from the booking create request.
Parameter | Description |
---|---|
|
Order ID (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiOrderControllerTest/getTimeLimit/http-response.adoc[]
Booking Details
This endpoint is designed to receive detailed information on booking: booking details, data on each passenger segment, and route. The request can be made after paying for the booking, in order to receive information about successful authorization. And to receive changes to the reservation that could have occurred on the side of the airline.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingDetailControllerTest/bookingDetails/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingDetailControllerTest/bookingDetails/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingDetailControllerTest/bookingDetails/response-fields.adoc[]
Refund Details
Endpoint for getting refund details by booking for each passenger segment.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refundInfo/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refundInfo/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refundInfo/response-fields.adoc[]
Refund
Endpoint for performing a refund on the specified passenger segments of the booking.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refund/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refund/request-body.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refund/request-fields.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingRefundControllerTest/refund/http-response.adoc[]
Add Infant
The endpoint is designed to add an infant for the current booking. Information about the route, brand and fare rules is inherited from the main booking.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createAddInfBooking/http-request.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createAddInfBooking/request-fields.adoc[]
As a result of the operation, a new booking with an infant is created, which is associated with the main booking.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createAddInfBooking/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingControllerTest/createAddInfBooking/response-fields.adoc[]
Exchange Flight Alternative Dates
Endpoint for getting exchange flight alternative dates by booking ID and flightIDs.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/alternativeFlightInfo/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/alternativeFlightInfo/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/alternativeFlightInfo/response-fields.adoc[]
Get Exchange Alternative Flights
An endpoint for getting for an alternative flights to exchange.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/bookingFlights/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
The response contains information about each available flight and passengers.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/bookingFlights/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/bookingFlights/response-fields.adoc[]
Search exchange options by pax segment IDs and flight date
Endpoint for searching exchange options by pax segment IDs and flight date.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchangeSearch/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchangeSearch/request-fields.adoc[]
The response contains information about the exchange option routes.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchangeSearch/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchangeSearch/response-fields.adoc[]
Execute booking exchange
Endpoint for executing booking exchange.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchange/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchange/request-fields.adoc[]
The response contains new booking ID and newly created order ID.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchange/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/exchange/response-fields.adoc[]
Get booking exchange preview
Endpoint for getting booking exchange preview.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/preview/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/preview/request-fields.adoc[]
The response contains booking exchange preview data.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/preview/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/preview/response-fields.adoc[]
Get exchange calendar by specified filter
Endpoint for getting exchange calendar by specified filter.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/getExchangeCalendar/http-request.adoc[]
Parameter | Description |
---|---|
|
Booking id (UUID) |
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/getExchangeCalendar/http-request.adoc[]
The response flight dates for specified request.
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/getExchangeCalendar/http-response.adoc[]
Unresolved directive in agency-api.adoc - include::/mnt/gitlab-runner/builds/RRsrzGr7L/1/farel_repos/farel-os/farel-os-api/application/../agency-api/target/generated-snippets/AgencyApiBookingExchangeControllerTest/getExchangeCalendar/response-fields.adoc[]
Service Payload
Each service has additional parameters, which depend on the category of the service.
Service Category |
Payload Path |
Type |
Description |
BAGGAGE |
|
|
Type of baggage: Cabin or Check-in |
BAGGAGE |
|
|
Baggage weight |
Errors code
Agency API uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc). Codes in the 5xx range indicate an error with Agency API’s servers (these are rare).
Some 4xx errors that could be handled programmatically (e.g., a card is declined) include an error code that briefly explains the error reported.
HTTP Code |
Description |
|
Everything worked as expected. |
|
The request redirection response code indicates that there is no need to retransmit the requested resources. It is an implicit redirection to a cached resource. |
|
The request was unacceptable, often due to missing a required parameter. |
|
No valid API key provided. |
|
Forbidden. The API key doesn’t have permissions to perform the request. |
|
The requested resource doesn’t exist. |
|
Something went wrong on Agency API’s end. (These are rare.) |