You are here:
Set Up an Integration Procedure to Call an External Rating System
To use Vlocity Insurance Open Quoting Architecture you need to create an integration procedure that gathers the important information your external policy administration system can use to rate or price the quote. This integration procedure is included in the product and is triggered when a quote with that product included is rerated using the Rate Now button.
Before You Begin
Make sure that your org is set up to call out to the external system’s endpoint by adding the site to the Remote Site Settings.
-
Create an Integration Procedure.
Tip
Make note of the Type/SubType. You need to add this information to the product you create.
-
Use a Remote Action to invoke
InsQuoteService.getQuoteDetail with the Remote Option
Key/Value pair
isForExternal=trueto prepare the Quote JSON to send to the external system. -
Send the Quote JSON to the external system for the rating in one of these two
ways:
-
Use a Remote Action to call an Apex class that sends the request to the external system.
-
Use an HTTP Action in the integration Procedure.
NoteWhen using an HTTP Action, the result might not include
“error”: “OK”whichInsQuoteService:createUpdateQuoteFromExternalorInsQuoteService:createUpdateQuoteis expecting.You can manually add this through the Additional Output option of the HTTP Action.
-
- Use a Remote Action to invoke InsQuoteService:createUpdateQuoteFromExternal.
-
Add a Response Action to return the Quote JSON with the pricing updates from
the external system to the quoting flow. This is what is used to update the Quote
details.
The data returned from the external system must be in this format:
1 { 2 "result": { 3 "quote": { 4 // Updated JSON returned 5 }, 6 "errorCode": "INVOKE-200", 7 "error": "OK" 8 } 9 }

