API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

flight_booking

Fields

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

Used by

POST/flight_bookingsCreate Flight Booking
GET/flight_bookings/{id}Get Flight Booking
Example
{
  "id": "bk_abc123",
  "status": {
    "type": "string"
  }
}