School Fees Policy
Last updated
Last updated
POST
https://sandbox.insurpass.com/api/merchant/initiate_school_fee_policy
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"success":true,
"data":{
"token":"IDP163446435012295714"
},
"response_message":"School fee policy initiated successfully",
"response_code":""
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/initiate_school_fee_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 =>'{
"first_name": "milly-Bobby",
"last_name": "Brown",
"phone_number": "09076567875",
"email": "email@gmail.com",
"gender": "male",
"product_id": 2,
"trustee_first_name": "fsfs",
"trustee_last_name": "Sala",
"trustee_phone_number" : "08031543234",
"trustee_email" : "salamikolawole@gmail.com",
"frequency_type": "monthly",
"frequency" : 30,
"beneficiary_firstname":"Salami",
"beneficiary_lastname":"Kolawole",
"beneficiary_address":"12 Akinsanmi street Obanikoro",
"beneficiary_gender":"male",
"beneficiary_dob":"1995-04-12",
"beneficiary_phone_number":"08034763234",
"beneficiary_email":"salamikolawole@gmail.com",
"beneficiary_institution_name":"Lagos State University",
"beneficiary_institution_address":"Lagos Ojo",
"id_number":"t353363534",
"id_url":"http://lagos.edu.ng",
"id_type":"voters_card"
}',
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({
"first_name": "milly-Bobby",
"last_name": "Brown",
"phone_number": "09076567875",
"email": "email@gmail.com",
"gender": "male",
"product_id": 2,
"trustee_first_name": "fsfs",
"trustee_last_name": "Sala",
"trustee_phone_number": "08031543234",
"trustee_email": "salamikolawole@gmail.com",
"frequency_type": "monthly",
"frequency": 30,
"beneficiary_firstname": "Salami",
"beneficiary_lastname": "Kolawole",
"beneficiary_address": "12 Akinsanmi street Obanikoro",
"beneficiary_gender": "male",
"beneficiary_dob": "1995-04-12",
"beneficiary_phone_number": "08034763234",
"beneficiary_email": "salamikolawole@gmail.com",
"beneficiary_institution_name": "Lagos State University",
"beneficiary_institution_address": "Lagos Ojo",
"id_number": "t353363534",
"id_url": "http://lagos.edu.ng",
"id_type": "voters_card"
});
var config = {
method: 'post',
url: 'https://sandbox.insurpass.com/api/merchant/initiate_school_fee_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/initiate_school_fee_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "milly-Bobby",
"last_name": "Brown",
"phone_number": "09076567875",
"email": "email@gmail.com",
"gender": "male",
"product_id": 2,
"trustee_first_name": "fsfs",
"trustee_last_name": "Sala",
"trustee_phone_number": "08031543234",
"trustee_email": "salamikolawole@gmail.com",
"frequency_type": "monthly",
"frequency": 30,
"beneficiary_firstname": "Salami",
"beneficiary_lastname": "Kolawole",
"beneficiary_address": "12 Akinsanmi street Obanikoro",
"beneficiary_gender": "male",
"beneficiary_dob": "1995-04-12",
"beneficiary_phone_number": "08034763234",
"beneficiary_email": "salamikolawole@gmail.com",
"beneficiary_institution_name": "Lagos State University",
"beneficiary_institution_address": "Lagos Ojo",
"id_number": "t353363534",
"id_url": "http://lagos.edu.ng",
"id_type": "voters_card"
}'
POST
https://sandbox.insurpass.comapi/merchant/verify_school_fee_policy
{
"success": true,
"response_message": "School fee policy was created successfully",
"response_code": "",
"data": {
"policy_number": "UIC/RE/INP/SFP/20102022/81671",
"trustee_fullname": " fsfs Sala ",
"trustee_phone_number": "08031543234",
"trustee_email": "salamikolawole@gmail.com",
"frequency_type": "monthly",
"frequency": 30,
"status": true,
"product_code": "SFP",
"deleted_at": null,
"created_at": "2022-10-20T11:25:19.000000Z",
"updated_at": "2022-10-20T11:25:40.000000Z",
"start_date": "2022-10-20T11:25:39.997124Z",
"end_date": "2023-10-19T11:25:39.997143Z"
}
}
The Initiate token expires in 15 minutes, and if a user does not verify his/her subscription after 15 minutes of initiation, the details of the subscription will be deleted.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/verify_school_fee_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 =>'{
"token": "IDP1664732927341151853"
}',
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({
"token": "IDP1664732927341151853"
});
var config = {
method: 'post',
url: 'https://sandbox.insurpass.com/api/merchant/verify_school_fee_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.comapi/merchant/verify_school_fee_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "IDP163438169412711526"
}'
GET
https://sandbox.insurpass.comapi/merchant/get_merchant_shop_insure_policies
{
"success":true,
"data":[
{
"id":"15",
"trustee_first_name":"Salami",
"trustee_last_name":"Oluwole",
"trustee_phone_number":"08034543543",
"trustee_email":"salamikolawole989@gmail.com",
"frequency":12,
"frequency_type":"yearly",
"status":"activated",
"policy_number":"TG52622977"
}
],
"response_message":"School fee policies retrieved successfully",
"response_code":""
}
<?php
$curl = curl_init() ;
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/get_merchant_shop_insure_policies',
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/merchant-school-fee-policies',
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.comapi/merchant/get_merchant_shop_insure_policies' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
POST
https://sandbox.insurpass.com/api/merchant/school_fee_policy_details
{
"success":true,
"data":{
"trustee_first_name":"Salami",
"trustee_last_name":"Oluwole",
"trustee_phone_number":"08034543543",
"trustee_email":"salamikolawole989@gmail.com",
"frequency":12,
"frequency_type":"yearly",
"status":"activated",
"policy_number":"TG52622977",
"start_date":"2021-10-16"
},
"response_message":"Device Policy retrieved successfully",
"response_code":""
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/school_fee_policy_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;
var axios = require('axios');
var data = JSON.stringify({"policy_number":"UIC/RE/INP/SI/30092022/79187"});
var config = {
method: 'post',
url: 'https://sandbox.insurpass.com/api/merchant/school-fee-policy-details',
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/school_fee_policy_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{"policy_number":"UIC/RE/INP/SI/30092022/79187"}'
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|