Calculations that include all relevant transactions

By default, calls to the /get-amount endpoint execute the calculation over all relevant transactions.

For example, suppose you have claim cc:101 with the following transactions:

Exposure CostType CostCategory Currency Amount
cc:1 ClaimCost Auto body USD $2500
cc:1 Expense - A&O Vehicle inspection USD $500
cc:22 ClaimCost Medical payments USD $250

Then, suppose you execute the following request.

Command

POST /claim/v1/claims/cc:101/financial-calculations/AvailableReserves/get-amount
Java

Request

<no request body>
Java
Response
{
"data": {
"attributes": {
"claimAmount": { "amount": "3250.00", "currency": "usd"
}, "name": "AvailableReserves",
"reportingAmount": { "amount": "3250.00", "currency": "usd"
}
},
...
JSON

The request was unfiltered. Therefore, all three transactions were included in the calculation.