API reference

HTS APIs

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

GET/get_bookingOther

Get Booking

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

Called by HTS to retrieve the current state of a lodging booking from the partner system.

HTS calls this endpoint after purchase confirmation, during exercise to determine payout amounts based on current payment state, and periodically for product reconciliation to ensure system state consistency.

The recommended response includes:

  • Reservation details — reservation ID, confirmation ID, status, check-in/check-out dates, and price breakdown (base, taxes, fees)
  • Property, unit & rate — property ID, unit ID, and rate ID, each matching the identifiers sent on the create-offer request; plus property name, chain name, and check-in time
  • Currency — ISO 4217 currency code for all monetary amounts
  • Payment transactions — amount, timestamp, transaction type (UserCharge, UserRefund), and payment type (PaymentCard, NotProvided, etc.). HTS uses the current payment state to reconcile how much the customer should be paid out during exercise.
  • CFAR order ID — HTS order ID if a CFAR contract is associated with the booking
  • Cancel URL — URL for the customer to initiate cancellation

Partner implementations may vary in structure and field naming. HTS is designed to handle these variations gracefully, including partner-specific reservation status values.

Responses

200
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/get_booking" \
  -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.