You are here:
InsClaimItemService:createPayments
Use this service to create and save claim payment records based on the line item
IDs and the groupPayments option.
Method: createPayments
How It Works
Depending on the claim payment Id, the service either creates a Vlocity payment or a Salesforce payment.
Salesforce Data Model support is available from the Insurance Summer '21 release onward.
Salesforce Data Model
-
The service parses the line item Ids and queries the corresponding
ClaimCoveragePaymentDetailrecords. -
Depending on the input of the
groupPaymentsoption, the service creates and saves theClaimPaymentSummaryrecords. -
The service updates the following parameters in the
ClaimCoveragePaymentDetailrecords:-
Sets the
ClaimPaymentSummary.Id. -
Sets the
statusas paid unless you enter a different value for this remote option.
-
-
The service updates the related
ClaimCoverageReserveAmounts (Loss/Expense) and theClaimCoverageReserveDetail, if any. -
It then creates and saves the
ClaimCoverageReserveAdjustmentsto track changes in the reserve amounts against the paid amounts.
Vlocity Data Model
-
The service parses the transaction Ids and queries the corresponding
InsClaimReserveTransaction__crecords. -
Depending on the input of
groupPayments, the service then creates and saves theClaimPayment__c records. -
The service updates the
InsClaimReserveTransaction__crecords with the Payment Id.
Remote Options
Remote Option |
Description |
|---|---|
|
Required. If "true", it creates a
single If "false", it creates a single record per line item. |
|
Required. The list of transaction Ids. The service uses
these transaction Ids to query the
corresponding |
|
Required. The list of item Ids. The service uses these
item Ids to query the
corresponding |
|
Optional. The status for the
|
Input JSON
Here's the format of input JSON:
Vlocity Data Model
{
"groupPayments": <Boolean>,
"transactionIds": [<Id>, <Id>]
}
Salesforce Data Model
{
"groupPayments": <Boolean>,
"itemIds": [
{
"Id" : <Id>
},
{
"Id" : <Id>
}
]
}Here's an example of the input JSON:
Vlocity Data Model
{
"groupPayments": false,
"transactionIds": ["01t000000000000001", "01t000000000000002"]
}Salesforce Data Model
{
"groupPayments": true,
"itemIds": [
{
"Id" : "01t000000000000003"
},
{
"Id" : "01t000000000000004"
}
]
}
