API reference

HTS APIs

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

POST/flight_status_updatesOther

Publish Flight Status Update

https://fintech.staging.htsapis.com/flights-dafar/v2/flight_status_updates

Notify HTS that a flight's status has changed, such as a delay or a cancellation. HTS uses the notification to identify affected contracts and trigger the appropriate disruption flows.

Request body application/json · required

flight
id
required

The flight whose status has changed.

Show fields
marketing_airline_code
string
required

The IATA carrier code of the marketing airline of the flight.

Pattern [A-Z0-9]{2}
flight_number
string
required

The numeric portion of the flight number.

Pattern [0-9]{1,4}
origin_airport
string
required

IATA airport code of origin

Pattern [A-Z]{3}
destination_airport
string
required

IATA airport code of destination

Pattern [A-Z]{3}
scheduled_departure_date_time
string
required

The original scheduled local date and time of departure in ISO Local Date Time format

scheduled_arrival_date_time
string
required

The original scheduled local date and time of arrival in ISO Local Date Time format

status_update
status_update · one of 2
required

The status update that occurred for the flight.

Show fields

The status update that occurred for the flight.

Exactly one of the following, selected by type:
canceled (canceled1) canceled1
type
string
required

value: canceled

delayed (delayed1) delayed1
type
string
required

value: delayed

estimated_departure_date_time
string

The newly estimated local date and time of departure in ISO Local Date Time format. Optional, but at least one of the estimated departure or arrival times must be provided.

estimated_arrival_date_time
string

The newly estimated local date and time of arrival in ISO Local Date Time format. Optional, but at least one of the estimated departure or arrival times must be provided.

occurred_at
string · date-time
required

The date and time at which the status change occurred, as a UTC RFC3339 formatted datetime.

Responses

202The flight status update has been accepted for processing.
No body.
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.
422Semantic errors were encountered while handling the request
Array of flight_status_update_error · one of 3
Items ≥ 1
Exactly one of the following, selected by code:
estimated_times_unchanged (estimated_times_unchanged) estimated_times_unchanged
message
string
required

A human-readable message describing the error

code
string
required
inconsistent_estimated_times (inconsistent_estimated_times) inconsistent_estimated_times
message
string
required

A human-readable message describing the error

code
string
required
missing_estimated_time (missing_estimated_time) missing_estimated_time
message
string
required

A human-readable message describing the error

code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X POST "https://fintech.staging.htsapis.com/flights-dafar/v2/flight_status_updates" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "flight": {
    "marketing_airline_code": "AA",
    "flight_number": 123,
    "origin_airport": "JFK",
    "destination_airport": "LAX",
    "scheduled_departure_date_time": "2026-02-15T08:00",
    "scheduled_arrival_date_time": "2026-02-15T11:30"
  },
  "status_update": {
    "type": "string"
  },
  "occurred_at": "2026-02-15T13:12:48Z"
}'

Examples are generated from the schema where the spec publishes none; field values are illustrative.