HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/contracts/{id}/voidOtherVoid Contract
Voiding a contract results in the customer being refunded the total price of the product. This should be used when the itinerary associated with the contracts is canceled within the void window.
Parameters
idA unique identifier for a contract.
Request body application/json
reasonExplanation for why this void occurred.
Show fields
Explanation for why this void occurred.
type:good_will (good_will) good_will
typevalue: good_will
not_purchased (not_purchased) not_purchased
typevalue: not_purchased
other (other1) other1
typevalue: other
reasonHuman-readable explanation for why this void was performed.
void_window (void_window) void_window
typevalue: void_window
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_status2) invalid_contract_status2
messageA human-readable message describing the error
codeorder_not_found (order_not_found1) order_not_found1
messageA human-readable message describing the error
codepayment_refund_failed (payment_refund_failed) payment_refund_failed
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>/void" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": {
"type": "string"
}
}'Examples are generated from the schema where the spec publishes none; field values are illustrative.
