report_order (PUT)
This function adds an order in the system. The required input parameters are:
- the token
- departure date (DD/MM/AAAA)
- arrival date (DD/MM/AAAA)
- reference
- reference id of the plan
- id destination territory (get_regions calls)
- country of origin (get_countries calls)
- exchange rate
- ISO currency code (get_currencies calls)
- number of passengers or beneficiaries
- date of birth of the beneficiaries (DD/MM/AAAA)
- number of documents of beneficiaries
- names of beneficiaries
- lastnames of beneficiaries
- phone number of beneficiaries
- emails beneficiaries
- emergency contact name
- emergency contact phone
- email contact emergency
- medical observations
- cost
- general considerations
- emission code
- language (get_languages calls)
Returns 'ok' when the order is processed correctly.
-
Observation. In the input parameter 'id_plan' can be issued with the code of the Plan Id code (generated by the system) or the Public Id code (indicated by the customer).
-
Endpoint :
preview.ilsbsys.com/apirest_v1/quote
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
codigo | string | 30 | (Mandatory) |
fecha_salida | string (DD/MM/YYYY) |
11 | (Mandatory) |
fecha_llegada | string (DD/MM/YYYY) |
11 | (Mandatory) |
referencia | string | 100 | (Optional) |
id_plan | string | 11 | (Mandatory) |
pais_destino | string | 4 | (Mandatory) |
pais_origen | string | 4 | (Mandatory) |
moneda | string | 3 | (Mandatory) |
tasa_cambio | string | 11 | (Mandatory) |
pasajeros | string | 11 | (Mandatory) |
nacimiento | array | 50 | (Mandatory) |
documentos | array | 50 | (Mandatory) |
nombres | array | 300 | (Mandatory) |
apellidos | array | 300 | (Mandatory) |
telefonos | array | 300 | (Mandatory) |
correos | array | 300 | (Mandatory) |
condiciones_med | array | 300 | (Mandatory) |
nombre_contacto | string | 300 | (Mandatory) |
telefono_contacto | string | 50 | (Mandatory) |
email_contacto | string | 50 | (Mandatory) |
costo | string | 4 | (Mandatory) |
consideraciones_generales | string | 50 | (Mandatory) |
lenguage | string | 3 | (Mandatory) |
Fields
{
"request" : "report_order",
"token" : "123456789ABC",
"codigo" : "FT-K21JDD",
"fecha_salida" : "01/01/2022",
"fecha_llegada" : "02/02/2022",
"referencia" : "REFEXAMPLE1234",
"id_plan" : "1835",
"pais_destino" : "1",
"pais_origen" : "AR",
"moneda" : "usd",
"tasa_cambio" : "1",
"pasajeros" : "1",
"nacimientos" : ["01/01/1991"],
"documentos" : ["12344321"],
"nombres" : ["Rodrigo"],
"apellidos" : ["Aristigueta"],
"telefonos" : ["5753544243"],
"correos" : ["correo@cliente.com"],
"condiciones_med" : ["ninguna"],
"nombre_contacto" : "Alfredo Rodriguez",
"telefono_contacto" : "123455432",
"email_contacto" : "correo@contacto.com",
"costo" : "4423",
"consideraciones_generales" : "ninguna",
"lenguaje" : "spa"
}
Results
{
"status": "OK",
"El valor de cambio fue ajustado a:": "5,000.00"
}
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