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 token1080
: Invalid territory1081
: Restricted territory1090
: Restricted origin1091
: Restricted country1247
: Days exceeding1248
: Undersized days in the plan2000
: Invalid date2001
: Invalid date from2004
: Date from earlier than system date3020
: Invalid date format3030
: Invalid date range6020
: Empty token6029
: Empty date of departure6030
: Return date empty