get_order_price_fecha_plan (GET)

This function retrieves the price for a specific plan based on the provided birth date. As input parameters, you must specify token, plan ID, origin country ID (obtained iso_country calls), destination territory ID (WorldWide = "1", Europe = "2", Local = "9"), departure date (DD/MM/AAAA), return date (DD/MM/AAAA), number of passengers (as configured in the plan), birth dates of the passengers (DD/MM/AAAA).

The plan must be active and exist in the platform. Returns the number of days of the trip, the total price of the request, and returns an arrangement with each raider id associated with the plan, its description, raider type, specific value, raider calculation type and raider value to calculate with order.

  • 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)
id_plan string 4 (Mandatory)


Fields

{
    "request" : "get_order_price_fecha_plan",
    "token" : "1DHE0JIHEACL",
    "pais_origen" : "AR",
    "territorio_destino" : "1",
    "fecha_salida" : "15/05/2019",
    "fecha_llegada" : "20/05/2019",
    "pasajeros" : "1",
    "fecha_nacimiento" : ["15/05/1990", "05/08/1990"],
    "id_plan" : "7499"
}

Results

 {
            "total_orden": "4.500",
            "idplan": "7499",
            "fecha_salida": "15/05/2019",
            "fecha_regreso": "20/05/2019",
            "dias": "6",
            "nacimientos": ["15/05/1990", "05/08/1990"],
            "upgrade": [{
                "id_raider": "228",
                "name_raider": "Asistencia médica por enfermedad preexistente Ultra Plus ",
                "type_raider": "2",
                "value_raider": "25",
                "rd_calc_type": "2",
                "benefit_special": null,
                "benefit_special_type": null,
                "price_upgrade": "0.00"
            }, {
                "id_raider": "312",
                "name_raider": "Asistencia para mascotas USD 5,000",
                "type_raider": "1",
                "value_raider": "14.00",
                "rd_calc_type": "2",
                "benefit_special": null,
                "benefit_special_type": null,
                "price_upgrade": "14.00"
            }, {
                "id_raider": "315",
                "name_raider": "Enfermedad crónica compensada\/capacidades limitadas",
                "type_raider": "2",
                "value_raider": "50",
                "rd_calc_type": "2",
                "benefit_special": null,
                "benefit_special_type": null,
                "price_upgrade": "0.00"
            }, {
                "id_raider": "333",
                "name_raider": "Iké - Asistencia para Mascotas USD 10.000,00",
                "type_raider": "1",
                "value_raider": "60.00",
                "rd_calc_type": "2",
                "benefit_special": null,
                "benefit_special_type": null,
                "price_upgrade": "60.00"
            }]
        }

Common Error Codes

  • 9015 : no results
  • 1005 : supplied token is invalid
  • 1050 : supplied plan is invalid
  • 1060 : don't have price for selection
  • 1080 : territory is invalid
  • 1090 : country ID is invalid
  • 2000 : invalid date
  • 2004 : date precedes system date
  • 3030 : invalid date range
  • 5017 : no upgrades available
  • 6043 : the number of passengers is less than the number of provided birthdates