Docs
  • Introduction
  • Getting Acquainted with Insurpass API
    • Before you start
    • Access to Insurpass API
    • Environment
    • Authentication
    • Errors
    • Pagination
    • Versioning
  • Know Insurpass' Products
    • Definition of Terms
    • Micro-health Insurance
    • Credit Life Insurance
    • Motor Insurance
    • Parcel Guard Insurance
    • Shop Insurance
    • Group Insurance
    • School Fees Insurance
    • Okada Insurance
    • Keke Insurance
  • Insurpass APi Reference
    • Micro-health Insurance
      • Policy
      • Claim
      • Pharmacy
    • Shop Insurance
      • Shop Insurance Policy
      • Shop Insurance Claims
    • School Fees Insurance
      • School Fees Policy
      • School Fees Claims
    • Keke Insurance
      • Keke Policy
      • Keke Claims
    • Okada Insurance
      • Okada Policy
      • Okada Claims
    • Motor Insurance
      • Comprehensive Motor Insurance
        • Comprehensive Motor Policy
        • Comprehensive Motor Claims
      • Third Party Motor Insurance
        • Third Party Motor Policy
        • Third Party Motor Claims
    • Parcel Guard Insurance
      • Policy
      • Claims
    • Group Insurance
      • Policy
      • Claims
    • Credit Life Insurance
      • Credit Life Policy
      • Credit Life Claims
  • GUIDES
    • Customer Journey Guidebook
      • Micro-health Insurance Flow
        • Claims Flow
        • Pharmacy Treatment Flow
        • User Interface Samples - Micro-health Insurance Plan
        • Issue Management Flow
      • Credit Life Insurance Flow
        • User Interface Samples - Credit Life Plan
Powered by GitBook
On this page
  • Initiate Comprehensive Motor claims
  • The endpoint initiates the creation of a Comprehensive Motor claim.
  • Comprehensive Motor Claims Details
  • This endpoint returns an object containing a single Comprehensive Motor policy claim .
  • List All Comprehensive Motor Claims
  • This endpoint returns a list of all the Comprehensive Motor claims objects.

Was this helpful?

  1. Insurpass APi Reference
  2. Motor Insurance
  3. Comprehensive Motor Insurance

Comprehensive Motor Claims

Initiate Comprehensive Motor claims

The endpoint initiates the creation of a Comprehensive Motor claim.

POST https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_claim

Headers

Name
Type
Description

Authorization*

String

Bearer {$secret-key}/{$api-key}

Content-Type*

String

application/json

Request Body

Name
Type
Description

vehicle_damage_image*

string

image url of the damaged vehicle

estimate_of_loss*

string

The estimated amount los

policy_number*

string

The unique number that identifies the purchased insurance policy - UIC/RE/INP/MOT/06102022/86154

incident_details*

string

Descriptive text about the details of the incident

