API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
GET
/flight_bookings/{id}OtherGet Flight Booking
https://fintech.staging.htsapis.com/flights-dafar/v2/flight_bookings/{id}
Get the status of a flight booking.
Parameters
idpath · string
required
A unique identifier for a flight booking.
Responses
200The flight booking
idstring
required
Unique identifier for this flight booking.
statusstatus1 · one of 3
required
Current status of the booking.
Show fields
Current status of the booking.
Exactly one of the following, selected by
type:confirmed (confirmed) confirmed
typestring
required
value: confirmed
failed (failed) failed
typestring
required
value: failed
errorstring
required
Error message describing why the booking failed.
Length ≥ 1
pending (pending) pending
typestring
required
value: pending
400Syntactic errors were encountered while handling the request
Array of error
messagestring
required
codestring
required
Example
[
{
"message": "string",
"code": "string"
}
]401The client could not be authenticated
No body.
403The authenticated client does not have permission to call this endpoint
No body.
404The requested resource could not be found
No body.
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X GET "https://fintech.staging.htsapis.com/flights-dafar/v2/flight_bookings/<id>" \
-H "X-Api-Key: $HTS_API_KEY"Response 200
{
"id": "bk_abc123",
"status": {
"type": "string"
}
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
