get_order_price_fecha (GET)
This funtion gets plans and their upgrades based on the provided birth date. The required input parameters include the token, origin country ID (obtained from iso_country calls), and destination territory ID (WorldWide = "1", Europe = "2", Local = "9"), departure date (DD/MM/YYYY), return date (DD/MM/YYYY), number of passengers (as configured in the plan), and passengers' ages.
The response includes the duration of the trip, and a structured array containing each rider ID associated with the plan. This array includes the rider's description, type, specific value, calculation type, and order for calculation.
- Endpoint :
preview.ilsbsys.com/apirest_v1/information
Input Fields
Tag Name | Type | Size | Priority |
---|---|---|---|
token | string | 16 | (Mandatory) |
pais_origen | string | 4 | (Mandatory) |
territorio_destino | string | 4 | (Mandatory) |
fecha_salida | string (DD/MM/YYYY) |
11 | (Mandatory) |
fecha_llegada | string (DD/MM/YYYY) |
11 | (Mandatory) |
pasajeros | string | 22 | (Mandatory) |
fecha_nacimiento | array ([DD/MM/YYYY, DD/MM/YYYY]) |
22 | (Mandatory) |
Fields
{
"request" : "get_order_price_fecha",
"token" : "1234567890ABCDEF",
"pais_origen" : "AR",
"territorio_destino" : "2",
"fecha_salida" : "01/01/2022",
"fecha_llegada" : "08/01/2022",
"pasajeros" : "2",
"fecha_nacimiento" : ["01/01/1991","02/02/1992"]
}
Results
{
"fecha_salida": "01/01/2022",
"fecha_regreso": "08/01/2022",
"dias": "8",
"nacimientos": [
"01/01/1991",
"02/02/1992"
],
"planes": {
"1703": {
"name": "nuevaprueba",
"total_orden": "109.760",
"upgrade": [
{
"id_raider": "114",
"name_raider": "USD 250,000 en asistencia medica (dividido entre los 8 integrantes de la reserva x 2 semanas)",
"type_raider": "1",
"value_raider": "204.00",
"cost_raider": "89.62",
"rd_calc_type": "1",
"price_upgrade": "204.00",
"costo_upgrade": "89.62"
},
{
"id_raider": "70",
"name_raider": "USD 250,000 en asistencia medica (dividido entre los 8 integrantes de la reserva x 1 semana)",
"type_raider": "1",
"value_raider": "59.40",
"cost_raider": "59.40",
"rd_calc_type": "1",
"price_upgrade": "59.40",
"costo_upgrade": "59.40"
},
{
"id_raider": "44",
"name_raider": "USD 250,000 en asistencia medica (dividido entre los 4 integrantes de la reserva x 1 semana)",
"type_raider": "1",
"value_raider": "29.70",
"cost_raider": "29.70",
"rd_calc_type": "1",
"price_upgrade": "29.70",
"costo_upgrade": "29.70"
},
{
"id_raider": "47",
"name_raider": "Dias adicionales: hasta 8 dias mas por 4 pasajeros",
"type_raider": "1",
"value_raider": "7.55",
"cost_raider": "7.55",
"rd_calc_type": "1",
"price_upgrade": "7.55",
"costo_upgrade": "7.55"
},
{
"id_raider": "50",
"name_raider": "4 pasajeros mas por 8 dias, la cobertura sera de USD 12,000 no acumulativos",
"type_raider": "1",
"value_raider": "7.55",
"cost_raider": "7.55",
"rd_calc_type": "1",
"price_upgrade": "7.55",
"costo_upgrade": "7.55"
}
]
}}}
Common Error Codes
9015
: no results1005
: supplied token is invalid1060
: don't have price for selection1080
: territory is invalid1090
: country ID is invalid2000
: invalid date2004
: date precedes system date3030
: invalid date range5017
: no upgrades available6043
: the number of passengers is less than the number of provided birthdates