API reference

HTS APIs

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

POST/offers/priceQuote

Price CFAR Offers

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

Price offers for a customer's reservation.

Request body application/json · required

offers
array of price_ids
required

List of CFAR offer IDs along with their rate IDs.

Items ≥ 1
Show fields
Array of price_ids · List of CFAR offer IDs along with their rate IDs.
Items ≥ 1
offer_id
string
required

The ID of the offer to re-price.

unit_id
string
required

The ID of the unit this offer belongs to.

rate_id
string
required

The ID of the rate this offer belongs to.

check_in_date
string · date
required

The date the guest checks in.

check_out_date
string · date
required

The date the guest checks out.

units
array of lodging_unit
required

The list of available units the offer IDs are for.

Items ≥ 1
Show fields
Array of lodging_unit · The list of available units the offer IDs are for.
Items ≥ 1
id
string
required

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

property_id
string
required

The ID of the lodging this unit belongs to in the partner's system.

rates
array of rate

The available rates the user can book. Required.

Show fields
Array of rate · The available rates the user can book. Required.
id
string
required

The unique identifier for this rate.

price
pricing
required

The price breakdown for this rate.

Show fields
base_amount
string
required

The base amount, this includes the provider's base charge and any markup.

Range ≥ 0
taxes_amount
string
required

The amount of taxes.

Range ≥ 0
fees_amount
string
required

The amount of fees.

Range ≥ 0
payment_schedule
array of payment_schedule1

The payment schedule for when the payments will be collected from the user. The sum of amounts must sum up to the full price of the reservation.

Show fields
Array of payment_schedule1 · The payment schedule for when the payments will be collected from the user. The sum of amounts must sum up to the full price of the reservation.
cancellation_penalty
cancellation_penalty · one of 2
required

The cancellation penalty for this rate. Use:

  • non_refundable if the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)
  • refundable for anything else
Show fields

The cancellation penalty for this rate. Use:

  • non_refundable if the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)
  • refundable for anything else
Exactly one of the following, selected by type:
non_refundable (non_refundable1) non_refundable1
type
string
required

value: non_refundable

refundable (refundable1) refundable1
type
string
required

value: refundable

penalties
array of penalty1

The cancellation penalties for this rate. If the rate is fully refundable until check-in, send an empty array. Otherwise, send a list of penalties that will be applied upon cancelling the reservation.

For a list of penalties, they represent a timeline and the latest active penalty will be applied. e.g. on a $900 booking for 4 nights, with penalties:

  • PercentageNightly(01/01/2050, 25%)
  • PercentageNightly(01/05/2050, 50%)

If the guest cancels on:

  • 01/03/2050, penalty is: $900 / 4 * 0.25 = $56.25 (user is refunded $843.75)
  • 01/05/2050, penalty is: $900 / 4 * 0.5 = $112.50 (user is refunded $787.50)
Show fields
…
unit_name
string

The name of the unit.

Length ≥ 1
currency
string
required

Currency of all pricing fields within the request.

channel
channel · one of 5
required

The partner's channel that is interacting with the API.

Show fields

The partner's channel that is interacting with the API.

Exactly one of the following, selected by type:
agent_reseller (agent_reseller) agent_reseller
type
string
required

value: agent_reseller

agency_id
string
required

The ID of the agency.

Length ≥ 1
agent
agent
required

The agent operating the session. Expected from every agent portal integration.

Show fields
id
string
required

The ID of the agent.

Length ≥ 1
account_created_at
string · date-time
required

When the agent's account was created in the partner's system, in UTC.

verification_status
string enum
required

The partner's verification status for this agent. An opaque partner assertion: this API does not define what a partner must do to assert verified. Partners that run no verification programme send not_supported.

Values verifiedunverifiednot_supported
api (api) api
type
string
required

value: api

client
string
required

The client name of the API.

Length ≥ 1
direct (direct) direct
type
string
required

value: direct

online_booking_tool (online_booking_tool) online_booking_tool
type
string
required

value: online_booking_tool

travel_management_company
string
required

The name of the travel management company.

Length ≥ 1
business
string
required

The name of the business.

Length ≥ 1
white_label (white_label) white_label
type
string
required

value: white_label

brand
string
required

The brand name of the white label partner.

