Links

Comprehensive Motor Policy

Initiate Comprehensive Motor Policy

post
https://sandbox.insurpass.com
/api/merchant/comprehensive_motor_initiate_policy
This endpoint initiates the creation of a Comprehensive Motor insurance policy.
PHP
NODE JS
CURL
1
2
$curl = curl_init();
3
4
curl_setopt_array($curl, array(
5
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_policy',
6
CURLOPT_RETURNTRANSFER => true,
7
CURLOPT_ENCODING => '',
8
CURLOPT_MAXREDIRS => 10,
9
CURLOPT_TIMEOUT => 0,
10
CURLOPT_FOLLOWLOCATION => true,
11
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
12
CURLOPT_CUSTOMREQUEST => 'POST',
13
CURLOPT_POSTFIELDS =>'{
14
"first_name": "Harry",
15
"last_name": "Potter",
16
"phone_number": "08045754345",
17
"email": "[email protected]",
18
"gender": "male",
19
"address": "no 5, fairy lane off hogwort roads",
20
"relationship": "required|string",
21
"variant_type": "confaam",
22
"amount_insured": 500000,
23
"identity": "required|string",
24
"nok_surname": "Granger",
25
"nok_othernames": "Hermione",
26
"nok_relationship": "required|string",
27
"nok_gender": "required|string",
28
"nok_phone_no": "09034543643",
29
"nok_email_address": "[email protected]",
30
"product_id":5,
31
"id_url":"https://gmail.com",
32
"id_number":"2424253642",
33
"id_type":"nin",
34
"speedometer_img": "required|string",
35
"engine_img": "required|string",
36
"interior_img": "required|string",
37
"front_view_img": "required|string",
38
"rear_view_img": "required|string",
39
"left_side_view_img": "required|string",
40
"right_side_view_img": "required|string",
41
"vehicle_license_img": "required|string",
42
"proof_of_ownership_img": "required|string",
43
"frequency_type": "required|string",
44
"sum_insured": 4000,
45
"insurance_cover": "required|string",
46
"tracker_value": "required|numeric",
47
"diagnostic_cost": 4000,
48
"duration": 3,
49
"vehicle_type": "required|string",
50
"registration_no": "required|string",
51
"vehicle_make": "Mercedes",
52
"vehicle_model": "required|numeric",
53
"year_make": "2022",
54
"vehicle_color": "required|string",
55
"engine_no": "required|string",
56
"chasis_no": "required|string",
57
"contact_person_name": "required|string",
58
"contact_person_address": "28 Atimi Busari",
59
"contact_person_phone_no": "08075656765",
60
"inspection_date": "2022-03-23"
61
}
62
',
63
CURLOPT_HTTPHEADER => array(
64
'Authorization: Bearer {{SECRETKEY}}',
65
'Content-Type: application/json'
66
),
67
));
68
69
$response = curl_exec($curl);
70
71
curl_close($curl);
72
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"first_name": "Harry",
4
"last_name": "Potter",
5
"phone_number": "08045754345",
6
"email": "[email protected]",
7
"gender": "male",
8
"address": "no 5, fairy lane off hogwort roads",
9
"relationship": "required|string",
10
"variant_type": "confaam",
11
"amount_insured": 500000,
12
"identity": "required|string",
13
"nok_surname": "Grengar",
14
"nok_othernames": "Hermione",
15
"nok_relationship": "required|string",
16
"nok_gender": "required|string",
17
"nok_phone_no": "09034543643",
18
"nok_email_address": "[email protected]",
19
"product_id":5,
20
"id_url":"https://gmail.com",
21
"id_number":"2424253642",
22
"id_type":"nin",
23
"speedometer_img": "required|string",
24
"engine_img": "required|string",
25
"interior_img": "required|string",
26
"front_view_img": "required|string",
27
"rear_view_img": "required|string",
28
"left_side_view_img": "required|string",
29
"right_side_view_img": "required|string",
30
"vehicle_license_img": "required|string",
31
"proof_of_ownership_img": "required|string",
32
"frequency_type": "required|string",
33
"sum_insured": 4000,
34
"insurance_cover": "required|string",
35
"tracker_value": "required|numeric",
36
"diagnostic_cost": 4000,
37
"duration": 3,
38
"vehicle_type": "required|string",
39
"registration_no": "required|string",
40
"vehicle_make": "Mercedes",
41
"vehicle_model": "required|numeric",
42
"year_make": "2022",
43
"vehicle_color": "required|string",
44
"engine_no": "required|string",
45
"chasis_no": "required|string",
46
"contact_person_name": "required|string",
47
"contact_person_address": "28 Atimi Busari",
48
"contact_person_phone_no": "08075656765",
49
"inspection_date": "2022-03-23"
50
}
51
);
52
53
var config = {
54
method: 'post',
55
url: 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_policy',
56
headers: {
57
'Authorization': 'Bearer {{SECRETKEY}}',
58
'Content-Type': 'application/json'
59
},
60
data: data
61
};
62
63
axios(config)
64
.then(function (response) {
65
console.log(JSON.stringify(response.data));
66
})
67
.catch(function (error) {
68
console.log(error);
69
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "Harry",
"last_name": "Potter",
"phone_number": "08045754345",
"email": "[email protected]",
"gender": "male",
"address": "no 5, fairy lane off hogwort roads",
"relationship": "required|string",
"variant_type": "confaam",
"amount_insured": 500000,
"identity": "required|string",
"nok_surname": "Grengar",
"nok_othernames": "Hermione",
"nok_relationship": "required|string",
"nok_gender": "required|string",
"nok_phone_no": "09034543643",
"nok_email_address": "[email protected]",
"product_id":5,
"id_url":"https://gmail.com",
"id_number":"2424253642",
"id_type":"nin",
"speedometer_img": "required|string",
"engine_img": "required|string",
"interior_img": "required|string",
"front_view_img": "required|string",
"rear_view_img": "required|string",
"left_side_view_img": "required|string",
"right_side_view_img": "required|string",
"vehicle_license_img": "required|string",
"proof_of_ownership_img": "required|string",
"frequency_type": "required|string",
"sum_insured": 4000,
"insurance_cover": "required|string",
"tracker_value": "required|numeric",
"diagnostic_cost": 4000,
"duration": 3,
"vehicle_type": "required|string",
"registration_no": "required|string",
"vehicle_make": "Mercedes",
"vehicle_model": "required|numeric",
"year_make": "2022",
"vehicle_color": "required|string",
"engine_no": "required|string",
"chasis_no": "required|string",
"contact_person_name": "required|string",
"contact_person_address": "28 Atimi Busari",
"contact_person_phone_no": "08075656765",
"inspection_date": "2022-03-23"
}'

Verify Comprehensive Motor Policy

post
https://sandbox.insurpass.com
/api/merchant/comprehensive_motor_verify_policy
This endpoints sends a token that verifies the creation of a Comprehensive Motor 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/comprehensive_motor_verify_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/comprehensive_motor_verify_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.com/api/merchant/comprehensive_motor_verify_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "IDP163438169412711526"
}'

