API reference

HTS APIs

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

Schema

cancellation_policy

Defines the terms and conditions for canceling a vehicle rental.

Fields

penalty_ranges
array of object
required
Items ≥ 1
Show fields
Array of object
Items ≥ 1
start_time
string · date-time
required

Start time of the penalty range (Inclusive), in ISO 8601 format.

end_time
string · date-time
required

End time of the penalty range (Exclusive), in ISO 8601 format.

penalty
object
required

Penalty amount withheld form the client upon cancellation.

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
Example
{
  "penalty_ranges": [
    {
      "start_time": "2025-01-21T00:00:00Z",
      "end_time": "2025-01-26T00:00:00Z",
      "penalty": {
        "currency": "USD",
        "amount": "0.00"
      }
    },
    {
      "start_time": "2025-01-26T00:00:00Z",
      "end_time": "2025-01-27T00:00:00Z",
      "penalty": {
        "currency": "USD",
        "amount": "75.00"
      }
    },
    {
      "start_time": "2025-01-27T00:00:00Z",
      "end_time": "2025-01-28T00:00:00Z",
      "penalty": {
        "currency": "USD",
        "amount": "135.00"
      }
    }
  ]
}