API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
GET
/contracts/{id}/status_historyOtherGet Contract Status History
https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/{id}/status_history
Get the history of status events for a contract.
Parameters
idpath · string
required
A unique identifier for a contract.
Responses
200The contract's status event history
eventsarray of dafar_contract_status_history_event
required
The historical list of status events for a contract.
Items ≥ 1
Show fields
Array of dafar_contract_status_history_event · The historical list of status events for a contract.
Items ≥ 1
statusstring enum
required
The contract status associated with the event.
Values
canceledconfirmeddraftedexercise_eligibleexpiredexercisedvoideddescriptionstring
required
Human-readable description of the status event.
Length ≥ 1
occurred_atstring · date-time
required
Date and time when the status event occurred, as a UTC RFC3339 formatted datetime.
monetary_transactionmonetary_transaction
The money exchanged as a part of the status event, if applicable.
Show fields
amountstring
required
The amount of the monetary transaction.
currencystring
required
The currency of the monetary transaction.
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.
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X GET "https://fintech.staging.htsapis.com/flights-dafar/v2/contracts/<id>/status_history" \
-H "X-Api-Key: $HTS_API_KEY"Response 200
{
"events": [
{
"status": "Confirmed",
"description": "Policy purchased",
"monetary_transaction": {
"amount": "string",
"currency": "CAD"
},
"occurred_at": "2024-12-20T12:15:48Z"
}
]
}Examples are generated from the schema where the spec publishes none; field values are illustrative.
