Skip to main content

Claims

With the claims endpoints you record the losses your customers declare, attached to the policy, the asset or the customer they concern. You classify each claim in the categories the product defines, then read, update and delete it. Creating a claim can also close a renewal that is being prepared and start it again, and this page shows how to see that happen.

What a claim is​

In insurance, a claim is the insured's notice of a loss that their policy may cover, such as an accident, a theft or a fire. The date of the loss decides which period of cover it falls in. A contract's claim history, meaning how many losses and of which kinds, is part of what an insurer weighs when the contract comes up for renewal.

On Korint, a claim is a record attached to one policy, asset or customer. Besides the externalId of that record, it carries:

  • occurredAt: the date of the loss.
  • createdAt: the date the claim was declared.
  • category: the kind of loss, taken from the list the product defines.
  • responsibility: how much of the loss the insured is liable for: none, half or all of it.
  • reserve: the amount set aside to settle the claim.
  • name, description, customFields and metadata: your own label, text and key/value data.

You supply these values. When you create a claim, the only ones Korint fills in are the two dates, if you leave them out.

Before you create a claim​

The product must accept claims. Read the product with GET /config/{productId}. A product that takes claims carries a claims object, and its categories lists the values category accepts. On a product without claims, POST /claims answers 409 CONFLICTING_CONFIG. You do not name the product when you create a claim: Korint uses the product of the policy, asset or customer you attach it to.

Your credentials need claim access. A client-credentials token needs the korint.io/claims scope. The identity behind the token also needs permission on the record: the built-in role CLAIMS_VIEWER reads and lists claims, CLAIMS_EDITOR can also update them, and CLAIMS_ADMIN can also create and delete them. Either check refuses with 403; see How a request is checked.

Creating a claim​

POST /claims requires externalId, the id of the policy, the asset or the customer the claim is about. Every other field is optional.

  • The record you attach it to. Korint accepts a policy, asset or customer id, and refuses any other. The permission check usually refuses it first, with 403; an id of another type that gets past that check is refused with 501 TARGET_NOT_IMPLEMENTED. A policy that exists only on a branch not merged yet, such as a new-business branch still in progress, is refused too, and so is an asset of that policy, with 403 or 404 BRANCH_NOT_FOUND.
  • The category. When you send category, it must be one of the product's claims.categories. Anything else is refused with 400 INVALID_CLAIM_CATEGORY, whose details.availableCategories lists the accepted values. A product whose claims lists no categories refuses any category you name, so leave the field out. PATCH /claims/{id} runs this check and the CONFLICTING_CONFIG check again, against the claim's product.
  • The dates. occurredAt defaults to createdAt, and createdAt defaults to the time of the request. When the loss happened before it was declared, send occurredAt: it is the date the renewal check below compares. Leave createdAt out: a past one changes what that check reads, as described below.
  • A quote that is already priced. Before signature, the claim history of a policy can be part of its price, and Korint does not price the quote again when that history changes. So once the policy's new-business branch is quoted or confirmed, POST /claims, PATCH /claims/{id} and DELETE /claims/{id} refuse its claims, and those of its assets, with 409 CONFLICTING_POLICY_STATUS; details.additionalData.branchId names the priced branch. Record the claim history before you quote. To change it afterwards, fork the quote with POST /branches/{branchId}/fork, send the fork's id in the branchId query parameter of your claim calls, then quote the fork. Such a change invalidates every other open quote that is priced: in the background, Korint closes it with closeReason QUOTE_INVALIDATED and cancels its pending signature requests, so it can no longer be signed at a price that ignores the new claim history. Without branchId, every open new-business branch of the policy is checked. Signed policies are not affected.

The response is the claim, with the id you use on the calls to /claims/{id}.

Attach a claim to a policy or an asset when you can. A claim attached to a customer is created and listed like any other, but GET, PATCH and DELETE /claims/{id} can refuse it with 403, because the permission check cannot resolve a claim filed against a customer.

How a new claim restarts an open renewal​

Creating a claim also queues a background check on the policy it relates to. The 201 comes back once the check is queued, without waiting for it to run.

The check does something only when both of these hold:

  • the policy has an open renewal branch, with branchType RENEWAL and branchStatus BRANCH_OPEN;
  • the claim's occurredAt is earlier than the start of the renewal period, which is the policy's next renewal date minus the product's renewal.renewalPeriod from GET /config/{productId}.

When they do, the check closes that renewal branch, which cancels the signature requests still pending on it. Then it starts renewal creation again, the same workflow that opens renewal branches on schedule.

To see the result, list the policy's branches again with GET /policies/{policyId}/branches?branchType=RENEWAL. The old branch comes back with branchStatus BRANCH_CLOSED and closeReason PARTITION_DROPPED. Keep listing until a new branch with branchStatus BRANCH_OPEN appears. Renewal creation runs its usual checks first, so it can also finish without opening one. Renewals covers what happens on that branch next.

The check does not run, or does not act, in these cases:

  • The asset is not merged yet. No check is queued for a claim on an asset that so far exists only on an open branch of a live policy, such as an asset added by a modification still in progress.
  • The claim is backdated. The check reads the policy as it stood at the claim's createdAt. With a past createdAt, it misses a renewal branch opened after that date, and it can close a renewal branch that was open on that date even if that branch has been merged since.
  • The claim is changed afterwards. Only creation queues the check. Changing occurredAt with PATCH /claims/{id} does not run it, and deleting the claim does not reopen the closed branch.

Reading, updating and deleting claims​

  • GET /claims lists the claims attached to the id you pass in externalId, and only that id: listing by a policy id does not return the claims attached to its assets or to its customers. Its metadata filters narrow the list to the key/value pairs you attached. The list is not paginated: pageInfo is ignored, and every matching claim comes back in one response.
  • GET /claims/{id} returns one claim.
  • PATCH /claims/{id} updates a claim. A field you leave out keeps its value, except customFields: leaving it out empties the claim's custom fields, so send the whole list on every call, including the values you do not change. Do not send null: it does not clear a field, and metadata set to null makes the call fail, as it does on POST /claims. metadata is merged by key: a key you send replaces that key's value, a key you leave out keeps its own, and no key can be removed.
  • DELETE /claims/{id} deletes a claim and returns it as it was. On a product that generates a document when a claim is deleted, deleting a claim attached to a policy can trigger that document for the policy; see Document types.

The three calls on /claims/{id} check your permission on the claim first, so an id that does not exist is usually refused with 403, the same as a claim you may not see, rather than with 404 CLAIM_NOT_FOUND.