• Register

TuGo API Forums

General

RSS Feed

Selling Trip Cancel/Trip Interrupt to Families

    • matt
    • Topic created 10 years ago

    I'm trying to sell PL-STI-1,PL-STCAN-1,PL-SADD-1,PL-SMED-3 to a family of three. I can quote those products but I can't purchase them. When I try to purchase them your system says:

    Plans with overlapping coverage categories can't be sold together, 
    plan one-Freedom - Trip Cancellation - Single Trip, plan two-Freedom - Trip Interruption - Single Trip.
    

    Your system is telling me we cannot sell TC and TI together. But our contact at TU says we can sell TC and TI together.

    So I assume I'm doing something wrong. There's no example of selling multiple products in the documentation so I'm not sure what that something might be.

    My request:

    {"policyInfo":{},"trip":{"startDate":"2015-02-23","endDate":"2015-02-27","departureProvince":"AB","cost":3000,"bookingDate":"2015-02-17"},"insuredPersons":[{"insuredType":"CANADIAN","inHomeProvince":true,"homeProvince":"AB","selectedPlans":[{"planCode":"PL-STI-1"},{"planCode":"PL-STCAN-1"},{"planCode":"PL-SADD-1"},{"planCode":"PL-SMED-3"}],"firstName":"Matt","lastName":"Fam","birthDate":"1980-01-01","phoneNumbers":[{"number":"5048552666"}],"addresses":[{"addressLine1":"123 Main St","city":"Calgary","country":"CA","province":"AB","postalCode":"H0H 0H0","type":"MAIL"}]},{"insuredType":"CANADIAN","inHomeProvince":true,"homeProvince":"AB","selectedPlans":[{"planCode":"PL-STI-1"},{"planCode":"PL-STCAN-1"},{"planCode":"PL-SADD-1"},{"planCode":"PL-SMED-3"}],"firstName":"June","lastName":"Fam","birthDate":"1990-01-01","phoneNumbers":[{"number":"5048552666"}],"addresses":[{"addressLine1":"123 Main St","city":"Calgary","country":"CA","province":"AB","postalCode":"H0H 0H0","type":"MAIL"}]},{"insuredType":"CANADIAN","inHomeProvince":true,"homeProvince":"AB","selectedPlans":[{"planCode":"PL-STI-1"},{"planCode":"PL-STCAN-1"},{"planCode":"PL-SADD-1"},{"planCode":"PL-SMED-3"}],"firstName":"Jennie","lastName":"Fam","birthDate":"1999-01-01","phoneNumbers":[{"number":"5048552666"}],"addresses":[{"addressLine1":"123 Main St","city":"Calgary","country":"CA","province":"AB","postalCode":"H0H 0H0","type":"MAIL"}]}],"payments":[{"amount":678.81,"transactionType":"PURCHASE","paymentStatus":"APPROVED","paymentType":"COLLECTED","paymentMethod":"SINGLE","currencyCode":"CAD"}]}

    Message edited by matt 10 years ago

  1. Clyde10 years ago

    Matt,

    Overlapping coverages occur when one tries to price/purchase plans with the same coverage. So in this case if you examine the plans while making a call to the products endpoint you will get a response similar to the following:

    1. [{
    2.    "code": "PL-STI-1",
    3.    "name": "Freedom - Trip Interruption - Single Trip",
    4.    "tripType": "SINGLE",
    5.    "genericName": "Trip Interruption",
    6.    "primaryCoverageType": "TRIPINT",
    7.    "coverages": [   {
    8.       "type": "BENEFIT",
    9.       "category": "TRIPINT",
    10.       "basis": "PERINS",
    11.       "priceInputParameter": "SUMA"
    12.    }]
    13. },
    14. {  
    15.    "code":"PL-STCAN-1",
    16.    "name":"Freedom - Trip Cancellation - Single Trip",
    17.    "tripType":"SINGLE",
    18.    "genericName":"Trip Cancellation/Trip Interruption",
    19.    "primaryCoverageType":"TRIPCAN",
    20.    "coverages":[  
    21.       {  
    22.          "type":"BENEFIT",
    23.          "category":"TRIPCAN",
    24.          "basis":"PERINS",
    25.          "priceInputParameter":"SUMP"
    26.       },
    27.       {  
    28.          "type":"BENEFIT",
    29.          "category":"TRIPINT",
    30.          "basis":"PERINS",
    31.          "valueMax":25000
    32.       }
    33.    ]
    34. }]

    notice for the two plans there are a list of coverages. When purchasing a plan there can be no overlapping coverages because we do not want the customer to buy redundant coverages. I guess there is a mistake in the naming. Trip Cancellation includes trip cancellation and trip Trip Interruption.

  2. Clyde10 years ago

    Hi Matt,

    For the purchasing you also most had it right. Simply remove the PL-STI-1 plan from your selected plans and change the payment amount. That should do the trick.

    try the following request. Keep in mind if a person is part of a family you have to set the insuredGroupType variable to FAMILY. This will tell the pricing service to apply family pricing.

    1. {  
    2.    "trip":{  
    3.       "startDate":"2015-02-23",
    4.       "endDate":"2015-02-27",
    5.       "departureProvince":"AB",
    6.       "cost":3000,
    7.       "bookingDate":"2015-02-17"
    8.    },
    9.    "insuredPersons":[  
    10.       {  
    11.          "insuredType":"CANADIAN",
    12.          "insuredGroupType":"FAMILY",
    13.          "inHomeProvince":true,
    14.          "homeProvince":"AB",
    15.          "selectedPlans":[  
    16.             {  
    17.                "planCode":"PL-STI-1"
    18.             },
    19.             {  
    20.                "planCode":"PL-SADD-1"
    21.             },
    22.             {  
    23.                "planCode":"PL-SMED-3"
    24.             }
    25.          ],
    26.          "firstName":"Matt",
    27.          "lastName":"Fam",
    28.          "birthDate":"1980-01-01",
    29.          "phoneNumbers":[  
    30.             {  
    31.                "number":"5048552666"
    32.             }
    33.          ],
    34.          "addresses":[  
    35.             {  
    36.                "addressLine1":"123 Main St",
    37.                "city":"Calgary",
    38.                "country":"CA",
    39.                "province":"AB",
    40.                "postalCode":"H0H 0H0",
    41.                "type":"MAIL"
    42.             }
    43.          ]
    44.       },
    45.       {  
    46.          "insuredType":"CANADIAN",
    47.          "insuredGroupType":"FAMILY",
    48.          "inHomeProvince":true,
    49.          "homeProvince":"AB",
    50.          "selectedPlans":[  
    51.             {  
    52.                "planCode":"PL-STCAN-1"
    53.             },
    54.             {  
    55.                "planCode":"PL-SADD-1"
    56.             },
    57.             {  
    58.                "planCode":"PL-SMED-3"
    59.             }
    60.          ],
    61.          "firstName":"June",
    62.          "lastName":"Fam",
    63.          "birthDate":"1990-01-01",
    64.          "phoneNumbers":[  
    65.             {  
    66.                "number":"5048552666"
    67.             }
    68.          ],
    69.          "addresses":[  
    70.             {  
    71.                "addressLine1":"123 Main St",
    72.                "city":"Calgary",
    73.                "country":"CA",
    74.                "province":"AB",
    75.                "postalCode":"H0H 0H0",
    76.                "type":"MAIL"
    77.             }
    78.          ]
    79.       },
    80.       {  
    81.          "insuredType":"CANADIAN",
    82.          "insuredGroupType":"FAMILY",
    83.          "inHomeProvince":true,
    84.          "homeProvince":"AB",
    85.          "selectedPlans":[  
    86.             {  
    87.                "planCode":"PL-STCAN-1"
    88.             },
    89.             {  
    90.                "planCode":"PL-SADD-1"
    91.             },
    92.             {  
    93.                "planCode":"PL-SMED-3"
    94.             }
    95.          ],
    96.          "firstName":"Jennie",
    97.          "lastName":"Fam",
    98.          "birthDate":"1999-01-01",
    99.          "phoneNumbers":[  
    100.             {  
    101.                "number":"5048552666"
    102.             }
    103.          ],
    104.          "addresses":[  
    105.             {  
    106.                "addressLine1":"123 Main St",
    107.                "city":"Calgary",
    108.                "country":"CA",
    109.                "province":"AB",
    110.                "postalCode":"H0H 0H0",
    111.                "type":"MAIL"
    112.             }
    113.          ]
    114.       }
    115.    ],
    116.    "payments":[  
    117.       {  
    118.          "amount":425.61,
    119.          "transactionType":"PURCHASE",
    120.          "paymentType":"COLLECTED",
    121.          "paymentMethod":"SINGLE",
    122.          "currencyCode":"CAD"
    123.       }
    124.    ]
    125. }
  3. matt10 years ago

    Thank you. And boy would it be great if this stuff was documented somewhere.

  4. Clyde10 years ago

    http://developer.tugroup.com/docs/read/travel_insurance/v2/policies#insuredPerson

    selectedPlans collection of InsuredPlan objects A collection of all plans that are included in the policy.

[ Page 1 of 1 ]