Links

Third Party Motor Claims

Initiate Third Party Claims

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

Third Party Motor Claim Details

post
https://sandbox.insurpass.com
/api/merchant/third_party_motor_claim_details
This endpoint returns an object containing a single Third Party 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/third_party_motor_claim_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 =>'{
15
"policy_number":"UIC/RE/INP/MTP/06102022/75835"
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
"policy_number":"UIC/RE/INP/MTP/06102022/75835"
4
});
5
6
var config = {
7
method: 'post',
8
url: 'https://sandbox.insurpass.com/api/merchant/third_party_motor_claim_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/third_party_motor_claim_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"policy_number":"UIC/RE/INP/MTP/06102022/75835"
}'

List All Third Party Motor Claims

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