API reference

HTS APIs

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

Schema

policies

Fields

before_departure
policy · one of 2

Policy that applies before the flight departure time.

Show fields

Policy that applies before the flight departure time.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields

Penalty applied to the refund amount, if applicable.

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

value: fee

amount
string
required

A fixed monetary penalty amount.

percentage (percentage) percentage
type
string
required

value: percentage

value
string
required

A percentage-based penalty calculated from the fare amount.

Range ≤ 100
after_departure
policy · one of 2

Policy that applies after the flight departure time.

Show fields

Policy that applies after the flight departure time.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields

Penalty applied to the refund amount, if applicable.

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

value: fee

amount
string
required

A fixed monetary penalty amount.

percentage (percentage) percentage
type
string
required

value: percentage

value
string
required

A percentage-based penalty calculated from the fare amount.

Range ≤ 100
anytime
policy · one of 2

Policy that applies regardless of timing relative to departure.

Show fields

Policy that applies regardless of timing relative to departure.

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

value: non_refundable

refundable (refundable) refundable
type
string
required

value: refundable

method
string enum
required

The method by which the refund will be processed.

Values original_form_of_paymentfuture_travel_credit
penalty
penalty · one of 2

Penalty applied to the refund amount, if applicable.

Show fields

Penalty applied to the refund amount, if applicable.

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

value: fee

amount
string
required

A fixed monetary penalty amount.

percentage (percentage) percentage
type
string
required

value: percentage

value
string
required

A percentage-based penalty calculated from the fare amount.

Range ≤ 100
Example
{
  "before_departure": {
    "type": "string"
  },
  "after_departure": {
    "type": "string"
  },
  "anytime": {
    "type": "string"
  }
}