API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
PUT
/contracts/{id}/confirmOtherConfirm Contract
https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/{id}/confirm
Confirm a contract. If HTS is merchant of record, the price is first captured before confirming.
Parameters
idpath · string
required
A unique identifier for a contract.
Request body application/json · required
booking_referencesmap_string
required
Record locators if PSS, Order ID if OMS, etc. Used to retrieve the flight booking later. It's a dictionary of key/value pairs. The keys can be anything, but they are referenced in the configuration when retrieving the booking, so those must align.
Responses
204
No body.
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.
422Semantic errors were encountered while handling the request
Array of dafar_confirm_contract_error · one of 2
Items ≥ 1
Exactly one of the following, selected by
code:order_not_found (order_not_found) order_not_found
messagestring
required
A human-readable message describing the error
codestring
required
unsupported_trip_type (unsupported_trip_type1) unsupported_trip_type1
messagestring
required
A human-readable message describing the error
codestring
required
Example
[
{
"message": "string",
"code": "string"
}
]499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X PUT "https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/<id>/confirm" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"booking_references": {}
}'Examples are generated from the schema where the spec publishes none; field values are illustrative.
