API reference

HTS APIs

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

POST/contracts/searchOther

Search Contracts

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

Search for CFAR contracts.

Request body application/json · required

filter
search_filter · one of 3
required

Search filter for retrieving contracts.

Show fields

Search filter for retrieving contracts.

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

value: and

filters
array of composable_filter1
required
Items ≥ 1
Show fields
Array of composable_filter1 · one of 1
Items ≥ 1
Exactly one of the following, selected by type:
field (field1) field1
type
string
required

value: field

name
string enum
required
Values reservation_id
value
string
required
field (field1) field1
type
string
required

value: field

name
string enum
required
Values reservation_id
value
string
required
or (or1) or1
type
string
required

value: or

filters
array of composable_filter1
required
Items ≥ 1
Show fields
Array of composable_filter1 · one of 1
Items ≥ 1
Exactly one of the following, selected by type:
field (field1) field1
type
string
required

value: field

name
string enum
required
Values reservation_id
value
string
required

Responses

200The CFAR contracts
contracts
array of cfar_contract
required

The CFAR contracts associated with the given search parameter.

Show fields
Array of cfar_contract · The CFAR contracts associated with the given search parameter.
id
string
required

CFAR contract ID

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.

expires_at
string · date-time
required

The instant the purchased contract will expire as a UTC (RFC3339) datetime.

status
string enum
required

Current status of the contract.

Values draftedconfirmedexercisedvoidedcanceled
currency
string
required

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

unit_reservation_id
string

The ID of the unit reservation (in the partner's system) associated with this contract. For single-unit bookings, this may be the same as reservation_id.

Length ≥ 1
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.

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.
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/contracts/search" \
  -H "X-Api-Key: $HTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filter": {
    "type": "string",
    "filters": [
      {
        "type": "string",
        "name": "reservation_id",
        "value": "string"
      }
    ]
  }
}'
Response 200
{
  "contracts": [
    {
      "id": "string",
      "price": {
        "total_amount": "12.00",
        "base_amount": "10.00",
        "taxes": [
          {
            "code": "VAT",
            "amount": "20.00"
          }
        ]
      },
      "payout": {
        "amount": "450",
        "percentage": 100,
        "price_included": true
      },
      "expires_at": "2026-12-10T15:00:00Z",
      "unit_reservation_id": "string",
      "status": "drafted",
      "agent_commission": {
        "amount": "1.20",
        "payable_date": "2026-08-15"
      },
      "currency": "USD"
    }
  ]
}

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