API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

POST/cancel_bookingOther

Cancel Booking

https://fintech.staging.htsapis.com/lodging-cfar/v2/cancel_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_ids
array of string
required

IDs of the unit bookings (rooms) to cancel.

payouts
array of cancel_booking_payout
required

Payout instructions for refunding the customer.

Show fields
Array of cancel_booking_payout · Payout instructions for refunding the customer.
amount
string
required

Refund amount.

Range ≥ 0
type
string enum
required

Payment method type for this payout.

Values payment_cardnot_provided

Responses

202Accepted for asynchronous processing
No body.
204Completed successfully
No body.
400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
404The requested resource could not be found
No body.
422Semantic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
500The server encountered an internal error
No body.
Request
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.