The following endpoints will allow a merchant to subscribe their customer to the Parcel Guard insurance plan as well as request claims.
List All Parcel Guard Product
This endpoint returns a list of all the Parcel Guard products
GET
http://sandbox.insurpass.com/api/merchant/get_parcel_guard_product
Bearer {$secret-key}/{$api-key}
{
"success":true,
"response_message":"Parcel Guard policy report get successful",
"response_code":"",
"data":{
"no_of_policy":10,
"no_of_claim":0
}
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/get_parcel_guard_product',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer {{SECRETKEY}}',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var data = '';
var config = {
method: 'post',
url: 'https://sandbox.insurpass.com/api/merchant/get_parcel_guard_product',
headers: {
'Authorization': 'Bearer {{SECRETKEY}}',
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
curl --location --request GET https://sandbox.insurpass.com/api/merchant/get_parcel_guard_product' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''