Skip to main content
PATCH
/
api
/
v1
/
claims
/
{id}
curl --request PATCH \
  --url https://dev.superpool.unyte.africa/api/v1/claims/{id}/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "claimant_metadata": {
    "email": "[email protected]",
    "phone_number": "+1234567890",
    "age": 35
  },
  "claim_details": {
    "incident_date": "2024-08-01",
    "incident_description": "Updated description of the incident."
  }
}
'
{
  "status": "success",
  "message": "Claim updated successfully.",
  "data": {
    "id": "c45bca2a-b134-4f0e-95a1-5fdea8b662e9",
    "claimant": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "[email protected]",
      "phone_number": "+1234567890",
      "age": 35
    },
    "claim_details": {
      "incident_date": "2024-08-01",
      "incident_description": "Updated description of the incident."
    }
  }
}

Authorizations

X-API-Key
string
header
required

Path Parameters

id
string
required

UUID of the claim

Query Parameters

claim_number
string

Claim Reference Number issued by the Insurance provider to help manage/track claim object

Body

Handles updating of a claim instance

We are only allowing updates to the following fields:

  • Customer information - age, email, phone number
  • Claim details - incident date, incident description
  • Witness information - name, contact phone, contact email, statement

Fields you cannot update:

  • Claim ID
  • First Name and Surname of the claimant - you would have to reach out to support team with your verifying documents
  • Claim number provided by the merchant
  • Authority report - report number, report date, filing station - For now not supported
  • Supporting documents for a claim (Claim details) - For now not supported
  • Claim amount
claimant_metadata
object

Validates incoming request data for creating a new claim.

claim_details
object

Specifies the data structure for capturing claim details

witness_details
object[]
authority_report
object

Specifies the data structure for the Authority Report e.g Police Report

Response

Success response with updated claim data.

Serializer for Claim instances.

This serializer includes fields that are intended to be visible when retrieving or listing Claim objects. It provides a human-readable representation of the Claim, including status descriptions.

claim_id
string<uuid>
required
claim_reference_number
string
required
claim_status
string
required
claim_date
string<date>
required
claimant
string
required
claim_type
string | null
required
claim_amount
string<decimal>
required
amount_payable
string<decimal> | null
required
insurer
string
required
product
object
required

Serilizes the metadata about the product category a claim belongs to

policy
string<uuid>
required

Unique identifier for the policy

notes
string | null
required
documents
string
required
claim_status_timeline
object[]
required
incident_date
string<date> | null
incident_description
string | null
estimated_loss
string<decimal> | null