Length ≥ 1
occupancy
occupancy

The occupancy for this search.

Show fields
num_adults
integer · int32

The number of adults the user is booking for.

num_children
integer · int32

The number of children the user is booking for.

num_units
integer · int32

The number of units the user is booking.

property
property

The property referenced by the units in this request. Can be empty if property data is synced out-of-band. It is expected that all units belong to the same property.

Show fields
id
string
required

The ID of the property in the partner's system.

property_name
string
required

The name of the property.

Length ≥ 1
check_in_time
string
required

The earliest local time the guest may check in.

address
address
required

The property's address.

Show fields
street_address
string
required

The street address.

Length ≥ 1
locality
string
required

The city, town, or village.

Length ≥ 1
country_code
string
required

The 2 uppercase letter ISO country code.

Length ≥ 1
coordinates
coordinates
required

The property's coordinates.

Show fields
latitude
number · double
required
longitude
number · double
required
region
string

The state, province, territory, or region.

Length ≥ 1
postal_code
string

The postal or zip code.

Length ≥ 1
chain_name
string

The name of the property's chain.

Length ≥ 1
star_rating
string

The property's star rating, 1 through 5.

user_id
string

The ID of the user making the request.

billing_jurisdiction
billing_jurisdiction

Billing information of the user buying the product(s). Recommended for accurate tax calculations especially if HTS is merchant of record, to avoid corrections at the Create Order step since it would be after the user has clicked 'book'.

Show fields
country
string

Country of the customer billing address. 2 uppercase letter ISO country code.

Pattern [A-Z]{2}
state_province
string

State or province of the customer billing address.

Length ≥ 1
city
string

City of the customer billing address.

Length ≥ 1
postal_code
string

Postal code of the customer billing address.

Length ≥ 1

Responses

201Offers priced for a given reservation. There will be at least one type of offer returned. If no offers are available, a 204 No Content will be returned.
offers
array of cfar_offer
required

Priced CFAR offers.

Show fields
Array of cfar_offer · Priced CFAR offers.
id
string
required

ID of this CFAR offer.

price
cfar_price
required

Price for CFAR.

Show fields
total_amount
string
required

The total amount for CFAR, including base and taxes.

base_amount
string
required

The base amount for CFAR.

taxes
array of tax

The taxes for this price.

Show fields
Array of tax · The taxes for this price.
code
string
required

Code representing this tax.

Length ≥ 1
amount
string
required

Total amount of the tax.

payout
payout
required

Breakdown of what will be paid upon exercise.

Show fields
amount
string
required

The maximum amount to issue to the user if they exercise CFAR.

percentage
integer · int32
required

The payout defined as a percentage of the unit's booking_amount. Must be a number between 0 and 100.

price_included
boolean
required

If CFAR price is included in the payout amount.

currency
string
required

Currency of all money values in this offer. 3-letter ISO 4217 code.

expires_at
string · date-time
required

The instant at which this offer expires as a UTC (RFC3339) datetime. After this time, a new offer must be created.

contract_expires_at
string · date-time
required

If this offer is purchased, this is the instant the purchased contract will expire as a UTC (RFC3339) datetime.

priced
boolean
required

Whether this is a priced offer or not. A priced offer is required to create an order.

agent_commission
agent_commission

Commission payable to the travel agent.

Show fields
amount
string
required

Monetary amount payable to the agent, in the offer's currency.

payable_date
string · date
required

Informs the agent of when their commission becomes payable — agents should not expect payment before this date. Commissions are not paid if the reservation is cancelled - the traveller must check-in.

rate_id
string

The rate this offer belong to.

unit_id
string

The unit this offer belong to.

display_details
display_details

Display-only converted view of the offer's monetary values, present when the requested display currency differs from currency.

Show fields
display_currency
string
required

Display-only currency the monetary values were converted to. 3-letter ISO 4217 code.

display_price
cfar_price
required

Display-only CFAR price, converted to displayCurrency.

Show fields
total_amount
string
required

The total amount for CFAR, including base and taxes.

base_amount
string
required

The base amount for CFAR.

taxes
array of tax

The taxes for this price.

Show fields
Array of tax · The taxes for this price.
code
string
required

Code representing this tax.

Length ≥ 1
amount
string
required

