Loading
Prepare for Email to Become the Default Login ExperienceRead More
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Insurance
InsClaimItemService:createPayments

InsClaimItemService:createPayments

Use this service to create and save claim payment records based on the line item IDs and the groupPayments option.

Class: InsClaimItemService

Method: createPayments

How It Works

Depending on the claim payment Id, the service either creates a Vlocity payment or a Salesforce payment.

Important
Important

Salesforce Data Model support is available from the Insurance Summer '21 release onward.

Salesforce Data Model

  1. The service parses the line item Ids and queries the corresponding ClaimCoveragePaymentDetail records.

  2. Depending on the input of the groupPayments option, the service creates and saves the ClaimPaymentSummary records.

  3. The service updates the following parameters in the ClaimCoveragePaymentDetail records:

    • Sets the ClaimPaymentSummary.Id.

    • Sets the status as paid unless you enter a different value for this remote option.

  4. The service updates the related ClaimCoverage ReserveAmounts (Loss/Expense) and the ClaimCoverageReserveDetail, if any.

  5. It then creates and saves the ClaimCoverageReserveAdjustments to track changes in the reserve amounts against the paid amounts.

Vlocity Data Model

  1. The service parses the transaction Ids and queries the corresponding InsClaimReserveTransaction__c records.

  2. Depending on the input of groupPayments, the service then creates and saves the ClaimPayment__c records.

  3. The service updates the InsClaimReserveTransaction__c records with the Payment Id.

Remote Options

Remote Option

Description

groupPayments

Required.

If "true", it creates a single ClaimPayment__c or ClaimPaymentSummary record per recipient for multiple line item payments.

If "false", it creates a single record per line item.

transactionIds

Required.

The list of transaction Ids. The service uses these transaction Ids to query the corresponding InsClaimReserveTransaction__c records. This remote option is applicable only for the Vlocity Data Model.

itemIds

Required.

The list of item Ids. The service uses these item Ids to query the corresponding ClaimCoveragePaymentDetail records. This remote option is applicable only for the Salesforce Data Model.

See also: InsClaimItemService:invokeInitiatePaymentIP

status

Optional.

The status for the ClaimCoveragePaymentDetail paid. It defaults as paid if the value isn’t set. This remote option is applicable only for the Salesforce Data Model.

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"
        }
    ]
}

Output JSON

Creates and saves the claim payment records.

 
Loading
Salesforce Help | Article