When you search for flights by creating an offer request, we'll give back a series of search results which we call "offers".
Each offer allows you to book a particular set of flights (known as "segments") for a particular price.
Once your user has selected an offer that they want to book, the next step is usually to collect the details of the passengers plus any payment details.
But before you show that screen to the customer, you should use the "Get a single offer" API to "refresh" the offer.
Taking this simple extra step first will allow you to provide a much better experience to your customers. Instead of entering all of their details and then finding out that their flights are no longer available or the price has gone up, they'll find out earlier.
When you use the "Get a single offer" API, we'll:
- Double check that the offer is still available
- Double check that the price of the offer hasn't changed - returning you the new `total_amount` if it has