You are here:
InsClaimItemService:cancelPayments
Use this service to cancel claim loss and expense payments.
This service:
-
Updates the status of claim payment records to Cancelled.
-
Creates offsetting tracking entries that effectively remove the payment from claim financials and policy term standings.
Method: cancelPayments
How It Works
-
When a user clicks Cancel for one or more payment details on a claim’s Financials tab, an internal service called
InsClaimItemService: invokeInitiateCancelPaymentIPinitiates the cancellation process. -
The
InsClaimItemService: invokeInitiateCancelPaymentIPinternal service, which relies on aClaimInitiateCancelPaymentIPcustom setting and integration procedure that you configure, invokesInsClaimItemService: cancelPayments.To learn how to configure the
ClaimInitiateCancelPaymentIPcustom setting and integration procedure, see Configure the Cancel Payment Action. -
The
InsClaimItemService: cancelPaymentsservice parses theitemIdsorpaymentIdsprovided, fetches corresponding data, and queries the correspondingClaimCoveragePaymentDetailorClaimPaymentSummaryrecords.The service generates an error if:
-
Any
lineItemIdsare missing forClaimCoveragePaymentDetailrecords that are part of a linked payment. -
Any of the
ClaimCoveragePaymentDetailrecords aren't paid.
-
-
The service updates the status of
ClaimCoveragePaymentDetailrecords toCancelledunless you enter a different value for thestatusremote option. -
The service creates
ClaimCoveragePaymentDetailrecords that are equal and opposite versions of the original ones. The new records have:-
Status set to
Reverted. -
Negative
Amountvalues.
-
-
The service reverts applicable Deductible, Copay, Coinsurance, or Out of Pocket Maximum power attribute amounts, and creates corresponding term tracking entries.
-
The service updates
ClaimPaymentSummaryrecords based on thegroupPaymentsinput. It:-
Sets
Payment StatustoCancelledunless you enter a different value for thestatusremote option. -
Sets
Cancellation Dateto the date and time of the cancellation.
-
-
The service reverts applicable Rolling, Lifetime, and Calendar Limit power attribute amounts, and creates corresponding term tracking entries.
Remote Options
Remote Option |
Description |
|---|---|
|
Required. A list of payment details or payment
summaries to cancel. Specify either For For
|
|
Required. Whether to group payments by recipient when processing multiple loss or expense line items.
|
|
Optional. The status value to set for each canceled
|
Input JSON
Here's the format of the input JSON if you use itemIds:
{
"groupPayments": <Boolean>,
"itemIds": [
{
"Id" : <Id>
},
{
"Id" : <Id>
}
]
}Here's an example of the input JSON with itemIds:
{
"groupPayments": true,
"itemIds": [
{
"Id" : "01t000000000000003"
},
{
"Id" : "01t000000000000004"
}
]
}Here's the format of the input JSON if you use paymentIds:
{
"groupPayments": <Boolean>,
"paymentIds": [
{
"Id" : <Id>
},
{
"Id" : <Id>
}
]
}Here's an example of the input JSON with paymentIds:
{
"groupPayments": false,
"paymentIds": [
{
"Id" : "0l8RN0000000000005"
},
{
"Id" : "0l8RN0000000000006"
}
]
}
