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 token
  • 1030 : Language not implemented
  • 1050 : Plan not valid
  • 1062 : Invalid birthday
  • 1080 : Invalid Territory
  • 1090 : Restricted origin
  • 1100 : Invalid ID agent
  • 1246 : Age limit exceeded
  • 2001 : Invalid departure date
  • 2002 : Invalid arrival date
  • 2004 : Date from earlier than system date
  • 3030 : Invalid date range
  • 4004 : Invalid email contact
  • 4005 : Empty passenger name
  • 4006 : Empty passenger document
  • 4007 : Empty passenger surname
  • 4008 : Empty passenger phone
  • 4010 : Empty passenger email
  • 4011 : Invalid passenger email
  • 5005 : Birthday required
  • 5006 : Empty medical conditions
  • 5012 : Required passenger email
  • 6021 : Emtpy language
  • 6022 : Empty plan
  • 6025 : Empty passenger phone
  • 6026 : Empty amount of passengers
  • 6027 : Emtpy origin
  • 6028 : Empty destination territory
  • 6029 : Empty date of departure
  • 6030 : Empty return date
  • 6034 : Empty currency
  • 6036 : Empty contact name
  • 6037 : All the fields are empty
  • 6045 : Order data already exists
  • 6054 : Code already exists
  • 9011 : Exchange rate invalid
  • 9032 : Invalid beneficiary name format
  • 9034 : Phone beneficiary not valid
  • 9035 : Last name beneficiary not valid
  • 9060 : Invalid name contact
  • 9061 : Empty token
  • 9120 : Empty master voucher
  • 9121 : Master voucher invalid
  • 9122 : Voucher master differs from code