get_terms (GET)

This function returns the terms and conditions of a specific plan. It takes three input parameters: the token, the plan ID and language (obtained get_languages calls). It returns a string serialized in JSON format containing the ID, name, description of the plan, and a PDF link.

  • 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_terms",
    "token" : "123456789ABC",
    "id_plan" : "1800",
    "language" : "spa"
}

Results

{
    "id": "1800",
    "name": "USD 20.000 L. Econ.",
    "description": "USD 20.000 L. Econ.",
    "terms": "fasttravelassistance.ilstechnik.com/app/admin/server/php/files/120181204031219.pdf"
}

Common Error Codes

  • 6021 : language is empty
  • 6022 : plan is empty
  • 1050 : invalid plan
  • 4012 : conditions not found
  • 1030 : language not implemented
  • 1005 : supplied token is invalid