You are here:
InsClaimItemService:invokeInitiatePaymentIP
Use this service to initiate loss or expense payments.
Method: invokeInitiatePaymentIP
How It Works
This service is triggered in these scenarios:
-
When you click Pay on each Loss/Expense line item (for per line payment) in the Claim Financials tab.
-
When you click Pay Selected Items (for multiple line payments) in the Claim Financials tab.
-
The service parses the received Ids.
-
The service checks if the Ids are Vlocity's
ClaimLineItem__cor Salesforce'sClaimCoveragePaymentDetail. -
It then checks if the line items are of the same type (loss/expense) and in the same currency (if you have enabled multiple currencies in the org). The service throws an error if the validation fails or proceeds to the next step if the validation succeeds.
-
The service calculates the sum of the line items and then checks the total amount against all applicable LIMIT Power Attributes of the Policy/Claim, if any.
-
The service invokes the integration procedure defined under Custom Setting → Insurance Configuration Setup → ClaimInitiatePaymentIP.
You can customize the Integration Procedure. The default integration procedure follows this workflow in the Salesforce Data Model:
-
Performs a RemoteAction call to InsClaimItemService:createPayments.
-
Saves the LIMITs Power Attributes (Policy Terms Tracking Entry) records.
To use a financial authorization workflow, you add a remote action to the Integration Procedure and configure it to call
InsClaimItemService: claimCoverageValuation.Error Handling
If you want to configure any business rules to run between when a user clicks the Pay button and when the payment is processed, you can configure a
Response Actionstep in the Integration Procedure. UseerrorMessageas the Key and thedescriptionof the error message as the Value. If the error message is thrown before the createPayments Remote Action, then that error message is thrown to the user via a Toast Message on the Claims Financials page. -
Remote Options
Remote Option |
Description |
|---|---|
|
A list of |
Input JSON
Here's the format of the input JSON:
{
"itemIds": [
{
"Id" : <Id>
},
{
"Id" : <Id>
}
]
}Here's an example of the input JSON:
{
"itemIds": [
{
"Id" : "01t000000000000001"
},
{
"Id" : "01t000000000000002"
}
]
}
