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}Other

Get Flight Booking

https://fintech.staging.htsapis.com/flights-dafar/v2/flight_bookings/{id}

Get the status of a flight booking.

Parameters

id
path · string
required

A unique identifier for a flight booking.

Responses

200The flight booking
id
string
required

Unique identifier for this flight booking.

status
status1 · 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
type
string
required

value: confirmed

failed (failed) failed
type
string
required

value: failed

error
string
required

Error message describing why the booking failed.

Length ≥ 1
pending (pending) pending
type
string
required

value: pending

400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
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.