get_plan_category (GET)
This function returns the categories of plans. It requires only two input parameters: the token and the language (get_languages calls) in which you want to retrieve the names of the categories. It returns the ID of each category along with its corresponding name.
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
language | string | 3 | (Mandatory) |
Fields
{
"request" : "get_plan_category",
"token" : "123456789ABC",
"language" : "spa"
}
Results
[
{
"name_plan": "Larga Estadia",
"id_plan_categoria": "22"
},
{
"name_plan": "Anuales - Multiviajes",
"id_plan_categoria": "23"
},
{
"name_plan": "Viajes por día",
"id_plan_categoria": "24"
},
{
"name_plan": "Estudiantil",
"id_plan_categoria": "27"
},
{
"name_plan": "Catpruebaesp",
"id_plan_categoria": "28"
}
]
Common Error Codes
6021
: Empty language1030
: Language not implemented1040
: There's no plan category1005
: supplied token is invalid