TuGo API Forums

General

RSS Feed

Quoting PL-SPCK-2 with different trip values

    • matt
    • Topic created 8 years ago

    We're generating quotes for PL-SPCK-2 policies just fine but can't figure out how to input a trip value.

    We assume that "Sum Insured Before Departure" is essentially the price of the trip.

    If we retrieve a list of products from your system, it appears the possible "Sum Insured Before Departure" values are:

    0, 400, 700, 1000, 1400, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000, 10000

    When we request a quote for a PL-SPCK-2 policy It appears the default trip value is 1000.

    We would like a default value of 1500. And, we'd like more granularity between 3000 and 10000.

    How do we pass a "Sum Insured Before Departure" when requesting a quote?

    Are we really limited to only the values in that set? Or can we input any value between 0 - 10000?

    Message edited by matt 8 years ago

  1. Clyde8 years ago

    Hi Matt,

    For single trip plans such as PL-SPCK-2 (Freedom-All Inclusive-Single Trip) the trip's start date and end date will be used as the trip duration value. For annual/multi trip plans a trip values can be either supplied or the webservice will round to the nearest trip value for that plan based of the trip's duration.

    Yes, you can assume that Sum Insured Before Departure is the price of the trip.

    At the moment we can not change the default for the Sum Insured Before Departure however you may supply your own defaults as part of the pricing request. See example below.

    For pricing options you may examine the plan and observe that some plans have a min and max range. Any value inbetween the range will round to the highest value in its range. For example a value of 350 will round to 400. Note that for $3,000 to $10,000 there are $100 increments (not documented).

    Example of pricesInputs when retrieving a product.

         "priceInputs":          [
                        {
               "code": "SUMP",
               "name": "Sum Insured Before Dept - 0 to 10000 w/1400",
               "type": "SUMP",
               "inputFieldType": "SELECT",
               "description": "0, 400, 700, 1000, 1400, 2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000, 3100+",
               "values":                [
                                                   {
                     "label": "$0",
                     "valueMin": 0,
                     "valueMax": 0,
                     "default": false
                  },
                  {
                     "label": "$400",
                     "valueMin": 1,
                     "valueMax": 400,
                     "default": false
                  },
                  .            
                  .
    

    Sample of pricing request(1 person, pricing 2 plans)

    {
        "productLineCode":"PR-FDM-1",
        "trip":{
            "startDate":"2015-5-20", 
            "endDate":"2015-5-25"
        }, 
        "insuredPersons":[
            {  
                "insuredType":"CANADIAN",
                "homeProvince":"BC",
                "inHomeProvince": true, 
                "birthDate":"1990-03-10",
                "plansToPrice" : [
                    {"planCode": "PL-SPCK-2", "priceInputParameters":[{"code":"SUMP","value": 1000}]},
                    {"planCode": "PL-SMED-1", "priceInputParameters":[{"code":"PM-DED-1","value": 0}]}
                ]
            }
        ]
    }
    

    Note that the priceInputParameter's code is the code of the priceInput when you retrieve a product. Clyde,

[ Page 1 of 1 ]