Last updated

Exposing Empty Legs to FL3XX API

To retrieve empty leg data via the API, each positioning/empty leg needs to be enabled manually via the FL3XX client.

Prerequisite

  1. Active legs presented to the customer are marked in the Show field. The ones not selected will be available in the next step.

    Empty legs 1

  2. Tails need to be available for the API to read. Please follow this document.


Enabling Empty Legs

  1. To make legs available, access the Reports module.

  2. Select Sales and Empty Legs.

    Empty Legs 2

  3. Click on Generate Report and all the available legs will be presented.

  4. Select every leg that needs to be shown in the API and set the price for that flight. Mark 0 if the price is zero; don't leave it blank.

    Empty Legs 3

  5. Save changes.


Retrieving empty legs via FL3XX API

Once empty legs are configured in the UI, you can access them programmatically.

Endpoint: GET /api/external/quote/legs/empty

This endpoint retrieves all empty legs that have been made available to the API by the operator in the previous step.

For more details about how to use the endpoint please visit our API Reference