HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/contracts/{id}/confirmOtherConfirm Contract
Confirm a contract. If HTS is merchant of record, the price is first captured before confirming.
Parameters
idA unique identifier for a contract.
Request body application/json · required
booking_referencesRecord 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
400Syntactic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]401The client could not be authenticated
403The authenticated client does not have permission to call this endpoint
404The requested resource could not be found
422Semantic errors were encountered while handling the request
code:invalid_contract_status (invalid_contract_status) invalid_contract_status
messageA human-readable message describing the error
codeorder_not_found (order_not_found) order_not_found
messageA human-readable message describing the error
codepayment_capture_failed (payment_capture_failed) payment_capture_failed
messageA human-readable message describing the error
codepnr_required (pnr_required) pnr_required
messageA human-readable message describing the error
codeExample
[
{
"message": "string",
"code": "string"
}
]499The client cancelled the request
500The server encountered an internal error
curl -X PUT "https://fintech.staging.htsapis.com/flights-cfar/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.
