curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/expected-totals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "claim",
"categoryId": "indemnity_invoice",
"expectedTotal": 15000
}
'{
"eventId": "550e8400-e29b-41d4-a716-446655440001",
"categoryId": "indemnity_invoice",
"expectedTotal": 15000,
"reserves": 10000
}Event Financials
Update Expected Totals
Updates the expected total for a transaction category on an event.
This endpoint is used to set or update reserve amounts for categories that support reserves.
Important: Amounts are in dollars (not cents) for this endpoint.
Required permission: company.claim:update or company.incident:update (depending on event type)
PATCH
/
api
/
external
/
companies
/
{companyId}
/
events
/
{eventId}
/
financials
/
expected-totals
curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/financials/expected-totals \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "claim",
"categoryId": "indemnity_invoice",
"expectedTotal": 15000
}
'{
"eventId": "550e8400-e29b-41d4-a716-446655440001",
"categoryId": "indemnity_invoice",
"expectedTotal": 15000,
"reserves": 10000
}Authorizations
API key authentication. Include your API key in the Authorization header.
Path Parameters
Company identifier
Event identifier
Body
application/json
Request body for updating expected totals on an event
Type of event (claim or incident)
Available options:
claim, incident Transaction category identifier (must support reserves)
Expected total amount in dollars (not cents)
Required range:
x >= 0Historical date for the update (YYYY-MM-DD, optional)
Response
Expected total updated successfully
Was this page helpful?
