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
Clyde
–
10 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:
[{
"code":"PL-STI-1",
"name":"Freedom - Trip Interruption - Single Trip",
"tripType":"SINGLE",
"genericName":"Trip Interruption",
"primaryCoverageType":"TRIPINT",
"coverages":[{
"type":"BENEFIT",
"category":"TRIPINT",
"basis":"PERINS",
"priceInputParameter":"SUMA"
}]
},
{
"code":"PL-STCAN-1",
"name":"Freedom - Trip Cancellation - Single Trip",
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.
Clyde
–
10 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.
{
"trip":{
"startDate":"2015-02-23",
"endDate":"2015-02-27",
"departureProvince":"AB",
"cost":3000,
"bookingDate":"2015-02-17"
},
"insuredPersons":[
{
"insuredType":"CANADIAN",
"insuredGroupType":"FAMILY",
"inHomeProvince":true,
"homeProvince":"AB",
"selectedPlans":[
{
"planCode":"PL-STI-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",
"insuredGroupType":"FAMILY",
"inHomeProvince":true,
"homeProvince":"AB",
"selectedPlans":[
{
"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",
"insuredGroupType":"FAMILY",
"inHomeProvince":true,
"homeProvince":"AB",
"selectedPlans":[
{
"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":425.61,
"transactionType":"PURCHASE",
"paymentType":"COLLECTED",
"paymentMethod":"SINGLE",
"currencyCode":"CAD"
}
]
}
matt
–
10 years ago
Thank you. And boy would it be great if this stuff was documented somewhere.
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:
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
Clyde – 10 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:
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.
Clyde – 10 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.
matt – 10 years ago
Thank you. And boy would it be great if this stuff was documented somewhere.
Clyde – 10 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.