request_changes (PUT)
This function requests the modification of a voucher or order. For the request to be successful, the voucher must exist, be active, and only this one can be modified by the same user who issued it. Additionally, it must have the same number of passengers as the original order. An 'ok' message is returned if the operation is successful, or an error message if it is unsuccessful.
- Endpoint :
preview.ilsbsys.com/apirest_v1/quote
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
codigo | string | 30 | (Mandatory) |
referencia | string | 100 | (Optional) |
pais | string | 4 | (Mandatory) |
nombre_contacto | string | 300 | (Mandatory) |
telefono_contacto | string | 50 | (Mandatory) |
email_contacto | string | 50 | (Mandatory) |
emision | string | 1 | (Mandatory) |
lenguaje | string | 3 | (Mandatory) |
pasajeros | string | 11 | (Mandatory) |
nombres | array | 300 | (Mandatory) |
apellidos | array | 300 | (Mandatory) |
documentos | array | 50 | (Mandatory) |
emails | array (only the email of the first passenger is REQUIRED.) |
300 | (Mandatory) |
condiciones_medicas | array | 300 | (Mandatory) |
telefonos | array | 300 | (Mandatory) |
Fields
{
"request" : "request_changes",
"token" : "123456789ABC",
"codigo" : "TESTCODE-789988",
"referencia" : "12321231",
"pais" : "VE",
"nombre_contacto" : "example contact",
"telefono_contacto" : "12344321",
"email_contacto" : "example@email.com",
"emision" : "1",
"lenguaje" : "spa",
"pasajeros" : "1",
"nombres" : ["Alberto"],
"apellidos" : ["Rodriguez"],
"documentos" : ["1234431"],
"emails" : ["email@contact.com"],
"condiciones_medicas" : ["ninguna"],
"telefonos" : ["123442321"]
}
Results
{
"status": "OK"
}
Common Error Codes
1005
: Invalid token1030
: Language not implemented1050
: Plan not valid1062
: Invalid birthday1080
: Invalid Territory1090
: Restricted origin1100
: Invalid ID agent1246
: Age limit exceeded2001
: Invalid departure date2002
: Invalid arrival date2004
: Date from earlier than system date3030
: Invalid date range4004
: Invalid email contact4005
: Empty passenger name4006
: Empty passenger document4007
: Empty passenger surname4008
: Empty passenger phone4010
: Empty passenger email4011
: Invalid passenger email5005
: Birthday required5006
: Empty medical conditions5012
: Required passenger email6021
: Emtpy language6022
: Empty plan6025
: Empty passenger phone6026
: Empty amount of passengers6027
: Emtpy origin6028
: Empty destination territory6029
: Empty date of departure6030
: Empty return date6034
: Empty currency6036
: Empty contact name6037
: All the fields are empty6045
: Order data already exists6054
: Code already exists9011
: Exchange rate invalid9032
: Invalid beneficiary name format9034
: Phone beneficiary not valid9035
: Last name beneficiary not valid9060
: Invalid name contact9061
: Empty token9120
: Empty master voucher9121
: Master voucher invalid9122
: Voucher master differs from code