API reference

HTS APIs

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

GET/offers/{id}Quote

Get CFAR Offer

https://fintech.staging.htsapis.com/lodging-cfar/v2/offers/{id}

Get CFAR offer.

Parameters

id
path · string
required

The ID of the CFAR offer.

display_currency
query · string

Optional display-only currency (3-letter ISO 4217). When supplied and different from the offer currency, the response includes a converted display_details object. The contract currency and amounts are never changed.

Responses

200The CFAR offer
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.
404The requested resource could not be found
No body.
422Semantic errors were encountered while handling the request
Array of get_cfar_offer_error · one of 1
Items ≥ 1
Exactly one of the following, selected by code:
invalid_token (invalid_token1) invalid_token1
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 GET "https://fintech.staging.htsapis.com/lodging-cfar/v2/offers/<id>" \
  -H "X-Api-Key: $HTS_API_KEY"
Response 200
{
  "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.