Creating a recovery
When creating recoveries from Cloud API, there is no POST endpoint whose root resource is a recovery. Recoveries are created in the context of a recovery set.
When you create a recovery set, you must specify the recoveriesToWrite.
At a minimum, it must consist of the following items:
- The
reserveLinethat specifies where the money is coming from. To identify this, you must specify:costCategory(a value from theCostCategorytypelist)costType(a value from theCostTypetypelist)- The recovery category (a value from the
RecoveryCategorytypelist) - The id of the parent exposure
- The
reservingCurrency
- An array of one or more transaction
lineItems, each of which must specify:- The
transactionAmount, including the amount and currency - Currency (a value from the
currencytypelist)
- The
If you want your recovery to reference a recovery reserve, and have its transaction amount go toward the total of the expected recovery reserve, you must duplicate the following information from the recovery reserve:
costCategory(a value from theCostCategorytypelist)costType(a value from theCostTypetypelist)- The recovery category (a value from the
RecoveryCategorytypelist) - The id of the parent exposure
- The
reservingCurrency
The currency in the lineItem object must also be the same.
Example of creating a recovery
The following payload is an example of creating a recovery that references the previous example recovery reserve:
- The
reserveLineoffsets money coming from a single exposure:- The exposure’s ID is cc:SB1
- The cost type is
claimcost. - The cost category is Auto Body (
body).
- The recovery category is salvage.
- The reserving currency is USD.
- The
transactionAmountis for 3000.00.
- The
POST /claim/v1/claims/{claimId}/recovery-sets
{
"data": {
"attributes": {
"recoveriesToWrite": [
{
"reserveLine": {
"costCategory": {
"code": "body"
},
"costType": {
"code": "claimCost"
},
"exposure": {
"id": " cc:SB1"
},
"recoveryCategory": {
"code": "salvage"
},
"reservingCurrency": {
"code": "usd"
}
},
"lineItems": [
{
"transactionAmount": {
"amount": "3000.00",
"currency": "usd"
}
}
],
"currency": {
"code": "usd"
}
}
]
}
}
}
Creating a deductible recovery
You can use the Cloud API for creating recovery sets to create a deductible recovery. A deductible is the portion of a covered loss that the insured must pay out of pocket before the insurance company's coverage applies. For example, if a claim is $3000 and the policy has a $500 deductible, the insured must pay $500 out of pocket, and the insurer is liable for the remaining $2500. Refer to Deductible Recoveries for more information about how deductible recoveries work in ClaimCenter.
- Within a line item object, include a
lineCategoryobject with the "deductible"code. - For the
recoveryCategoryobject, use the "deductible"code. - Ensure that the reserve line has the "claimcost"
costType.
AllowMultipleLineItemsOnDeductibleRecovery parameter to
true. It is set to false by default. Here is an example request to create a deductible recovery:
{
"data": {
"attributes": {
"recoveriesToWrite": [
{
"currency": {
"code": "USD"
},
"lineItems": [
{
"transactionAmount": {
"amount": "500.00",
"currency": "usd"
},
"lineCategory": {
"code": "deductible"
}
}
],
"reserveLine": {
"exposure": {
"id": "xc:SsaDdOxOEBCZDD6ivzTiY"
},
"reservingCurrency": {
"code": "USD"
},
"costType": {
"code": "claimcost"
},
"costCategory": {
"code": "property_repair"
},
"recoveryCategory": {
"code": "deductible"
}
}
}
]
}
}
}