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 Offer

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

Get an offer.

Parameters

id
path · string
required

A unique identifier for an offer.

Responses

200The offer
id
string
required

Unique ID for an offer.

price
offer_price
required

The price breakdown of the product.

Show fields
total_amount
string
required

Total amount to be paid for the product, including taxes.

Range ≥ 0
total_amount_per_passenger
string
required

The per-passenger amount to be paid for the product, including taxes.

Range ≥ 0
base_amount
string
required

Amount to be paid for the product, excluding taxes.

Range ≥ 0
taxes
array of tax
Items ≥ 1
Show fields
Array of tax
Items ≥ 1
code
string
required

Code representing this tax.

Length ≥ 1
amount
string
required

Total amount of the tax.

payout
payout
required

The payout to be issued to the user upon exercise.

Show fields
amount
string
required

The total amount to be paid out upon exercise.

percentage
integer · int32
required

The percentage of the booking to be paid out upon exercise.

Range ≥ 0, ≤ 100
price_included
boolean
required

If the product price is included in the product payout amount.

currency
string
required

Currency of all pricing fields for the offer.

expires_at
string · date-time
required

Date and time at which the offer expires at which point a new offer must be created, as a UTC RFC3339 formatted datetime.

contract_expires_at
string · date-time
required

Date and time at which the contract will expire once purchased, as a UTC RFC3339 formatted datetime.

priced
boolean
required

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

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.
499The client cancelled the request
No body.
500The server encountered an internal error
No body.
Request
curl -X GET "https://fintech.staging.htsapis.com/flights-cfar/v2/offers/<id>" \
  -H "X-Api-Key: $HTS_API_KEY"
Response 200
{
  "id": "string",
  "price": {
    "total_amount": "40.80",
    "total_amount_per_passenger": "20.40",
    "base_amount": "30.20",
    "taxes": [
      {
        "code": "VAT",
        "amount": "20.00"
      }
    ]
  },
  "payout": {
    "amount": "400.00",
    "percentage": 80,
    "price_included": false
  },
  "currency": "CAD",
  "expires_at": "2020-12-20T12:15:48Z",
  "contract_expires_at": "2020-12-20T12:15:48Z",
  "priced": true
}

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