get_voucher (GET)
This function returns the data of an order. It takes as input parameters, the token and voucher code. Returns all serialized data in JSON format. If token is valid and the voucher is active, expired and exists; otherwise it will return the serialized data (JSON) with the error number and its message.
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
codigo | string | 30 | (Mandatory) |
Fields
{
"request" : "get_voucher",
"token" : "123456789ABC",
"codigo" : "EXMPL-1234"
}
Results
[
{
"id": "9568",
"origen": "CO",
"destino": "XX",
"salida": "2019-02-01",
"retorno": "2019-02-10",
"programaplan": "Viajes por día",
"nombre_contacto": "pruena",
"email_contacto": "prue@ilsols.com",
"comentarios": "",
"telefono_contacto": "57-845-545-5",
"producto": "1745",
"agencia": "2267",
"nombre_agencia": "Fast Travel Assistance",
"total": "33.800",
"codigo": "FA-420BEA",
"fecha": "2018-12-05",
"vendedor": "10702",
"cantidad": "1",
"status": "3",
"des_status": "Expirado",
"es_emision_corp": "0",
"origin_ip": "190.43.20.124",
"alter_cur": "0",
"tasa_cambio": "0.000",
"family_plan": "no",
"referencia": ""
}
]
Common Error Codes
9015
: no results1005
: supplied token is invalid