Links

Okada Claims

Initiate Okada Claim

post
https://sandbox.insurpass.com
/api/merchant/create_okada_pass_claim
The endpoint initiates the creation of a Okada 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_okada_pass_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
"means_of_claimant_identification": "IDP164672978456281014",
16
"date_of_occurance": "2022-02-02",
17
"address_of_occurance": "13th Main street, off lonely road, code city.",
18
"details_of_incidence": "hfuihg shfiug fdv dhuidhhf iuhvushs sdhiasfsfs sfoif sfhf oiofviussiuu .",
19
"policy_number": "UIC/RE/INP/KPASS/03102022/29182",
20
"picture_of_incident": "http://IDP164672978456281014.com",
21
"medical_report": "http://IDP164672978456281014.com",
22
"death_certificate": "http://IDP164672978456281014.com",
23
"original_policy_certificate": "http://IDP164672978456281014.com",
24
"estimate_of_repair": 6000
25
}',
26
CURLOPT_HTTPHEADER => array(
27
'Authorization: Bearer {{SECRETKEY}}',
28
'Content-Type: application/json'
29
),
30
));
31
32
$response = curl_exec($curl);
33
34
curl_close($curl);
35
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"means_of_claimant_identification": "IDP164672978456281014",
4
"date_of_occurance": "2022-02-02",
5
"address_of_occurance": "13th Main street, off lonely road, code city.",
6
"details_of_incidence": "hfuihg shfiug fdv dhuidhhf iuhvushs sdhiasfsfs sfoif sfhf oiofviussiuu .",
7
"policy_number": "UIC/RE/INP/KPASS/03102022/29182",
8
"picture_of_incident": "http://IDP164672978456281014.com",
9
"medical_report": "http://IDP164672978456281014.com",
10
"death_certificate": "http://IDP164672978456281014.com",
11
"original_policy_certificate": "http://IDP164672978456281014.com",
12
"estimate_of_repair": 6000
13
});
14
15
var config = {
16
method: 'post',
17
url: 'https://sandbox.insurpass.com/api/merchant/create_okada_pass_claim',
18
headers: {
19
'Authorization': 'Bearer {{SECRETKEY}}',
20
'Content-Type': 'application/json'
21
},
22
data: data
23
};
24
25
axios(config)
26
.then(function (response) {
27
console.log(JSON.stringify(response.data));
28
})
29
.catch(function (error) {
30
console.log(error);
31
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/create_okada_pass_claim' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"means_of_claimant_identification": "IDP164672978456281014",
"date_of_occurance": "2022-02-02",
"address_of_occurance": "13th Main street, off lonely road, code city.",
"details_of_incidence": "hfuihg shfiug fdv dhuidhhf iuhvushs sdhiasfsfs sfoif sfhf oiofviussiuu .",
"policy_number": "UIC/RE/INP/KPASS/03102022/29182",
"picture_of_incident": "http://IDP164672978456281014.com",
"medical_report": "http://IDP164672978456281014.com",
"death_certificate": "http://IDP164672978456281014.com",
"original_policy_certificate": "http://IDP164672978456281014.com",
"estimate_of_repair": 6000
}'

Okada Claim Details

post
https://sandbox.insurpass.com
/api/merchant/okada_pass_claim_details
This endpoint returns an object containing a single okada 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/okada_pass_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/OPASS/20102022/66379"
15
}',
16
CURLOPT_HTTPHEADER => array(
17
'Authorization: Bearer {{SECRETKEY}}',
18
'Content-Type: application/json'
19
),
20
));
21
22
$response = curl_exec($curl);
23
24
curl_close($curl);
25
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({"policyNumber":"UIC/RE/INP/OPASS/20102022/66379"
3
});
4
5
var config = {
6
method: 'post',
7
url: 'https://sandbox.insurpass.com/api/merchant/okada_pass_claim_details',
8
headers: {
9
'Authorization': 'Bearer {{SECRETKEY}}',
10
'Content-Type': 'application/json'
11
},
12
data: data
13
};
14
15
axios(config)
16
.then(function (response) {
17
console.log(JSON.stringify(response.data));
18
})
19
.catch(function (error) {
20
console.log(error);
21
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/okada_pass_claim_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{"policyNumber":"UIC/RE/INP/OPASS/20102022/66379"
}'

List All Okada Claims

get
https://sandbox.insurpass.com
/api/merchant/get_okada_pass_claims
This endpoint returns a list of all the okada policy 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/get_okada_pass_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_okada_pass_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_okada_pass_claims' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''