List All Comprehensive Motor Policies

get
https://sandbox.insurpass.com
/api/merchant/get_comprehensive_motor_policies
This endpoint returns a list of all the Comprehensive Motor 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_comprehensive_motor_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/get_comprehensive_motor_policies',
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 GET https://sandbox.insurpass.com/api/merchant/get_comprehensive_motor_policies' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''

Comprehensive Motor Policy Details

post
https://sandbox.insurpass.com
/api/merchant/get_comprehensive_motor_policy_details
This endpoint returns an object containing a single Comprehensive Motor 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/get_comprehensive_motor_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 =>'{"policyNumber":"UIC/RE/INP/MOT/06102022/89168"}',
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({
3
"policyNumber":"UIC/RE/INP/MOT/06102022/89168"
4
});
5
6
var config = {
7
method: 'post',
8
url: 'https://sandbox.insurpass.com/api/merchant/get_comprehensive_motor_policy_details',
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.com/api/merchant/get_comprehensive_motor_policy_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"policyNumber":"UIC/RE/INP/MOT/06102022/89168"
}'

Comprehensive Motor Policy Quote

post
https://sandbox.insurpass.com
/api/merchant/get_comprehensive_motor_policy_quote
The endpoint return a quote for a Comprehensive Motor Policy 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/get_comprehensive_motor_policy_quote',
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
"vehicle_value":3000,"product_id":"5"
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
"vehicle_value":3000,"product_id":"5"
4
});
5
6
var config = {
7
method: 'post',
8
url: 'https://sandbox.insurpass.com/api/merchant/get_comprehensive_motor_policy_quote',
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.com/api/merchant/get_comprehensive_motor_policy_quote' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"vehicle_value":3000,"product_id":"5"
}'