API reference

HTS APIs

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

Schema

pre_cancel_response

Response for the cancellation quote operation.

Fields

cancellation_penalty
object
required

Defines the terms and conditions for canceling a vehicle rental.

Show 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
refund_amount
object
required

The amount that will be refunded to the client.

Show fields
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
currency
string
required

Currency code, in ISO 4217 format.

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

Token to use to complete the cancellation, using the cancel operation.

Example string
valid_until
string · date-time
required

ISO 8601 timestamp until which the cancellation quote remains valid.

Example 2025-01-13T13:45:15.523Z
response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
Example
{
  "cancellation_penalty": {
    "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"
        }
      }
    ]
  },
  "refund_amount": {
    "amount": "123.45",
    "currency": "USD"
  },
  "cancellation_token": "string",
  "valid_until": "2025-01-13T13:45:15.523Z",
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}