Claims
post
https://sandbox.insurpass.com
/api/merchant/create_parcel_guard_policy_claim
The endpoint initiates the creation of a Parcel Guard 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/create_parcel_guard_policy_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
"insured_name": "Seth Rollins",
17
"details_of_incident": "It was a dark and stormy night",
18
"estimated_cost_of_damange": "22000",
19
"name_of_claimant": "Roman Reigns",
20
"signature": "https://example.com/image"
21
}',
22
CURLOPT_HTTPHEADER => array(
23
'Authorization: Bearer {{SECRETKEY}}',
24
'Content-Type: application/json'
25
),
26
));
27
28
$response = curl_exec($curl);
29
30
curl_close($curl);
31
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"policy_number": "UIC/RE/INP/MTP/06102022/53166",
4
"insured_name": "Seth Rollins",
5
"details_of_incident": "It was a dark and stormy night",
6
"estimated_cost_of_damange": "22000",
7
"name_of_claimant": "Roman Reigns",
8
"signature": "https://example.com/image"
9
});
10
11
var config = {
12
method: 'post',
13
url: 'https://sandbox.insurpass.com/api/merchant/create_parcel_guard_policy_claim',
14
headers: {
15
'Authorization': 'Bearer {{SECRETKEY}}',
16
'Content-Type': 'application/json'
17
},
18
data: data
19
};
20
21
axios(config)
22
.then(function (response) {
23
console.log(JSON.stringify(response.data));
24
})
25
.catch(function (error) {
26
console.log(error);
27
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/create_parcel_guard_policy_claim' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '({
"policy_number": "UIC/RE/INP/MTP/06102022/53166",
"insured_name": "Seth Rollins",
"details_of_incident": "It was a dark and stormy night",
"estimated_cost_of_damange": "22000",
"name_of_claimant": "Roman Reigns",
"signature": "https://example.com/image"
}'
get
https://sandbox.insurpass.com
/api/merchant/parcel_guard_policy_claim_details/:claim_id
This endpoint returns an object containing a single Parcel Guard 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/parcel_guard_policy_claim_details/{claim_id}',
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
'Content-Type: application/json'
17
),
18
));
19
20
$response = curl_exec($curl);
21
22
curl_close($curl);
23
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/parcel_guard_policy_claim_details/{claim_id}',
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/parcel_guard_policy_claim_details/:claim_id' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
get
https://sandbox.insurpass.com
/api/merchant/get_parcel_guard_policy_claims
This endpoint returns a list of all the Parcel Guard claim 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/get_parcel_guard_policy_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/get_parcel_guard_policy_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/get_parcel_guard_policy_claims' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
Last modified 11mo ago