API reference

HTS APIs

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

GET/search_bookingsOther

Search Bookings

https://fintech.staging.htsapis.com/lodging-cfar/v2/search_bookings

Called by HTS during nightly reconciliation to list the partner's CFAR bookings and reconcile them against the HTS store.

from is required and to is optional; when to is omitted, every CFAR booking from from onward is returned.

The response is a JSON array of CFAR bookings. Each element has the same shape as the Get Booking response.

Parameters

from
query · string · date
required

Start of the date range to search, in ISO 8601 local date format.

to
query · string · date

End of the date range to search, in ISO 8601 local date format. When omitted, the range is open at the end.

Responses

200
Array of get_booking_response
reservation_id
string
required

ID of the reservation in the partner's system.

customer_confirmation_id
string
required

Customer-facing confirmation ID (locator) for the hotel.

reservation_status
string
required

Current status of the reservation. Partners may use their own status values; HTS will accept and translate them.

check_in_date
string · date
required

Check-in date in ISO 8601 local date format.

check_out_date
string · date
required

Check-out date in ISO 8601 local date format.

created_at
string · date-time
required

ISO 8601 timestamp when the reservation was created.

reservation_price
price
required

Full reservation cost split into base, taxes, and fees.

Show fields
base
string
required

Base price amount.

Range ≥ 0
taxes
string
required

Tax amount.

Range ≥ 0
fees
string
required

Fee amount.

Range ≥ 0
booking_currency
string
required

ISO 4217 currency code for all monetary amounts in the response.

property_id
string
required

ID of the property in the partner's system.

unit_id
string
required

ID of the booked unit in the partner's system.

rate_id
string
required

ID of the booked rate in the partner's system.

property_name
string
required

Display name of the property.

last_modified_at
string · date-time

ISO 8601 timestamp when the reservation was last modified.

check_in_time
string

Local check-in time at the property.

chain_name
string

Name of the hotel chain. Not required for independent properties.

payment_transactions
array of payment_transaction

Record of payment transactions associated with this booking.

Show fields
Array of payment_transaction · Record of payment transactions associated with this booking.
amount
string
required

Monetary amount of the transaction.

Range ≥ 0
date_time
string · date-time
required

ISO 8601 timestamp when the transaction occurred.

transaction_type
string enum
required

Whether this transaction is a charge or refund.

Values user_chargeuser_refund
payment_type
string enum
required

The payment method used for this transaction.

Values payment_cardnot_provided
cfar_order_id
string

HTS CFAR order ID, if a CFAR contract is associated with this booking.

cancel_url
string

URL for the customer to initiate a cancellation.

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 GET "https://fintech.staging.htsapis.com/lodging-cfar/v2/search_bookings" \
  -H "X-Api-Key: $HTS_API_KEY"
Response 200
[
  {
    "reservation_id": "string",
    "customer_confirmation_id": "string",
    "reservation_status": "string",
    "check_in_date": "2024-06-15",
    "check_out_date": "2024-06-18",
    "created_at": "2024-06-15T10:30:00Z",
    "last_modified_at": "2026-12-10T15:00:00Z",
    "reservation_price": {
      "base": "200.00",
      "taxes": "30.00",
      "fees": "20.00"
    },
    "booking_currency": "USD",
    "property_id": "string",
    "unit_id": "string",
    "rate_id": "string",
    "property_name": "string",
    "check_in_time": "15:00",
    "chain_name": "string",
    "payment_transactions": [
      {
        "amount": "150.00",
        "date_time": "2024-06-15T10:30:00Z",
        "transaction_type": "user_charge",
        "payment_type": "payment_card"
      }
    ],
    "cfar_order_id": "string",
    "cancel_url": "string"
  }
]

Examples are generated from the schema where the spec publishes none; field values are illustrative.