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}/confirmOther

Confirm Contract

https://fintech.staging.htsapis.com/flights-cfar/v2/contracts/{id}/confirm

Confirm a contract. If HTS is merchant of record, the price is first captured before confirming.

Parameters

id
path · string
required

A unique identifier for a contract.

Request body application/json · required

booking_references
map_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
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.
404The requested resource could not be found
No body.
422Semantic errors were encountered while handling the request
Array of cfar_confirm_contract_error · one of 4
Items ≥ 1
Exactly one of the following, selected by code:
invalid_contract_status (invalid_contract_status) invalid_contract_status
message
string
required

A human-readable message describing the error

code
string
required
order_not_found (order_not_found) order_not_found
message
string
required

A human-readable message describing the error

code
string
required
payment_capture_failed (payment_capture_failed) payment_capture_failed
message
string
required

A human-readable message describing the error

code
string
required
pnr_required (pnr_required) pnr_required
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 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.