Total amount of the tax.

display_payout
payout
required

Display-only payout, converted to displayCurrency.

Show fields
amount
string
required

The maximum amount to issue to the user if they exercise CFAR.

percentage
integer · int32
required

The payout defined as a percentage of the unit's booking_amount. Must be a number between 0 and 100.

price_included
boolean
required

If CFAR price is included in the payout amount.

display_exchange_rate
string
required

Exchange rate (multiplier) used to convert from the offer currency to displayCurrency.

400Syntactic errors were encountered while handling the request
Array of error
message
string
required
code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
401The client could not be authenticated
No body.
403The authenticated client does not have permission to call this endpoint
No body.
422Semantic errors were encountered while handling the request
Array of price_cfar_offer_error · one of 1
Items ≥ 1
Exactly one of the following, selected by code:
invalid_token (invalid_token) invalid_token
message
string
required

A human-readable message describing the error

code
string
required
Example
[
  {
    "message": "string",
    "code": "string"
  }
]
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X POST "https://fintech.staging.htsapis.com/lodging-cfar/v2/offers/price" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "offers": [
    {
      "offer_id": "string",
      "unit_id": "string",
      "rate_id": "string"
    }
  ],
  "check_in_date": "2025-07-12",
  "check_out_date": "2025-07-13",
  "units": [
    {
      "id": "string",
      "property_id": "string",
      "rates": [
        {
          "id": "string",
          "price": {
            "base_amount": "100.24",
            "taxes_amount": "23.91",
            "fees_amount": "10.00",
            "payment_schedule": [
              {}
            ]
          },
          "cancellation_penalty": {
            "type": "string"
          }
        }
      ],
      "unit_name": "King Room with Luxury Bathroom"
    }
  ],
  "occupancy": {
    "num_adults": 1,
    "num_children": 1,
    "num_units": 1
  },
  "property": {
    "id": "12345",
    "property_name": "Fairmont Copley Plaza Boston",
    "check_in_time": "16:00:00",
    "chain_name": "Fairmont",
    "star_rating": "4",
    "address": {
      "street_address": "138 St James Ave",
      "locality": "Boston",
      "country_code": "US",
      "region": "MA",
      "postal_code": "02116",
      "coordinates": {
        "latitude": 42.349218117059806,
        "longitude": -71.07616071007658
      }
    }
  },
  "currency": "CAD",
  "user_id": "33bb4eb2-2937-4bd3-97b1-7796206712f0",
  "channel": {
    "type": "string",
    "agency_id": "858695eb-db27-406a-b9dd-a76af17b7d1c",
    "agent": {
      "id": "a420c244-06c0-40cf-b004-a1f390f069cc",
      "account_created_at": "2026-08-14T09:31:00Z",
      "verification_status": "verified"
    }
  },
  "billing_jurisdiction": {
    "country": "US",
    "state_province": "string",
    "city": "string",
    "postal_code": "string"
  }
}'
Response 201
{
  "offers": [
    {
      "id": "AJsheH2bNOQkxlIgwWSAQlxTeNz0PuQI4JF173CQ8qrI3BFHomJrBkQgqD6n7b-T8XutyEjE7bbUocCcqL1WHt0CINBNotBQAS0QiKg",
      "price": {
        "total_amount": "12.00",
        "base_amount": "10.00",
        "taxes": [
          {
            "code": "VAT",
            "amount": "20.00"
          }
        ]
      },
      "payout": {
        "amount": "450",
        "percentage": 100,
        "price_included": true
      },
      "agent_commission": {
        "amount": "1.20",
        "payable_date": "2026-08-15"
      },
      "currency": "USD",
      "expires_at": "2026-12-10T15:00:00Z",
      "contract_expires_at": "2026-12-10T15:00:00Z",
      "priced": true,
      "rate_id": "string",
      "unit_id": "string",
      "display_details": {
        "display_currency": "CAD",
        "display_price": {
          "total_amount": "12.00",
          "base_amount": "10.00",
          "taxes": [
            {
              "code": "VAT",
              "amount": "20.00"
            }
          ]
        },
        "display_payout": {
          "amount": "450",
          "percentage": 100,
          "price_included": true
        },
        "display_exchange_rate": "1.322067"
      }
    }
  ]
}

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