Shop Insurance Claims
post
https://sandbox.insurpass.com
/api/merchants/shop_insure_policy_initiate_claim
The endpoint initiates the creation of a Shop Insurance claim.
PHP
NODE JS
Untitled
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/shop_insure_policy_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/SI/30092022/79187",
16
"insured_name": "Salami Kaol",
17
"incident_details": "This is a detail",
18
"suspects": [
19
{
20
"name": "Sala Kolawole",
21
"address": "okoko ljjkh"
22
}
23
],
24
"witnesses": [
25
{
26
"name": "Kolawole",
27
"address": "lffsfnksfjk sfjsljflsf",
28
"phone": "090553435353"
29
}
30
],
31
"lostItems": [
32
{
33
"item": "dsff fs",
34
"value": 4255
35
}
36
],
37
"injuredPersons": [
38
{
39
"name": "Kolawole Salami",
40
"treatment_cost": 3000,
41
"attached_bill": "https://www.attachment.com"
42
}
43
],
44
"name_of_claimant": "89788 gfhfh",
45
"signature": "ffafaf_sfdfs",
46
"phone_number": "08034543234"
47
}',
48
CURLOPT_HTTPHEADER => array(
49
'Authorization: Bearer {{SECRETKEY}}',
50
'Content-Type: application/json'
51
),
52
));
53
54
$response = curl_exec($curl);
55
56
curl_close($curl);
57
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"policy_number": "UIC/RE/INP/SI/30092022/79187",
4
"insured_name": "Salami Kaol",
5
"incident_details": "This is a detail",
6
"suspects": [
7
{
8
"name": "Sala Kolawole",
9
"address": "okoko ljjkh"
10
}
11
],
12
"witnesses": [
13
{
14
"name": "Kolawole",
15
"address": "lffsfnksfjk sfjsljflsf",
16
"phone": "090553435353"
17
}
18
],
19
"lostItems": [
20
{
21
"item": "dsff fs",
22
"value": 4255
23
}
24
],
25
"injuredPersons": [
26
{
27
"name": "Kolawole Salami",
28
"treatment_cost": 3000,
29
"attached_bill": "https://www.attachment.com"
30
}
31
],
32
"name_of_claimant": "89788 gfhfh",
33
"signature": "ffafaf_sfdfs",
34
"phone_number": "08034543234"
35
});
36
37
var config = {
38
method: 'post',
39
url: 'https://sandbox.insurpass.com/api/merchant/shop_insure_policy_initiate_claim',
40
headers: {
41
'Authorization': 'Bearer {{SECRETKEY}}',
42
'Content-Type': 'application/json'
43
},
44
data: data
45
};
46
47
axios(config)
48
.then(function (response) {
49
console.log(JSON.stringify(response.data));
50
})
51
.catch(function (error) {
52
console.log(error);
53
});
curl --location --request POST https://sandbox.insurpass.com/api/merchants/shop_insure_policy_initiate_claim' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"policy_number": "UIC/RE/INP/SI/30092022/79187",
"insured_name": "Salami Kaol",
"incident_details": "This is a detail",
"suspects": [
{
"name": "Sala Kolawole",
"address": "okoko ljjkh"
}
],
"witnesses": [
{
"name": "Kolawole",
"address": "lffsfnksfjk sfjsljflsf",
"phone": "090553435353"
}
],
"lostItems": [
{
"item": "dsff fs",
"value": 4255
}
],
"injuredPersons": [
{
"name": "Kolawole Salami",
"treatment_cost": 3000,
"attached_bill": "https://www.attachment.com"
}
],
"name_of_claimant": "89788 gfhfh",
"signature": "ffafaf_sfdfs",
"phone_number": "08034543234"
}'
post
https://sandbox.insurpass.com
/api/merchant/shop_insure_policy_claim_details
This endpoint returns an object containing a single Shop Insurance 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/shop_insure_policy_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 =>'{"policyNumber":"UIC/RE/INP/SI/30092022/79187"}',
15
CURLOPT_HTTPHEADER => array(
16
'Authorization: Bearer {{SECRETKEY}}',
17
'Content-Type: application/json'
18
),
19
));
20
21
$response = curl_exec($curl);
22
23
curl_close($curl);
24
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({"policyNumber":"UIC/RE/INP/SI/30092022/79187"});
3
4
var config = {
5
method: 'post',
6
url: 'https://sandbox.insurpass.com/api/merchant/shop_insure_policy_claim_details',
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 POST https://sandbox.insurpass.com/api/merchant/shop_insure_policy_claim_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{"policyNumber":"UIC/RE/INP/SI/30092022/79187"}'
get
https://sandbox.insurpass.com
/api/merchant/shop_insure_policy_merchant_claims
This endpoint returns a list of all the Shop Insurance 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/shop_insure_policy_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('axio');
2
var data = '';
3
4
var config = {
5
method: 'get',
6
url: 'https://sandbox.insurpass.com/api/merchant/shop_insure_policy_merchant_claims',
7
headers: {
8
'Authorization': 'Bearer {{SECRETKEY}}'
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/shop_insure_policy_merchant_claims' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
Last modified 11mo ago