Micro-health Insurance

The following endpoints will allow a merchant to subscribe their customer to the Shop insurance plan as well as request claims.

List All Products

This endpoint returns a list of all the micro-health products

GET https://sandbox.insurpass.com/api/merchant/micro_health/products

This endpoint allows you to request a list of all the micro-health insurance products available on Insurpass.

Headers

NameTypeDescription

Authorization*

String

Bearer {$secret-key}/{$api-key}

Content-Type*

String

application/json

{
    "success": true,
    "data": [
        {
            "id": 1,
            "name": "malaria care 1",
            "details": "<p>my product details</p>",
            "beneficiaries": true,
            "max_beneficiaries": 3,
            "provider_id": 1,
            "logo_url": null,
            "enable": true,
            "created_at": "2021-03-26T22:57:33.000000Z",
            "updated_at": "2021-03-26T22:57:34.000000Z",
            "price_config": [
                {
                    "id": 1,
                    "product_id": 1,
                    "no_of_users": 2,
                    "total_price": "400.00",
                    "product_code": "AXA67266420",
                    "product_short_code": "MC1"
                },
                {
                    "id": 2,
                    "product_id": 1,
                    "no_of_users": 3,
                    "total_price": "400.00",
                    "product_code": "uuut66386",
                    "product_short_code": "jj6"
                }
            ]
        }
    ],
    "message": "Products retrieved successfully"
}
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/micro_health/products',
  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;

Last updated