country_restricted (GET)
This function retrieves the restricted countries that are associated with a specific plan. It takes as input the token, the plan ID (get_plans calls), and the language (get_languages calls). It returns a string serialized in JSON format with the full name of the country and its ISO code (International Organization for Standardization).
- 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" : "country_restricted",
"token" : "123456789ABC",
"id_plan" : "1835",
"language" : "eng"
}
Results
[
{
"iso_country": "AW",
"description": "Aruba"
},
{
"iso_country": "BO",
"description": "Bolivia"
},
{
"iso_country": "CL",
"description": "Chile"
},
{
"iso_country": "CR",
"description": "Costa Rica"
},
{
"iso_country": "CU",
"description": "Cuba"
},
{
"iso_country": "EC",
"description": "Ecuador"
},
{
"iso_country": "SV",
"description": "El Salvador"
},
{
"iso_country": "GT",
"description": "Guatemala"
},
{
"iso_country": "HN",
"description": "Honduras"
},
{
"iso_country": "MX",
"description": "México"
},
{
"iso_country": "AN",
"description": "Antillas Holandesas"
},
{
"iso_country": "NI",
"description": "Nicaragua"
},
{
"iso_country": "PA",
"description": "Panamá"
},
{
"iso_country": "PY",
"description": "Paraguay"
},
{
"iso_country": "PE",
"description": "Perú"
},
{
"iso_country": "UY",
"description": "Uruguay"
}
]
Common Error Codes
1050
: plan not valid6021
: language is empty6022
: plan is empty1005
: supplied token is invalid