School Fees Claims

Initiate School Fees Claims

The endpoint initiates the creation of a school fees claim.

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

Headers

NameTypeDescription

Authorization*

String

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

Content-Type*

String

application/json

Request Body

NameTypeDescription

policy_number*

String

The unique number that identifies the purchased insurance policy - IN98570819

full_details*

String

Dscriptive text of the full details of the incident

supporting_document*

String

image url of very possible doument to suport their claim

signature_date*

String

Date the claim was made. DD/MM/YYYY

date_of_occurance*

String

Date the incident occurred. DD/MM/YYYY

signature*

String

image url of the signature

{
   "success":true,
   "response_message":"School fee  policy claim initiated successfully",
   "response_code":"",
   "data":{
      "result":"School fee  policy claim initiated successfully"
   }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/school_fee_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/SFP/02102022/78555",
    "full_details": "Mille Bobby Brown",
    "supporting_document": "This is a detail",
    "signature_date": "2021-02-12",
    "date_of_occurance": "1993-02-12",
    "signature": "string"
}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

School Fees Claim Details

This endpoint returns an object containing a single school fees claim

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

Headers

NameTypeDescription

Authorization*

String

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

Content-Type*

String

application/json

Request Body

NameTypeDescription

policyNumber*

String

The unique number that identifies the purchased insurance policy - IN98570819

{
   "success":true,
   "response_message":"Data fetched successfully",
   "response_code":"",
   "data":{
      "status":true,
      "full_details":"Salami Kaol",
      "supporting_document":"This is a detail",
      "signature":"string",
      "signature_date":"2021-02-12T00:00:00.000000Z",
      "date_of_occurance":"1993-02-12T00:00:00.000000Z",
      "deleted_at":null,
      "created_at":"2022-04-04T08:09:05.000000Z",
      "updated_at":"2022-04-04T08:09:05.000000Z",
      "school_fee_policy":{
         "beneficiary_id":18,
         "policy_number":"INS1645702524736",
         "trustee_fullname":"fsfs",
         "trustee_phone_number":"08034543234",
         "trustee_email":"salamikolawole@gmail.com",
         "frequency_type":"monthly",
         "frequency":30,
         "status":true,
         "deleted_at":null,
         "created_at":"2022-02-24T11:35:24.000000Z",
         "updated_at":"2022-02-24T11:35:24.000000Z"
      }
   }
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/school_fee_claim_details',
  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/SI/30092022/79187"}',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

List All School Fees Claims

This endpoint returns a list of all the School Fees claim objects.

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

Headers

NameTypeDescription

Authorization*

String

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

Content-Type*

String

application/json

{
   "success":true,
   "response_message":"Data fetched successfully",
   "response_code":"",
   "data":[
      {
         "status":true,
         "full_details":"Salami Kaol",
         "supporting_document":"This is a detail",
         "signature":"string",
         "signature_date":"2021-02-12T00:00:00.000000Z",
         "date_of_occurance":"1993-02-12T00:00:00.000000Z",
         "deleted_at":null,
         "created_at":"2022-04-04T08:09:05.000000Z",
         "updated_at":"2022-04-04T08:09:05.000000Z",
         "school_fee_policy":{
            "policy_number":"INS1645702524736"
         }
      }
   ]
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/school_fee_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;

Last updated