Okada Policy
post
https://sandbox.insurpass.com
/api/merchant/initiate_okada_pass_policy
This endpoint initiates the creation of a okada insurance policy.
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/initiate_okada_pass_policy',
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
"email": "[email protected]",
16
"surname": "Parker",
17
"first_name": "Peter",
18
"gender": "male",
19
"date_of_birth": "2022-08-23",
20
"address": "ash kljk kjlhk",
21
"occupation": "popopo",
22
"phone_no": "08034565434",
23
"image": "https://image.jpg",
24
"frequency_type": "monthly",
25
"next_of_kin_surname": "salami",
26
"next_of_kin_relationship": "brother",
27
"next_of_kin_address": "as gjg kl",
28
"next_of_kin_email": "[email protected]",
29
"next_of_kin_phone_number": "08065456876",
30
"product_id": "5"
31
}',
32
CURLOPT_HTTPHEADER => array(
33
'Authorization: Bearer {{SECRETKEY}}',
34
'Content-Type: application/json'
35
),
36
));
37
38
$response = curl_exec($curl);
39
40
curl_close($curl);
41
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"email": "[email protected]",
4
"surname": "Parker",
5
"first_name": "Peter",
6
"gender": "male",
7
"date_of_birth": "2022-08-23",
8
"address": "ash kljk kjlhk",
9
"occupation": "popopo",
10
"phone_no": "08034565434",
11
"image": "https://image.jpg",
12
"frequency_type": "monthly",
13
"next_of_kin_surname": "salami",
14
"next_of_kin_relationship": "brother",
15
"next_of_kin_address": "as gjg kl",
16
"next_of_kin_email": "[email protected]",
17
"next_of_kin_phone_number": "08065456876",
18
"product_id": "5"
19
});
20
21
var config = {
22
method: 'post',
23
url: 'https://sandbox.insurpass.com/api/merchant/initiate_okada_pass_policy',
24
headers: {
25
'Authorization': 'Bearer {{SECRETKEY}}',
26
'Content-Type': 'application/json'
27
},
28
data: data
29
};
30
31
axios(config)
32
.then(function (response) {
33
console.log(JSON.stringify(response.data));
34
})
35
.catch(function (error) {
36
console.log(error);
37
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/initiate_okada_pass_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]",
"surname": "Parker",
"first_name": "Peter",
"gender": "male",
"date_of_birth": "2022-08-23",
"address": "ash kljk kjlhk",
"occupation": "popopo",
"phone_no": "08034565434",
"image": "https://image.jpg",
"frequency_type": "monthly",
"next_of_kin_surname": "salami",
"next_of_kin_relationship": "brother",
"next_of_kin_address": "as gjg kl",
"next_of_kin_email": "[email protected]",
"next_of_kin_phone_number": "08065456876",
"product_id": "5"
}'
post
https://sandbox.insurpass.com
/api/merchant/verify_okada_pass_policy
This endpoints sends a token that verifies the creation of a Okada insurance policy.
The Initiate token expires in 15 minutes, and if a user does not verify his/her subscription after 15 minutes of initiation, the details of the subscription will be deleted.
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/verify_okada_pass_policy',
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
"token": "OKP1645093519301421419"
16
}',
17
CURLOPT_HTTPHEADER => array(
18
'Authorization: Bearer {{SECRETKEY}}',
19
'Content-Type: application/json'
20
),
21
));
22
23
$response = curl_exec($curl);
24
25
curl_close($curl);
26
echo $response;
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"token": "OKP1645093519301421419"
4
});
5
6
var config = {
7
method: 'post',
8
url: 'https://sandbox.insurpass.com/api/merchant/verify_okada_pass_policy',
9
headers: {
10
'Authorization': 'Bearer {{SECRETKEY}}',
11
'Content-Type': 'application/json'
12
},
13
data: data
14
};
15
16
axios(config)
17
.then(function (response) {
18
console.log(JSON.stringify(response.data));
19
})
20
.catch(function (error) {
21
console.log(error);
22
});
curl --location --request POST https://sandbox.insurpass.com/api/merchant/verify_okada_pass_policy' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "OKP1645093519301421419"
}'
get
https://sandbox.insurpass.com
/api/merchant/merchant_okada_pass_policies
This endpoint returns a list of all the okada insurance policies
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/merchant_okada_pass_policies',
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/merchant_okada_pass_policies',
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/merchant_okada_pass_policies' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
get
https://sandbox.insurpass.com
/api/merchant/okada_pass_merchant_report
This endpoint returns an object containing a merchant's number of policies and claims
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_merchant_report',
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/okada_pass_merchant_report',
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/okada_pass_merchant_report' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
post
https://sandbox.insurpass.com
/api/merchant/okada_pass_policy_details
This endpoint returns an object containing a single Okada Policy
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_policy_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 =>'{"policy_number":"UIC/RE/INP/OPASS/20102022/66379"}',
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({"policy_number":"UIC/RE/INP/OPASS/20102022/66379"});
3
4
var config = {
5
method: 'post',
6
url: 'https://sandbox.insurpass.com/api/merchant/okada_pass_policy_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/okada_pass_policy_details' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{"policy_number":"UIC/RE/INP/OPASS/20102022/66379"}'
Last modified 10mo ago