Sandbox: book an offer — simulated, free, production responses and timings
Identical request and responses to POST /flights/book, for an offer from a sandbox search. Nothing is held and nothing is bought: the booking is simulated, walking production's states on production's clock (4–11 minutes), pausing on the same questions and ending the same ways. Every response carries sandbox: true.
The optional sandbox block picks what happens. scenario: success (default), price_change, extra, seller_failed, needs_attention, payment_declined, payment_method_required, temporarily_unavailable. speed: realistic (default) or fast (about a minute, for CI). want_seat: true adds a seat map question. Production ignores the sandbox block, so it is safe to leave in.
Request
- Base URL: https://letsfg.co/developers/api/v1
- URL: https://letsfg.co/developers/api/v1/sandbox/flights/book
- Auth: API key in header X-API-Key
Request body
Example request
{
"passengers": [
{
"phone_number": "+48501234567"
}
]
}Response
Simulated hold placed.
Example response
{
"state": "authorised"
}Changes
No recorded changes to this operation across all 1 revision of this API.