get_upgrade (GET)
This function retrieves the available upgrades for a specific plan. It takes three input parameters: the token, the ID of the plan, and the desired language for displaying the upgrades. It returns data on the upgrades, including their value and the type of calculation, all in the specified language passed as a parameter.
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
id_plan | string | 11 | (Mandatory) |
language | string | 3 | (Mandatory) |
Fields
{
"request" : "get_upgrade",
"token" : "123456789ABC",
"id_plan" : "1800",
"language" : "spa"
}
Results
[
{
"type_raider": "Valor",
"rd_calc_type": "Pasajero Especifico",
"id_raider": "135",
"cost_raider": "59.940",
"name_raider": "USD 9,000 - Cancelación Multi-causa",
"value_raider": "149.850"
},
{
"type_raider": "Valor",
"rd_calc_type": "Pasajero Especifico",
"id_raider": "152",
"cost_raider": "70.000",
"name_raider": "USD 7,000 - Cancelación Multi causa Comp",
"value_raider": "70.000"
},
{
"type_raider": "Valor",
"rd_calc_type": "Pasajero Especifico",
"id_raider": "151",
"cost_raider": "60.000",
"name_raider": "USD 6,000 - Cancelación Multi Causa Comp",
"value_raider": "60.000"
},
{
"type_raider": "Valor",
"rd_calc_type": "Pasajero Especifico",
"id_raider": "132",
"cost_raider": "39.960",
"name_raider": "USD 6,000 - Cancelación Multi-causa",
"value_raider": "99.900"
},
{
"type_raider": "Porcentage %",
"rd_calc_type": "Pasajero Especifico",
"id_raider": "137",
"cost_raider": "25.000",
"name_raider": "Upgrade de futura Mamá (25% de la cobertura médica, sin exceder USD 10,000)",
"value_raider": "25.000"
}
]
Common Error Codes
6021
: language is empty6022
: plan is empty1050
: plan not valid1005
: supplied token is invalid