Quote Errors

General errors will return a HTTP 400 response with a description of the error. See below for the list of Quote general errors.

Invalid Request Payload

Required fields, e.g. email address or trip start date are missing from the quote request ("{{parameter}} cannot be blank"). See quote request for all required fields.

{
    "errors": {
        "email": [
            "Email cannot be blank."
        ]
    }
}
{
    "errors": {
        "fromDate": [
            "From Date cannot be blank.",
            "FromDate:  must be in the future"
        ]
    }
}

An invalid country code has been used, use an ISO 3166 2-letter country code for the customer country of residence parameter.

{
    "errors": {
        "country": [
            "Country is too long (maximum is 2 characters).",
            "Unknown country code: UNITED"
        ]
    }
}

An invalid language code has been used, use an ISO 638-1 2-letter code, see supported languages for all supported codes.

{
    "errors": {
        "languageCode": [
            "Language Code is too long (maximum is 5 characters)."
        ]
    }
}

Unable to Return a Policy

Certain vehicle codes aren't covered by underwriters, e.g. FVAR or Passenger Van, RentalCover will reject a quote request for restricted vehicle codes.

{
    "errors": [
        "No policies available for SIPP code."
    ]
}

For some regions RentalCover do not have a trading license to cover for residents, RentalCover will reject a quote requested for customers form these regions.

{
    "errors": {
        "region": [
            "No policies are available for the requested state, province or territory."
        ]
    }
}

Last updated