Policy
Initiate Group Life Policy
This endpoint initiates a group life policy with a post request
POST
https://sandbox.insurpass.com/api/merchant/group-life/policy/initiate-group-life-policy
Successful initiation of policy generates a token that would be used to verify a transaction
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Request Body
email*
Principal Customer's email address -email@domain.com
first_name*
String
Principal Customer's first name - Favour
surname*
String
Principal Customer's surname - Ezedibia
phone_no*
numeric|digits:11numeric|digits:11
Principal Customer's phone number - 08102223475 (digits:11)
gender*
String
Principal Customer's gender - female, male
dob*
String
Principal Customer's date of birth. yy-mm-dd
product_id*
String
The unique number that identifies Group insurance product you're purchasig - 3
group_name*
String
Name of the group purchasing the plan
group_type*
String
Type of group purchasing the plan
first_person_name*
String
The name of the first person of contact for the group
group_contact_address*
String
The address information of the group
first_person_phone*
numeric|digits:11
The phone number of the first person of contact for the group
second_person_name*
String
The name of the second person of contact for the group
second_person_phone*
numeric|digits:11
The phone number of the second person of contact for the group
status*
String
members*
String
the details of each group member
Verify Group Life Policy
This endpoint verifies the token which was generated during the initiation of the policy.
POST
https://sandbox.insurpass.com/api/merchant/group-life/policy/verify-group-life-policy
Note that the token expires after a certain duration
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
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.
Get Merchant Group Life Policy
This endpoint returns all the policies created by the merchant
GET
https://sandbox.insurpass.com/api/merchant/group-life/policy/merchant-group-life-policies
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Group Life Policy Details
This endpoint returns the merchant policy details.
POST
https://sandbox.insurpass.com/api/merchant/group-life/policy/group-life-policy-details
The developer needs to provide the policy number for the policy details to display.
Headers
Authorization*
String
Bearer {$secret-key}/{$api-key}
Content-Type*
String
application/json
Request Body
Policy_number*
String
The unique number that identifies the purchased insurance policy - IN98570819
Last updated