Links

Third Party Motor Policy

Initiate Third Party Motor Policy

post
https://sandbox.insurpass.com
/api/merchant/third_party_motor_initiate_policy
This endpoint initiates the creation of a Third Party Motor 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/third_party_motor_initiate_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": "Tervor",
16
"last_name": "Belmont",
17
"phone_number": "08045754345",
18
"email": "[email protected]",
19
"gender": "male",
20
"variant_type": "confaam",
21
"amount_insured": 6000,
22
"identity": "required|string",
23
"product_id": "2",
24
"vehicle_type": "lorry",
25
"registration_no": "68656456AS",
26
"vehicle_make": "toyota",
27
"vehicle_model": "hilux",
28
"year_make": "2007",
29
"vehicle_color": "orange",
30
"engine_no": "564535354786",
31
"chasis_no": "8767574657",
32
"engine_img": "https://image.jpg",
33
"interior_img": "https://image.jpg",
34
"class_of_insurance": "https://image.jpg",
35
"certificate_no": "https://image.jpg",
36
"vehicle_value": "80000",
37
"vehicle_front_side_image": "https://image.jpg",
38
"vehicle_back_side_image": "https://image.jpg",
39
"vehicle_left_side_image": "https://image.jpg",
40
"vehicle_right_side_image": "https://image.jpg"
41
}',
42
CURLOPT_HTTPHEADER => array(
43
'Authorization: Bearer {{SECRETKEY}}',
44
'Content-Type: application/json'
45
),
46
));
47
48
$response = curl_exec($curl);
49
50
curl_close($curl);
51
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"first_name": "Tervor",
4
"last_name": "Belmont",
5
"phone_number": "08045754345",
6
"email": "[email protected]",
7
"gender": "male",
8
"variant_type": "confaam",
9
"amount_insured": 6000,
10
"identity": "required|string",
11
"product_id": "2",
12
"vehicle_type": "lorry",
13
"registration_no": "68656456AS",
14
"vehicle_make": "toyota",
15
"vehicle_model": "hilux",
16
"year_make": "2007",
17
"vehicle_color": "orange",
18
"engine_no": "564535354786",
19
"chasis_no": "8767574657",
20
"engine_img": "https://image.jpg",
21
"interior_img": "https://image.jpg",
22
"class_of_insurance": "https://image.jpg",
23
"certificate_no": "https://image.jpg",
24
"vehicle_value": "80000",
25
"vehicle_front_side_image": "https://image.jpg",
26
"vehicle_back_side_image": "https://image.jpg",
27
"vehicle_left_side_image": "https://image.jpg",
28
"vehicle_right_side_image": "https://image.jpg"
29
});
30
31
var config = {
32
method: 'post',
33
url: 'https://sandbox.insurpass.com/api/merchant/third_party_motor_initiate_policy',
34
headers: {
35
'Authorization': 'Bearer {{SECRETKEY}}',
36
'Content-Type': 'application/json'
37
},
38
data: data
39
};
40
41
axios(config)
42
.then(function (response) {
43
console.log(JSON.stringify(response.data));
44
})
45
.catch(function (error) {
46
console.log(error);
47
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/third_party_motor_initiate_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "Tervor",
"last_name": "Belmont",
"phone_number": "08045754345",
"email": "[email protected]",
"gender": "male",
"variant_type": "confaam",
"amount_insured": 6000,
"identity": "required|string",
"product_id": "2",
"vehicle_type": "lorry",
"registration_no": "68656456AS",
"vehicle_make": "toyota",
"vehicle_model": "hilux",
"year_make": "2007",
"vehicle_color": "orange",
"engine_no": "564535354786",
"chasis_no": "8767574657",
"engine_img": "https://image.jpg",
"interior_img": "https://image.jpg",
"class_of_insurance": "https://image.jpg",
"certificate_no": "https://image.jpg",
"vehicle_value": "80000",
"vehicle_front_side_image": "https://image.jpg",
"vehicle_back_side_image": "https://image.jpg",
"vehicle_left_side_image": "https://image.jpg",
"vehicle_right_side_image": "https://image.jpg"
}'

Verify Third Party Motor Policy

post
https://sandbox.insurpass.com
/api/merchant/third_party_motor_verify_policy
This endpoints sends a token that verifies the creation of a Verify Third Party 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/verify_okada_pass_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": "TPMI1666305085377207224"
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": "TPMI1666305085377207224"
4
});
5
6
var config = {
7
method: 'post',
8
url: 'https://sandbox.insurpass.com/api/merchant/verify_okada_pass_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/third_party_motor_verify_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "TPMI1666305085377207224"
}'

List All Third Party Motor Policies

get
https://sandbox.insurpass.com
/api/merchant/third_party_motor_policies
This endpoint returns a list of all the Third Party Motor insurance products
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/third_party_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/third_party_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/third_party_motor_policies' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''

Third Party Motor Policy Details

post
https://sandbox.insurpass.com
/api/merchant/third_party_get_policy_details
This endpoint returns an object containing a single Third Party 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/third_party_get_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/third_party_get_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/third_party_get_policy_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "UIC/RE/INP/MTP/20102022/50173"
}'

Third Party Motor Policy Quote

post
https://sandbox.insurpass.com
/api/merchant/third_party_get_quote
The endpoint return a quote for a Third Party 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/third_party_get_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
"vehicleValue":"89000",
16
"product_id":"2"
17
}',
18
CURLOPT_HTTPHEADER => array(
19
'Authorization: Bearer {{SECRETKEY}}',
20
'Content-Type: application/json'
21
),
22
));
23
24
$response = curl_exec($curl);
25
26
curl_close($curl);
27
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"vehicleValue":"89000",
4
"product_id":"2"
5
});
6
7
var config = {
8
method: 'post',
9
url: 'https://sandbox.insurpass.com/api/merchant/third_party_get_quote',
10
headers: {
11
'Authorization': 'Bearer {{SECRETKEY}}',
12
'Content-Type': 'application/json'
13
},
14
data: data
15
};
16
17
axios(config)
18
.then(function (response) {
19
console.log(JSON.stringify(response.data));
20
})
21
.catch(function (error) {
22
console.log(error);
23
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/third_party_get_quote' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"vehicleValue":"89000",
"product_id":"2"
}'