get_coverages (GET)
This function returns the benefits or coverage of a specific plan. It takes as input parameters the token, the plan ID (get_plans calls), and the language (get_languages calls), in which you want the coverages to be displayed. Returns the benefits, cost and value, all in the language specified as a parameter.
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Fields Input
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
id_plan | string | 11 | (Mandatory) |
language | string | 3 | (Mandatory) |
Fields
{
"request" : "get_coverages",
"token" : "123456789ABC",
"language" : "spa",
"id_plan" : "1840"
}
Results
[
{
"valor_spa": "titulo",
"valor_eng": "title",
"id_benefit": "207",
"name": "Asistencia médica por accidente",
"language_id": "spa",
"extended_info": "Asistencia médica por accidente"
}
]
Common Error Codes
6021
: language is empty6022
: plan is empty6037
: all the fields are empty1030
: language not implemented1050
: plan not valid1005
: supplied token is invalid