changes_for_orders_reported (PUT)

This function modifies the details of an order, including its status, origin country, destination country, departure date, arrival date, and cost. Input parameters must include the token and Order Code. However, alterations are permissible only under the following conditions:

  • The order must be a maximum validity of four days.
  • The order cannot have active assistances.
  • The order must have been initially added through the report_order function (It applies changes to the fields that are completed).

  • Endpoint : preview.ilsbsys.com/apirest_v1/quote

Input Fields

Tag Name Type Size Priority
token string 16 (Mandatory)
codigo string 30 (Mandatory)
status entero 11 (Optional)
pais_origen string 2 (Optional)
pais_destino string 2 (Optional)
fecha_salida string
(DD/MM/YYYY)
11 (Optional)
fecha_retorno string
(DD/MM/YYYY)
11 (Optional)
costo decimal 10 (Optional)


Fields

{
    "request" : "changes_for_orders_reported",
    "token" : "123456789ABC",
    "codigo" : "TESTCODE-789988",
    "status" : "1",
    "pais_origen" : "VE",
    "pais_destino" : "1",
    "fecha_salida" : "01/01/2022",
    "fecha_retorno" : "02/02/2022",
    "costo" : "999",
}

Results

{
    "status": "OK"
}

Common Error Codes

  • 1005 : Invalid token
  • 1080 : Invalid territory
  • 1081 : Restricted territory
  • 1090 : Restricted origin
  • 1091 : Restricted country
  • 1247 : Days exceeding
  • 1248 : Undersized days in the plan
  • 2000 : Invalid date
  • 2001 : Invalid date from
  • 2004 : Date from earlier than system date
  • 3020 : Invalid date format
  • 3030 : Invalid date range
  • 6020 : Empty token
  • 6029 : Empty date of departure
  • 6030 : Return date empty