Policy Change
SAP Commerce Cloud, financial services accelerator enables registered users to modify their existing auto insurance policies by adding or removing additional coverages, changing mileage or adding additional drivers.
Integration Package
| Integration Flow (iFlow): |
|
| Value Mappings | SAP Commerce to S4HANA Value Mapping |
Overview
Registered users can update their existing auto insurance policies by adding or removing additional coverages, changing mileage, or adding additional drivers. Users can preview a new quote calculated based on the previous premium and the changes they just made. Users can then decide whether to continue and submit the policy change or cancel the request. If they are satisfied with the new premium and decide to apply desired changes to the policy, the premium becomes effective as soon as the request is accepted and the new policy version is replicated.
Integration Object
The integration objects are defined in the projectdata-changeProcess-outbound.impex file in sappqmintegrationfacades extension.
# ----------------------------------------------------------------------- # Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. # ----------------------------------------------------------------------- INSERT_UPDATE IntegrationObject; code[unique = true]; ; OutboundCancelFSChangeRequest ; OutboundCreateFSChangeRequest ; OutboundSubmitFSChangeRequest ; OutboundSimulateFSChangeRequest INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]; type(code) ; OutboundCancelFSChangeRequest ; FSChangeRequest ; FSChangeRequest ; ; OutboundCancelFSChangeRequest ; InsurancePolicy ; InsurancePolicy ; ; OutboundCreateFSChangeRequest ; FSChangeRequest ; FSChangeRequest ; ; OutboundCreateFSChangeRequest ; InsurancePolicy ; InsurancePolicy ; ; OutboundSubmitFSChangeRequest ; FSChangeRequest ; FSChangeRequest ; ; OutboundSimulateFSChangeRequest ; FSChangeRequest ; FSChangeRequest ; ; OutboundSimulateFSChangeRequest ; InsurancePolicy ; InsurancePolicy ; ; OutboundSimulateFSChangeRequest ; User ; User ; ; OutboundSimulateFSChangeRequest ; Currency ; Currency ; ; OutboundSimulateFSChangeRequest ; Product ; Product ; ; OutboundSimulateFSChangeRequest ; Category ; Category ; ; OutboundSimulateFSChangeRequest ; Coverage ; Coverage ; ; OutboundSimulateFSChangeRequest ; CoverageType ; CoverageType ; ; OutboundSimulateFSChangeRequest ; FSPolicyStatus ; FSPolicyStatus ; ; OutboundSimulateFSChangeRequest ; FSPaymentFrequency ; FSPaymentFrequency ; INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]; autoCreate[default = false] ; OutboundCancelFSChangeRequest:FSChangeRequest ; submissionNumber ; FSChangeRequest:submissionNumber ; ; true ; ; OutboundCreateFSChangeRequest:FSChangeRequest ; effectiveDate ; FSChangeRequest:effectiveDate ; ; ; ; OutboundCreateFSChangeRequest:FSChangeRequest ; insurancePolicy ; FSChangeRequest:insurancePolicy ; OutboundCreateFSChangeRequest:InsurancePolicy ; ; ; OutboundCreateFSChangeRequest:InsurancePolicy ; policyId ; InsurancePolicy:policyId ; ; true ; ; OutboundCreateFSChangeRequest:InsurancePolicy ; contractId ; InsurancePolicy:contractId ; ; ; ; OutboundSubmitFSChangeRequest:FSChangeRequest ; quoteId ; FSChangeRequest:quoteId ; ; true ; ; OutboundSimulateFSChangeRequest:FSChangeRequest ; quoteId ; FSChangeRequest:quoteId ; ; true ; ; OutboundSimulateFSChangeRequest:FSChangeRequest ; insurancePolicy ; FSChangeRequest:changedPolicy ; OutboundSimulateFSChangeRequest:InsurancePolicy ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; policyId ; InsurancePolicy:policyId ; ; true ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; contractId ; InsurancePolicy:contractId ; ; true ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; versionNumber ; InsurancePolicy:versionNumber ; ; true ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; technicalId ; InsurancePolicy:technicalId ; ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; policyStartDate ; InsurancePolicy:policyStartDate ; ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; policyExpiryDate ; InsurancePolicy:policyExpiryDate ; ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; policyEffectiveDate ; InsurancePolicy:policyEffectiveDate ; ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; premiumAmount ; InsurancePolicy:premiumAmount ; ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; user ; InsurancePolicy:user ; OutboundSimulateFSChangeRequest:User ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; currency ; InsurancePolicy:currency ; OutboundSimulateFSChangeRequest:Currency ; ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; category ; InsurancePolicy:category ; OutboundSimulateFSChangeRequest:Category ; ; ; OutboundSimulateFSChangeRequest:User ; externalId ; User:externalId ; ; true ; ; OutboundSimulateFSChangeRequest:Currency ; isocode ; Currency:isocode ; ; true ; ; OutboundSimulateFSChangeRequest:Category ; code ; Category:code ; ; true ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; coverages ; InsurancePolicy:coverages ; OutboundSimulateFSChangeRequest:Coverage ; ; ; OutboundSimulateFSChangeRequest:Coverage ; coverageProduct ; Coverage:coverageProduct ; OutboundSimulateFSChangeRequest:Product ; ; ; OutboundSimulateFSChangeRequest:Coverage ; coverageAmount ; Coverage:coverageAmount ; ; OutboundSimulateFSChangeRequest:Coverage ; coverageId ; Coverage:coverageId ; ; true ; ; OutboundSimulateFSChangeRequest:Coverage ; technicalId ; Coverage:technicalId ; ; ; ; OutboundSimulateFSChangeRequest:Product ; code ; Product:code ; ; true ; ; OutboundSimulateFSChangeRequest:CoverageType ; code ; CoverageType:code ; ; true ; ; OutboundSimulateFSChangeRequest:Coverage ; coverageType ; Coverage:coverageType ; OutboundSimulateFSChangeRequest:CoverageType ; ; ; OutboundSimulateFSChangeRequest:FSPolicyStatus ; code ; FSPolicyStatus:code ; ; true ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; policyStatus ; InsurancePolicy:policyStatus ; OutboundSimulateFSChangeRequest:FSPolicyStatus ; ; ; OutboundSimulateFSChangeRequest:FSPaymentFrequency ; code ; FSPaymentFrequency:code ; ; true ; ; OutboundSimulateFSChangeRequest:InsurancePolicy ; paymentFrequency ; InsurancePolicy:paymentFrequency ; OutboundSimulateFSChangeRequest:FSPaymentFrequency ; ;
You can view and modify the integration object in the Integration UI Tool perspective of Backoffice, under Modelling node.
Example Payload and Response
The following code snipetts show the example payload requests for each change that can be applied to the policy.
Adding an Additional Driver
Driver without the technicalId attribute represents the newly added driver.
Simulation Payload Request
{
"quoteInformation": {
"paymentFrequency": {
"code": "MONTHLY"
},
"startDate": "2020-08-16",
"insuredObjects": [
{
"childInsuredObjects": [
{
"driverLicenceDate": "2020-08-01",
"driverCategory": "Main",
"insuredObjectType": "DRIVER",
"driverGender": "Female",
"driverMaritalStatus": "Single",
"insuredObjectId": "00014292",
"customerId": "false",
"dateOfBirth": "1990-08-01",
"technicalId": "1-0-0-0-1-1"
},
{
"driverLicenceDate": "2020-08-01",
"driverCategory": "Occasional",
"insuredObjectType": "DRIVER",
"driverGender": "Male",
"driverMaritalStatus": "Single",
"insuredObjectId": "00014293",
"dateOfBirth": "0190-08-01"
}
],
"vehicleYear": "2017",
"vehicleUsage": "Personal",
"vehicleOwnerPostalCode": "1111",
"insuredObjectType": "AUTO",
"insuredObjectId": "00014291",
"vehicleModel": "Veyron",
"vehicleValue": "150000",
"vehiclePurchaseDate": "2020-08-01",
"vehicleAnnualMileage": "100",
"vehicleMake": "Bugatti",
"vehicleType": "BugattiVeyron16.4GrandSport",
"technicalId": "1-0-0-0-1"
}
]
},
.....
Response
{
"coverages": [
{
"premiumAfterTax": "141.62",
"premiumBeforeTax": "141.62",
"technicalID": "1-0-1"
},
{
"premiumAfterTax": "8.08",
"premiumBeforeTax": "8.08",
"technicalID": "1-0-2"
}
],
"quoteInformation": {
"premiumAfterTax": "149.70",
"premiumBeforeTax": "149.70"
}
}
Adding and Removing Coverage
In the objects from the list of coverages, the flag "delete": "true" will be present for deleted coverages, the existing coverages will have the technicalId attribute, while the newly added coverages will be without the technicalId attribute.
Simulation Payload Request
{
"insurancePolicy": {
"premiumAmount": "100.0",
"policyEffectiveDate": "2020-10-13",
"policyExpiryDate": "2021-10-13",
"insuredObjects": {
"childInsuredObjects": {
"driverLicenceDate": "2019-10-29",
"driverCategory": "Main",
"insuredObjectType": "DRIVER",
"insuredObjectId": "43d052f1-12a5-4e19-a6d7-46834b37fe18",
"dateOfBirth": "1989-10-28",
"technicalId": "1-0-0-0-1-1"
},
"vehicleYear": "2017",
"insuredObjectType": "AUTO",
"insuredObjectId": "3e016dec-6391-4570-a1af-75a563f80614",
"vehicleModel": "Veyron",
"vehicleValue": "7800.00",
"vehiclePurchaseDate": "2019-09-30",
"vehicleAnnualMileage": "7800",
"vehicleMake": "Bugatti",
"vehicleType": "BugattiVeyron16.4GrandSport",
"technicalId": "1-0-0-0-1"
},
"policyStartDate": "2020-10-13",
"policyStatus": { "code": "ACTIVE" },
"paymentFrequency": { "code": "MONTHLY" },
"coverages": [
{
"coverageId": "107d4be6-6f04-4edf-acd7-10c08bfea85e",
"coverageType": { "code": "ADDITIONAL" },
"technicalId": "1-0-2",
"coverageProduct": {
"features": {
"code": "deductible",
"type": "deductible",
"amount": "2500.0"
},
"code": "AUTO_COLLISION_COVERAGE_SILVER"
}
},
{
"coverageId": "e3cce1b6-9ae2-4512-942c-a47b8e506bfb",
"coverageType": { "code": "MAIN" },
"technicalId": "1-0-1",
"coverageProduct": {
"features": [
{
"code": "limit",
"type": "bodilyinjurylimit",
"amount": "1000000.0"
},
{
"code": "limit",
"type": "propertydamagedlimit",
"amount": "50000.0"
}
],
"code": "AUTO_TPL_SILVER"
}
},
{
"coverageId": "00025088",
"coverageType": { "code": "ADDITIONAL" },
"coverageProduct": { "code": "AUTO_UNINSURED_COVERAGE_SILVER" }
},
{
"coverageId": "b36ff147-8711-4fca-acb1-58b53747de80",
"coverageType": { "code": "ADDITIONAL" },
"delete": "true",
"technicalId": "1-0-3",
"coverageProduct": { "code": "AUTO_ROADSIDE_ASSISTANCE_SILVER" }
}
],
"versionNumber": "1",
"policyId": "00002210000895111",
"contractId": "00002310001135403",
"currency": { "isocode": "EUR" },
"category": { "code": "insurances_auto" },
"user": { "externalId": "FSBP099007" },
"technicalId": "1"
},
"mainProduct": "AUTO_INSURANCE_SILVER"
}
}
Response
{
"coverages": [
{
"premiumAfterTax": "196.65",
"premiumBeforeTax": "196.65",
"technicalID": "1-0-1"
},
{
"premiumAfterTax": "2.89",
"premiumBeforeTax": "2.89",
"technicalID": "1-0-2"
}
],
"quoteInformation": {
"premiumAfterTax": "199.54",
"premiumBeforeTax": "199.54"
}
}
Creating Change Bussiness Request
{
"effectiveDate": "2021-02-04",
"insurancePolicy": {
"contractId": "00002310001369008",
"policyId": "00002210001090295"
},
"mainProduct": "AUTO_INSURANCE_BRONZE"
}
Response
{
"submissionNumber": "34651",
"quoteId": "34695"
}
Submitting Changes
{
"quoteId": "34881",
"mainProduct": "AUTO_INSURANCE_BRONZE"
}
Response
{"requestStatus":"APPROVED"}
Closing the Quote
When the customer leaves the simulation page, SAP Cloud Integration is called with the following payload to close the open quote:
{"submissionNumber":"34741"}
Response
{"requestStatus":"Success"}