Policy Packages
In Mexico, insurance policies are commonly structured into packages comprising various coverages. Typically, clients must choose one package from a range of 2 or 3 available packages. As clients opt for higher tiers, the scope of coverage expands. Consequently, each policy is linked to a specific package, and each package is associated with a predefined set of included coverages. Additionally, some of these coverages are optional. This API not only allows clients to select their preferred package but also provides the flexibility to customize it by including or excluding specific optional coverages.
Package Structure Overview
Qualitas packages are designed with a predefined set of coverages. For example, the "Full" package includes a set of coverages, each with specified sums and deductibles (where applicable). This means that a quote or policy can be generated by simply providing the package ID, without needing to specify or modify the coverages manually. The system will automatically use the default coverage configuration for the specified package.
However, there are certain scenarios where you may need to modify the default coverages. These include:
- Modifying the insurance sum of a coverage.
- Modifying the deductible percentage of a coverage (if applicable).
- Removing a coverage from the package.
- Adding an optional coverage that is not included by default.
Modifying the Insurance Sum or Deductible Percentage
Please note that only specific values are allowed for modifying the insurance sum and deductible percentage. To ensure valid modifications, refer to the allowed values for each coverage. These values can be found in the insured_sum_options and deductible_options arrays, which are part of the coverage object within the package object.
When you fetch the list of packages, the structure will be as follows:
{
"data": [
{
"id": 1,
"display": "Amplia",
"display_en": "Full",
"coverages": [
{
"id": 1,
"short_name": "DM",
"display": "Daños Materiales",
"insured_sum_options": [ array of allowed sums ],
"deductible_options": [ array of allowed deductibles ]
},
{
"id": 3,
"short_name": "RT",
"display": "Robo Total",
"insured_sum_options": [ array of allowed sums ],
"deductible_options": [ array of allowed deductibles ]
}
]
}
]
}
Modifying a Coverage
To modify one or more coverages, you must define the Coverages array property as part of the package object. Here’s an example of how you can structure the request:
Example from .NET SDK:
var packageData = new TouristPolicyRequestPackage
{
Id = "Full",
Coverages = new List<TouristPolicyRequestPackageCoverage>
{
new TouristPolicyRequestPackageCoverage
{
Id = 1,
Deductible = .10,
Exclude = false,
InsuredSum = 400000
}
}
};
Explanation of Fields
Id: The ID of the coverage you wish to modify (this is required).Deductible: A decimal value representing the deductible percentage you want to apply to the coverage (optional).Exclude: A boolean value that determines whether to exclude the coverage from the policy, if it's an excludable coverage (optional).InsuredSum: An integer value representing the insured amount you wish to assign to the coverage (optional).
Key Notes
- The
Deductiblefield should be a decimal that reflects the deductible percentage you want to apply (e.g.,0.5for 5%). - The
Excludefield is only applicable for coverages that can be excluded. Setting this totruewill remove the coverage from the policy. - The
InsuredSummust be selected from the list of allowed values for that coverage, as indicated by theinsured_sum_optionsarray. If you define an out-of-range amount, you’ll get a validation error from the server.
Properties
The fetched data provides the following properties for each entity in the collection. These properties are not meant to be submitted.
- Name
id- Type
- int
- Description
Unique identifier for the package.
- Name
name- Type
- string
- Description
The package's name.
- Name
name_en- Type
- string
- Description
The package's name in English.
- Name
coverages- Type
- array<object>
- Description
The coverages available to the package.
- Name
id- Type
- int
- Description
Unique identifier for the coverage.
- Name
name- Type
- string
- Description
The coverage's name.
- Name
name_en- Type
- string
- Description
The coverage's name in English.
- Name
short_name- Type
- string
- Description
The coverage's short name.
- Name
is_excludable- Type
- boolean
- Description
- Indicates whether the coverage can be excluded. Some coverages are included by default but may be optional for removal, while others are integral to the package and cannot be excluded. This property helps identify which coverages can be excluded.
- Name
is_add_on- Type
- boolean
- Description
- Indicates whether this coverage can be added as an optional add-on. Add-on coverages offer additional, customizable benefits for the policy holder.
- Name
exchange_rate- Type
- float
- Description
- Name
currency- Type
- string
- Description
- Name
insured_sum- Type
- int
- Description
- Name
insured_sum_options- Type
- array<int>
- Description
The available values for
insured_sum.
- Name
deductible- Type
- float
- Description
About- Name
deductible_options- Type
- array<float>
- Description
The available values for
deductible.
is_excludableandis_add_on:- If
is_excludableistrueandis_add_onisfalse, it means the coverage is included by default but can be excluded. - If
is_excludableistrueandis_add_onistrue, it means the coverage is optional but not included by default. It must be explicitly included. For more details, consult theadd_on_coveragesarray property in Policy Quote and Policy. - If
is_excludableisfalse, it implies thatis_add_onis alwaysfalse. This indicates mandatory coverages that cannot be excluded.
List packages by insurance company and policy type
The "packages" endpoint provides a comprehensive list of insurance packages, each uniquely identified. These packages include various coverage options, such as "Material Damage," and may have different features. The endpoint returns the packages along with their respective coverage details. Notice that certain coverages are optional.
Required properties
- Name
insurance_company_id- Type
- string
- Description
The insurance company ID. Currently, only
QUALITASis supported.To SDK devs: An enum is available for this data type.
- Name
policy_type- Type
- string
- Description
The policy type. Currently, only
MX_TOURISTis supported.To SDK devs: An enum is available for this data type.
Request
curl -G https://covertier.com/api/v1/packages/{company_id}/{policy_type} \
-H "Authorization: Bearer {TOKEN}"
Response
{
"data": [
{
"id": "1",
"display": "Amplia",
"display_en": "Full",
"coverages": [
{
"id": 1,
"short_name": "DM",
"display": "Daños Materiales",
"display_en": "Material Damage",
"is_add_on": false,
"is_excludable": false,
"insured_sum": 15000,
"deductible": 5,
"premium": 0
},
{
"id": 3,
"short_name": "RT",
"display": "Robo Total",
"display_en": "Theft",
"is_add_on": false,
"is_excludable": false,
"insured_sum": 0,
"deductible": 10,
"premium": 0
},
...
]
}
]
}