HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
/cancel_bookingOtherCancel Booking
Called by HTS to cancel a lodging booking.
HTS calls this endpoint when it needs to initiate a cancellation on the partner's side. The specific scenarios in which this is used depend on the integration — some partners handle cancellation entirely on their end during exercise, while others rely on HTS to trigger it. May be processed synchronously (204) or asynchronously (202).
The request includes:
- Unit booking IDs — IDs of the rooms/units to cancel
- Payouts — refund amounts and payment method types
Request body application/json · required
unit_booking_idsIDs of the unit bookings (rooms) to cancel.
payoutsPayout instructions for refunding the customer.
Show fields
amountRefund amount.
typePayment method type for this payout.
payment_cardnot_providedResponses
202Accepted for asynchronous processing
204Completed successfully
400Syntactic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]404The requested resource could not be found
422Semantic errors were encountered while handling the request
messagecodeExample
[
{
"message": "string",
"code": "string"
}
]500The server encountered an internal error
curl -X POST "https://fintech.staging.htsapis.com/lodging-cfar/v2/cancel_booking" \
-H "X-Api-Key: $HTS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"unit_booking_ids": [
"string"
],
"payouts": [
{
"amount": "250.00",
"type": "payment_card"
}
]
}'Examples are generated from the schema where the spec publishes none; field values are illustrative.
