Parcel Guard Insurance
The following endpoints will allow a merchant to subscribe their customer to the Parcel Guard insurance plan as well as request claims.
get
http://sandbox.insurpass.com
/api/merchant/get_parcel_guard_product
This endpoint returns a list of all the Parcel Guard 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/get_parcel_guard_product',
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
var config = {
4
method: 'post',
5
url: 'https://sandbox.insurpass.com/api/merchant/get_parcel_guard_product',
6
headers: {
7
'Authorization': 'Bearer {{SECRETKEY}}',
8
'Content-Type': 'application/json'
9
},
10
data: data
11
};
12
13
axios(config)
14
.then(function (response) {
15
console.log(JSON.stringify(response.data));
16
})
17
.catch(function (error) {
18
console.log(error);
19
});
curl --location --request GET https://sandbox.insurpass.com/api/merchant/get_parcel_guard_product' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
Last modified 10mo ago