API reference

HTS APIs

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

POST/cancel_bookingOther

Cancel Booking

https://fintech.staging.htsapis.com/flights-cfar/v2/cancel_booking

Called by HTS to cancel a flight booking in the partner system as part of a contract exercise flow.

HTS provides the booking references in the request body to identify the booking to cancel.

Cancellation may be processed synchronously or asynchronously:

  • 202 Accepted — cancellation initiated asynchronously; HTS will poll or await a callback for completion
  • 204 No Content — cancellation completed synchronously; no response body expected

Partner implementations may vary — some always process cancellations synchronously, others always asynchronously. HTS is designed to handle these variations gracefully.

Known 422 error codes:

  • already_canceled — booking has already been canceled
  • last_slice_departed — booking cannot be canceled because the last slice has already departed

Responses

202Accepted for asynchronous processing
No body.
204Completed successfully
No body.
400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
404The requested resource could not be found
No body.
422Semantic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
500The server encountered an internal error
No body.
Request
curl -X POST "https://fintech.staging.htsapis.com/flights-cfar/v2/cancel_booking" \
  -H "X-Api-Key: $HTS_API_KEY"

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