Okada Claims
Last updated
Last updated
POST
https://sandbox.insurpass.com/api/merchant/create_okada_pass_claim
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
{
"success":true,
"response_message":"Keke pass claim policy claim initiated successfully",
"response_code":200,
"data":{
"keke_policy_id":24,
"policy_number":"UIC/RE/INP/KPASS/22032022/53349",
"date_of_occurance":"2022-02-02",
"address_of_occurance":"IDP164672978456281014",
"details_of_incidence":"IDP164672978456281014",
"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,
"means_of_claimant_identification":"IDP164672978456281014",
"status":"0",
"updated_at":"2022-04-21T16:28:05.000000Z",
"created_at":"2022-04-21T16:28:05.000000Z"
}
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/create_okada_pass_claim',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"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
}',
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 = JSON.stringify({
"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
});
var config = {
method: 'post',
url: 'https://sandbox.insurpass.com/api/merchant/create_okada_pass_claim',
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 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
}'
POST
https://sandbox.insurpass.com/api/merchant/okada_pass_claim_details
{
"success":true,
"response_message":"Keke pass claim fetched successfully",
"response_code":200,
"data":{
"keke_policy_id":24,
"policy_number":"UIC/RE/INP/KPASS/22032022/53349",
"date_of_occurance":"2022-02-02",
"address_of_occurance":"IDP164672978456281014",
"details_of_incidence":"IDP164672978456281014",
"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",
"means_of_claimant_identification":"IDP164672978456281014",
"status":"0",
"deleted_at":null,
"created_at":"2022-04-21T16:28:05.000000Z",
"updated_at":"2022-04-21T16:28:05.000000Z",
"user":{
"first_name":"required|string",
"middle_name":null,
"surname":"required|string",
"phone_no":"08045754345",
"email":"salami@gmail.com",
"address":null,
"gender":"male",
"date_of_birth":null,
"password":null,
"policy_no":null,
"have_beneficiaries":false,
"enable":true,
"next_of_kin_full_name":null,
"merchant_user_id":null,
"user_type":"user",
"created_at":"2022-03-08T08:29:42.000000Z",
"updated_at":"2022-03-08T08:29:42.000000Z",
"principal_policy_no":null,
"nin_number":null,
"id_url":null,
"id_type":null,
"profile_url":null,
"company_id":null,
"verify_phone":0,
"verify_email":0,
"town":null,
"state_of_residence":null,
"transaction_pin":null,
"occupation":null
},
"merchant":{
"id":1,
"company_name":"xyz",
"email":"xyz@gmail.com",
"phone_no":"0804532456",
"address":"38, Atimi Busari",
"category_id":1,
"secret_key":"XYZ-HTTP-CURL",
"username":"xyz insurance",
"enable":true,
"merchant_type":"sales_agent",
"created_at":"2021-10-10T11:24:55.000000Z",
"updated_at":"2021-10-10T11:24:57.000000Z",
"transaction_pin":null,
"verify_email":0,
"verify_phone":0,
"allow_negative_balance":0,
"charge_own_wallet":0
},
"keke_policy":{
"id":24,
"variant_type":"confaam",
"product_id":2,
"amount_insured":5000,
"policy_number":"UIC/RE/INP/KPASS/22032022/53349",
"nok_surname":"required|string",
"nok_othernames":"required|string",
"nok_relationship":"required|string",
"nok_gender":"required|string",
"nok_phone_no":"09034543643",
"nok_email":"sala@gmi.com",
"start_date":"2022-03-22",
"end_date":"2023-03-22",
"status":1,
"created_at":"2022-03-22T21:06:38.000000Z",
"updated_at":"2022-03-22T21:06:46.000000Z"
}
}
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/okada_pass_claim_details',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{"policyNumber":"UIC/RE/INP/OPASS/20102022/66379"
}',
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 = JSON.stringify({"policyNumber":"UIC/RE/INP/OPASS/20102022/66379"
});
var config = {
method: 'post',
url: 'https://sandbox.insurpass.com/api/merchant/okada_pass_claim_details',
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 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"
}'
GET
https://sandbox.insurpass.com/api/merchant/get_okada_pass_claims
{
"success":true,
"response_message":"Keke pass claim fetched successfully",
"response_code":200,
"data":[
{
"id":1,
"user_id":56,
"merchant_id":1,
"keke_policy_id":24,
"policy_number":"UIC/RE/INP/KPASS/22032022/53349",
"product_id":2,
"date_of_occurance":"2022-02-02",
"address_of_occurance":"IDP164672978456281014",
"details_of_incidence":"IDP164672978456281014",
"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",
"means_of_claimant_identification":"IDP164672978456281014",
"status":"0",
"deleted_at":null,
"created_at":"2022-04-21T16:28:05.000000Z",
"updated_at":"2022-04-21T16:28:05.000000Z",
"keke_policy":{
"id":24,
"policy_number":"UIC/RE/INP/KPASS/22032022/53349"
}
}
]
}
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/get_okada_pass_claims',
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}}'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
var axios = require('axios');
var data = '';
var config = {
method: 'get',
url: 'https://sandbox.insurpass.com/api/merchant/get_okada_pass_claims',
headers: {
'Authorization': 'Bearer {{SECRETKEY}}'
},
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_okada_pass_claims' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|