Links

School Fees Policy

Initiate School Fees Policy

post
https://sandbox.insurpass.com
/api/merchant/initiate_school_fee_policy
This method initiates the creation of a School Fees Insurance Policy.
PHP
NODE JS
CURL
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/initiate_school_fee_policy',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS =>'{
15
"first_name": "milly-Bobby",
16
"last_name": "Brown",
17
"phone_number": "09076567875",
18
"email": "[email protected]",
19
"gender": "male",
20
"product_id": 2,
21
"trustee_first_name": "fsfs",
22
"trustee_last_name": "Sala",
23
"trustee_phone_number" : "08031543234",
24
"trustee_email" : "[email protected]",
25
"frequency_type": "monthly",
26
"frequency" : 30,
27
"beneficiary_firstname":"Salami",
28
"beneficiary_lastname":"Kolawole",
29
"beneficiary_address":"12 Akinsanmi street Obanikoro",
30
"beneficiary_gender":"male",
31
"beneficiary_dob":"1995-04-12",
32
"beneficiary_phone_number":"08034763234",
33
"beneficiary_email":"[email protected]",
34
"beneficiary_institution_name":"Lagos State University",
35
"beneficiary_institution_address":"Lagos Ojo",
36
"id_number":"t353363534",
37
"id_url":"http://lagos.edu.ng",
38
"id_type":"voters_card"
39
}',
40
CURLOPT_HTTPHEADER => array(
41
'Authorization: Bearer {{SECRETKEY}}',
42
'Content-Type: application/json'
43
),
44
));
45
46
$response = curl_exec($curl);
47
48
curl_close($curl);
49
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"first_name": "milly-Bobby",
4
"last_name": "Brown",
5
"phone_number": "09076567875",
6
"email": "[email protected]",
7
"gender": "male",
8
"product_id": 2,
9
"trustee_first_name": "fsfs",
10
"trustee_last_name": "Sala",
11
"trustee_phone_number": "08031543234",
12
"trustee_email": "[email protected]",
13
"frequency_type": "monthly",
14
"frequency": 30,
15
"beneficiary_firstname": "Salami",
16
"beneficiary_lastname": "Kolawole",
17
"beneficiary_address": "12 Akinsanmi street Obanikoro",
18
"beneficiary_gender": "male",
19
"beneficiary_dob": "1995-04-12",
20
"beneficiary_phone_number": "08034763234",
21
"beneficiary_email": "[email protected]",
22
"beneficiary_institution_name": "Lagos State University",
23
"beneficiary_institution_address": "Lagos Ojo",
24
"id_number": "t353363534",
25
"id_url": "http://lagos.edu.ng",
26
"id_type": "voters_card"
27
});
28
29
var config = {
30
method: 'post',
31
url: 'https://sandbox.insurpass.com/api/merchant/initiate_school_fee_policy',
32
headers: {
33
'Authorization': 'Bearer {{SECRETKEY}}',
34
'Content-Type': 'application/json'
35
},
36
data: data
37
};
38
39
axios(config)
40
.then(function (response) {
41
console.log(JSON.stringify(response.data));
42
})
43
.catch(function (error) {
44
console.log(error);
45
});
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 protected]",
"gender": "male",
"product_id": 2,
"trustee_first_name": "fsfs",
"trustee_last_name": "Sala",
"trustee_phone_number": "08031543234",
"trustee_email": "[email protected]",
"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": "[email protected]",
"beneficiary_institution_name": "Lagos State University",
"beneficiary_institution_address": "Lagos Ojo",
"id_number": "t353363534",
"id_url": "http://lagos.edu.ng",
"id_type": "voters_card"
}'

Verify School Fees Policy

post
https://sandbox.insurpass.com
api/merchant/verify_school_fee_policy
This endpoints sends a token that verifies the creation of a School Fee Insurance policy.
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
NODE JS
CURL
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/verify_school_fee_policy',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS =>'{
15
"token": "IDP1664732927341151853"
16
}',
17
CURLOPT_HTTPHEADER => array(
18
'Authorization: Bearer {{SECRETKEY}}',
19
'Content-Type: application/json'
20
),
21
));
22
23
$response = curl_exec($curl);
24
25
curl_close($curl);
26
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"token": "IDP1664732927341151853"
4
});
5
6
var config = {
7
method: 'post',
8
url: 'https://sandbox.insurpass.com/api/merchant/verify_school_fee_policy',
9
headers: {
10
'Authorization': 'Bearer {{SECRETKEY}}',
11
'Content-Type': 'application/json'
12
},
13
data: data
14
};
15
16
axios(config)
17
.then(function (response) {
18
console.log(JSON.stringify(response.data));
19
})
20
.catch(function (error) {
21
console.log(error);
22
});
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"
}'

List All School Fees Policies

get
https://sandbox.insurpass.com
api/merchant/get_merchant_shop_insure_policies
This endpoint returns a list of all the school fees insurance policies
PHP
NODE JS
CURL
1
<?php
2
3
$curl = curl_init() ;
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/get_merchant_shop_insure_policies',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'GET',
14
CURLOPT_HTTPHEADER => array(
15
'Authorization: Bearer {{SECRETKEY}}'
16
),
17
));
18
19
$response = curl_exec($curl);
20
21
curl_close($curl);
22
echo $response;
1
var axios = require('axios');
2
var data = '';
3
4
var config = {
5
method: 'get',
6
url: 'https://sandbox.insurpass.com/api/merchant/merchant-school-fee-policies',
7
headers: {
8
'Authorization': 'Bearer {{SECRETKEY}}'
9
},
10
data: data
11
};
12
axios(config)
13
.then(function (response) {
14
console.log(JSON.stringify(response.data));
15
})
16
.catch(function (error) {
17
console.log(error);
18
});
curl --location --request GET https://sandbox.insurpass.comapi/merchant/get_merchant_shop_insure_policies' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''

School Fees Policy Details

post
https://sandbox.insurpass.com
/api/merchant/school_fee_policy_details
This endpoint returns an object containing a single School Fees Policy
PHP
NODE JS
CURL
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/school_fee_policy_details',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS =>'{"policy_number":"UIC/RE/INP/SI/30092022/79187"}',
15
CURLOPT_HTTPHEADER => array(
16
'Authorization: Bearer {{SECRETKEY}}',
17
'Content-Type: application/json'
18
),
19
));
20
21
$response = curl_exec($curl);
22
23
curl_close($curl);
24
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({"policy_number":"UIC/RE/INP/SI/30092022/79187"});
3
4
var config = {
5
method: 'post',
6
url: 'https://sandbox.insurpass.com/api/merchant/school-fee-policy-details',
7
headers: {
8
'Authorization': 'Bearer {{SECRETKEY}}',
9
'Content-Type': 'application/json'
10
},
11
data: data
12
};
13
14
axios(config)
15
.then(function (response) {
16
console.log(JSON.stringify(response.data));
17
})
18
.catch(function (error) {
19
console.log(error);
20
});
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"}'