Policy
Insurpass' Subscription endpoints will allow a merchant (3rd party app) to sign up its customers for any of the micro-insurance plans by requesting such components via Insurpass API calls.
NOTE: If a principal customer has one beneficiary that means the number of users is two (2) and you are going to use''price_config''
for the number of users (2) respectively.
Retrieve Quoted Price
Get a quoted price
POST
https://sandbox.insurpass.comapi/merchant/micro_health/get_quote
This endpoint allows a merchant to get and display the price of the micro-health insurance plan about to be subscribed to by the customer.
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Request Body
subscription_type*
String
What type of micro-healthy insurance subscription the principal customer is purchasing - ['monthly', 'yearly', 'quarterly'].
no_of_users*
integer
Number of beneficiaries - 4
product_id*
string
The unique number that identifies which insurance product you're purchasing - 3
Initiate Micro-Health Policy
This method initiates the creation of a Micro-Health Policy.
POST
https://sandbox.insurpass.com/api/merchant/micro_health/initiate
This endpoint allows you to subscribe your customers to the Malaria care plan for the first time.
Headers
Authorization*
string
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application
Request Body
first_name*
string
Principal Customer's first name - Favour
surname*
string
Principal Customer's surname (Last name) - Ezedibia
email*
Principal Customer's email address -- email@domain.com
phone_no*
numeric|digits:11
Principal Customer's phone number - 08102223475
date_of_birth*
string
Principal Customer's date of birth - FORMAT: YYY-MM-DD
product_id*
string
The unique number that identifies micro-health insurance product you're purchasig - 3
subscription_type*
string
Accepted: ['monthly', 'quarterly' and 'yearly']
amount*
numeric
The price of the insurance policy - 200,000
nin_number*
integer
The Principal Customer's NIN - 22222222222
first_beneficiary_full_name*
string
The name of the first beneficiary added by the Principal customer
second_beneficiary_full_name*
string
The name of the second beneficiary added by the Principal Customer.
third_beneficiary_full_name*
string
The name of the third beneficiary added by the Principal Customer
id_url*
string
profile_url*
string
Verify Micro-Health Policy
This endpoints sends a token that verifies the creation of a Micro-Health Policy.
POST
https://sandbox.insurpass.com/api/merchant/micro_health/verify
This endpoint allows you to verify that a customer has successfully subscribed to the Malaria care plan.
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Request Body
token*
string
Note that after 15 minutes, the token expires and you will need to reinitiate - IDP163438169412711526
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.
Renew Subscription
This endpoints renews a Micro-Health Policy.
POST
https://sandbox.insurpass.com/api/merchant/micro_health/top_up
This endpoint allows you renew your customers malaria care plan subscription_
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Request Body
amount*
numeric
Amount the micro-health insurance plan cost to purchase - 200,000
subscription_type*
string
What type of micro-healthy insurance subscription the principal customer is purchasing - ['monthly', 'yearly', 'quarterly'].
policy_no*
string
Principal customer's insurance policy number for the micro health plan. - "UIC/HGJ/7685/GHF
The renewal of an insurance plan is dependent on the payment frequency selected by the principal customer at the point of subscription. The payment frequency could either be monthly, quarterly or annually.
List of Micro-health Policy subscriptions
This endpoint returns a list of all the Micro-health Policy subscriptions
GET
https://sandbox.insurpass.com/api/merchant/micro_health/all_subscriptions
This endpoint allows a merchant to request for the list of all subscriptions made on their platform
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
A merchant can request all subscribed customers' details either per day, week, month, quarter, year or from one specific date to another.
Validate subscription by Policy number
This endpoint validates a subscription by Policy number
GET
https://sandbox.insurpass.com/api/merchant/micro_health/validate_policy/:policy_no
This endpoint allows a merchant to request a specific customer's details by passing the customer's policy number for validation.
Path Parameters
policy_no
String
The unique number that identifies the purchased insurance policy - 20570819
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Last updated