Links

Comprehensive Motor Claims

Initiate Comprehensive Motor claims

post
https://sandbox.insurpass.com
/api/merchant/comprehensive_motor_initiate_claim
The endpoint initiates the creation of a Comprehensive Motor claim.
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_initiate_claim',
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
"policy_number": "UIC/RE/INP/MOT/06102022/86154",
16
"estimate_of_loss": "90000",
17
"vehicle_damage_image": "https://image.jpg",
18
"incident_details": "It was a dark and stormy night."
19
}',
20
CURLOPT_HTTPHEADER => array(
21
'Authorization: Bearer {{SECRETKEY}}',
22
'Content-Type: application/json'
23
),
24
));
25
26
$response = curl_exec($curl);
27
28
curl_close($curl);
29
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"policy_number": "UIC/RE/INP/MOT/06102022/86154",
4
"estimate_of_loss": "90000",
5
"vehicle_damage_image": "https://image.jpg",
6
"incident_details": "It was a dark and stormy night"
7
});
8
9
var config = {
10
method: 'post',
11
url: 'https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_claim',
12
headers: {
13
'Authorization': 'Bearer {{SECRETKEY}}',
14
'Content-Type': 'application/json'
15
},
16
data: data
17
};
18
19
axios(config)
20
.then(function (response) {
21
console.log(JSON.stringify(response.data));
22
})
23
.catch(function (error) {
24
console.log(error);
25
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/comprehensive_motor_initiate_claim' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"policy_number": "UIC/RE/INP/MOT/06102022/86154",
"estimate_of_loss": "90000",
"vehicle_damage_image": "https://image.jpg",
"incident_details": "It was a dark and stormy night"
}'

Comprehensive Motor Claims Details

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

List All Comprehensive Motor Claims

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