active_pre_order (PUT)
This function requests the activation of a voucher or order. For the voucher to be successful, it must exist, be in Pre-order and can only be activated by the user who issued the pre-order. As input parameters, the token and the number of the voucher or order to be activated are requested. As output, the message is returned if it was successful or there was an error in that case.
- Endpoint :
preview.ilsbsys.com/apirest_v1/quote
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
codigo | string | 11 | (Mandatory) |
upgrade | array | 3 | (Mandatory) |
Specified Plan
Adds an upgrade to the specified order
Fields
{
"request" : "active_pre_order",
"token" : "123456789ABC",
"codigo" : "FT-K21JDD"
}
Results
{
"status": "OK",
"link": "https://preview.ilsbsys.com/app/reports/reporte_orderventas.php?codigo=-2J4I74&selectLanguage=es&broker_sesion=2267"
}
To decode this answer on the client side in an arrangement if desired, apply the json_decode () function in php or similar programming language you use.
Common Error Codes
6037
: Todos los campos estan vacĂos
1020
: Voucher no encontrado
9520
: Voucher no es una pre-order