{
   "success":true,
   "response_message":"Comprehensive policy claim initiated successfully",
   "response_code":"",
   "data":{
      "result":"Third party claim was initiated successfully"
   }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_claim',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "policy_number": "UIC/RE/INP/MOT/06102022/86154",
    "estimate_of_loss": "90000",
    "vehicle_damage_image": "https://image.jpg",
    "incident_details": "It was a dark and stormy night."
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var axios = require('axios');
var data = JSON.stringify({
    "policy_number": "UIC/RE/INP/MOT/06102022/86154",
    "estimate_of_loss": "90000",
    "vehicle_damage_image": "https://image.jpg",
    "incident_details": "It was a dark and stormy night"
});

var config = {
  method: 'post',
  url: 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_claim',
  headers: { 
    'Authorization': 'Bearer {{SECRETKEY}}', 
    'Content-Type': 'application/json'
  },
  data: data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_claim' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "policy_number": "UIC/RE/INP/MOT/06102022/86154",
    "estimate_of_loss": "90000",
    "vehicle_damage_image": "https://image.jpg",
    "incident_details": "It was a dark and stormy night"
}'

Comprehensive Motor Claims Details

This endpoint returns an object containing a single Comprehensive Motor policy claim .

POST https://sandbox.insurpass.com/api/merchant/comprehensive_motor_claim_details

Headers

Name
Type
Description

Authorization*

String

Bearer {$secret-key}/{$api-key}

Content-Type*

String

application/json

Request Body

Name
Type
Description

policyNumber*

String

The unique number that identifies the purchased insurance policy - INS1642236323569

{
   "success":true,
   "response_message":"Data fetched successfully",
   "response_code":"",
   "data":{
      "status":false,
      "amount":null,
      "proof_of_ownership":"String",
      "proof_of_incidence":"string",
      "police_report":null,
      "details_of_incidence":"string",
      "driving_licence":"strinf",
      "created_at":"2022-04-04T07:44:14.000000Z",
      "updated_at":"2022-04-04T07:44:14.000000Z",
      "third_party_policy":{
         "frequency_type":"yearly",
         "vehicle_value":"35000",
         "vehicle_type":"required|string",
         "start_date":"2022-03-16T00:00:00.000000Z",
         "end_date":"2023-03-16T00:00:00.000000Z",
         "registration_no":"required|string",
         "vehicle_make":"required|string",
         "vehicle_model":"required|string",
         "year_make":"2002",
         "vehicle_color":"required|string",
         "chasis_no":"required|string",
         "engine_no":"required|string",
         "class_of_insurance":"required|string",
         "certificate_no":"required|string",
         "vehicle_front_side_image":"required|string",
         "vehicle_back_side_image":"required|string",
         "vehicle_left_side_image":"required|string",
         "vehicle_right_side_image":"required|string",
         "policy_number":"UIC/RE/INP/MTP/16032022/32398",
         "status":true,
         "created_at":"2022-03-16T08:33:38.000000Z",
         "updated_at":"2022-03-16T08:37:29.000000Z"
      }
   }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/initiate_okada_pass_policy',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "policyNumber":"UIC/RE/INP/MOT/06102022/89168"
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var axios = require('axios');
var data = JSON.stringify({
  "policyNumber":"UIC/RE/INP/MOT/06102022/89168"
});

var config = {
  method: 'post',
  url: 'https://sandbox.insurpass.com/api/merchant/initiate_okada_pass_policy',
  headers: { 
    'Authorization': 'Bearer {{SECRETKEY}}', 
    'Content-Type': 'application/json'
  },
  data: data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/comprehensive_motor_claim_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
  "policyNumber":"UIC/RE/INP/MOT/06102022/89168"
}'

List All Comprehensive Motor Claims

This endpoint returns a list of all the Comprehensive Motor claims objects.

GET https://sandbox.insurpass.com/api/merchant/comprehensive_motor_merchant_claims

Headers

Name
Type
Description

Authorization*

String

Bearer {$secret-key}/{$api-key}

Content-Type*

String

application/json

{
    "success": true,
    "response_message": "Data fetched successfully",
    "response_code": "",
    "data": [
        {
            "status": false,
            "amount": null,
            "proof_of_ownership": "String",
            "proof_of_incidence": "string",
            "police_report": null,
            "details_of_incidence": "string",
            "driving_licence": "strinf",
            "created_at": "2022-04-04T07:44:14.000000Z",
            "updated_at": "2022-04-04T07:44:14.000000Z",
            "third_party_policy": {
                "policy_number": "UIC/RE/INP/MTP/16032022/32398"
            }
        }
    ]
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_merchant_claims',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
var axios = require('axios');
var data = '';

var config = {
  method: 'get',
  url: 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_merchant_claims',
  headers: { 
    'Authorization': 'Bearer {{SECRETKEY}}'
  },
  data: data
};
axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
curl --location --request GET https://sandbox.insurpass.com/api/merchant/comprehensive_motor_merchant_claims'
--header 'Authorization: Bearer {{SECRETKEY}}'
--header 'Accept: application/json'
--data-raw ''
PreviousComprehensive Motor PolicyNextThird Party Motor Insurance

Last updated 2 years ago

Was this helpful?