mycover.ai
  • Home
  • Distributor
  • 🚀Getting Started
    • Quickstart
    • Environments
    • Authentication
    • Testing
    • Errors
    • Go Live Checklist
    • FAQs
  • 🔌Libraries & SDKs
    • Javascript
    • Vue 2
    • Vue 3
    • React
    • Flutter
    • Android
    • React Native
    • iOS
  • 📦api reference
    • Products
      • 🚘Auto
        • Aiico
        • Leadway
        • MyCoverGenius
        • Sovereign Trust
        • Coronation
        • Tangerine
        • Sanlam
      • ♥️Health
        • Hygeia
          • Hyprime Insurance
          • Hybasic Insurance
        • Bastion
          • Bastion Health
          • MediSure
        • Malaria Cover
      • 💞Personal Accident Cover
        • Aiico
        • Leadway
        • Sanlam
      • 🏠Content (Home/Office)
        • Aiico
        • Coronation
        • Sanlam
      • ✈️Travel
        • Allianz
        • Aiico
      • 💵Life Insurance
        • Credit Life
        • SME Flex
        • Flex Life
      • 🚚Goods In Transit
        • Goods In Transit (GIT)
        • Goods In Transit (GIT) On-demand
      • 💻Gadget
        • Sovereign Trust Insurance
        • Coronation
        • Tangerine
      • 🛳️Marine Insurance ✨
        • MyCoverGenius Import Marine Cover
        • Marine Cover
    • Policies
    • Claims
      • Credit Life
    • Wallet
    • Transactions
    • Customers
    • Auxiliary
      • Products
        • Bulk Purchase
  • 🧳Services
    • Webhooks
      • Validation
      • Purchase Webhook
      • Renewal Webhook
    • Messaging
Powered by GitBook
On this page
  • Get Hospital List
  • Buy Health
  • Renew Health

Was this helpful?

  1. api reference
  2. Products
  3. Health
  4. Bastion

Bastion Health

Get affordable health insurance plans with access to over 1000 hospitals for your customers.

PreviousBastionNextMediSure

Last updated 2 months ago

Was this helpful?

Certain properties obtain their values from supplementary endpoints. Refer to the page for a list of these additional endpoints.

Get Hospital List

POST https://api.mycover.ai/v1/products/bastion/get-hospital-list

Endpoint for fetching a list of hospitals for Bastion health insurance

Query

Name
Type
Description

provider_type

string

provider_type must be one of the following values: Hospital, Pharmacy, Optical/Ophthalmology, Physiotherapist, Dentist, Polyclinic, Doctor, Ambulatory Center, Diagnostic Centres, Radiology, Medical Supplies Company, Gym/Fitness Centres, Mental Wellbeing, Child Care, Maternal Health, Emergency Service, Public Health Facility

state

string

state must be one of the following values: Abia, Adamawa, Akwa Ibom, Anambra, Bauchi, Bayelsa, Benue, Borno, Cross River, Delta, Ebonyi, Edo, Ekiti, Enugu, Abuja (FCT), Gombe, Imo, Jigawa, Kaduna, Kano, Katsina, Kebbi, Kogi, Kwara, Lagos, Nasarawa, Niger, Ogun, Ondo, Osun, Oyo, Plateau, Rivers, Sokoto, Taraba, Yobe, Zamfara

plan

string

plan must be one of the following values: FlexiCare Mini, FlexiCare, ZenCare, ZenCare Plus, ZenCare Prime, PrimeCare, PrimeCare Plus

Response

{
    "responseCode": 1,
    "responseText": "Hospital list fetched successfully",
    "data": {
        "hospital_list": {
            "status": true,
            "message": "Providers list fetched successfully",
            "data": [
                {
                    "category": "Hospital",
                    "code": "HO00009",
                    "name": "Lifecare Hospital",
                    "email": "kamal@zaax.com",
                    "phone": "01265464412",
                    "addressLine1": "Noida-1",
                    "addressLine2": "Noida-2",
                    "state": "Abia",
                    "city": "Hawul",
                    "latitude": 0,
                    "longitude": 0,
                    "rating": 3,
                    "country": "Nigeria",
                    "open": true
                },
                {
                    "category": "Hospital",
                    "code": "HO00380",
                    "name": "FREEWAY",
                    "email": "kirax93223@chinamkm.com",
                    "phone": "9868170902",
                    "addressLine1": "122, P.T.S. COLONY",
                    "addressLine2": "",
                    "state": "Abia",
                    "city": "Aba South",
                    "latitude": 0,
                    "longitude": 0,
                    "rating": 0,
                    "country": "Nigeria",
                    "open": true
                },
                {
                    "category": "Hospital",
                    "code": "HO00381",
                    "name": "JACK REACHERS",
                    "email": "dennis.sabu@zaax.com",
                    "phone": "9564378500",
                    "addressLine1": "122, P.T.S. COLONY",
                    "addressLine2": "",
                    "state": "Abia",
                    "city": "Aba South",
                    "latitude": 0,
                    "longitude": 0,
                    "rating": 0,
                    "country": "Nigeria",
                    "open": true
                }
            ]
        }
    }
}

Buy Health

Connect this endpoint to give your customers healthcare insurance from Bastion

POST https://api.mycover.ai/v1/products/bastion/buy-health

Request Body

Name
Type
Description

first_name*

string

First name of the buyer

last_name*

string

Last name of the buyer

email*

string

Email address of the buyer

phone_number*

string

Phone number of the buyer

gender*

string

Male or Female

marital_status

string

marital_status must be one of the following values: Single, Married, Divorced, Widowed, SingleParents

image_url*

string

The URL of buyers's passport image

date_of_birth*

string

Date of birth of the buyer

payment_plan*

number

The number of months you are buying for

product_id*

string

This is the ID of the insurance plan.

{
    "responseCode": 1,
    "responseText": "Purchase Successful",
    "data": {
        "policy": {
            "id": "cb5cf399-88e8-4a82-9cdc-bc6f0cca9941",
            "app_mode": "test",
            "active": true,
            "first_name": "Ken",
            "last_name": "Jim",
            "email": "glitzyken177@gmail.com",
            "dob": "1997-12-12",
            "phone": "09095104478",
            "start_date": "2024-07-02T09:35:08.000Z",
            "expiration_date": "2024-08-02T09:35:08.000Z",
            "activation_date": "2024-07-02T09:35:08.000Z",
            "distributor_id": "10cd1dac-3a5c-43ee-b935-641d53f9cb27",
            "customer_id": "916c28bb-ec70-4a2d-b6ea-07794b139513",
            "buyer_id": "916c28bb-ec70-4a2d-b6ea-07794b139513",
            "product_id": "0521ffe3-e7c1-4bfa-b90e-d69ab311ec98",
            "product_category_id": "9d78bc79-3fa8-447d-b688-e42c1c6838a0",
            "provider_id": "0ef7f726-19e1-438c-87aa-574ca1718726",
            "meta": {
                "payload": {
                    "plan_id": "41",
                    "customer": {
                        "dob": "1997-12-12",
                        "city": 1,
                        "phone": "09095104478",
                        "state": 1,
                        "gender": "Male",
                        "address": "My residential address",
                        "country": 164,
                        "lastName": "Jim",
                        "relation": "Self",
                        "firstName": "Ken",
                        "maritalStatus": 2
                    },
                    "policyId": "2058",
                    "reference": "JPQAUNJBJD"
                },
                "id_image": "https://via.placeholder.com/300/09f/fff.png",
                "payment_plan": 1,
                "hmo_policy_id": "100005512",
                "provider_expiry": "2025-05-08 23:59:59",
                "provider_policy_id": "2058",
                "id_card_url": "https://s3.eu-west-2.amazonaws.com/staging.mycover.ai/269e57f2-f780-479a-9fc3-4fdd7d3a8371-Ken"
            },
            "genius_price": 55000,
            "market_price": 55000,
            "purchase_id": "696f1224-13f1-40ea-89dd-b0d2834d7737",
            "profit": 21725,
            "submitted_to_provider": true,
            "updated_at": "2024-07-02T09:35:12.625Z",
            "created_at": "2024-07-02T09:35:08.014Z",
            "history": null,
            "deleted_at": null
        }
    }
}
// Sample Request Payload
{
    "first_name": "Ken",
    "last_name": "Jim",
    "email": "glakitzy177@gmail.com",
    "phone_number": "09095104478",
    "gender": "Male",
    "marital_status": "Married",
    "image_url": "https://via.placeholder.com/300/09f/fff.png",
    "date_of_birth": "1997-12-12",
    "payment_plan": 1,
    "product_id": "0521ffe3-e7c1-4bfa-b90e-d69ab311ec98"
}

Renew Health

POST https://api.mycover.ai/v1/products/mcg/renew-mcg-health

This endpoint is for renewing a Bastion health policy using its UUID.

Body

Name
Type
Description

policy_id

string

UUID of the policy

payment_plan

number

Number of months as the cover period. Min 1, Max 12.

Response

{
    "responseCode": 1,
    "responseText": "Renewal Successful",
    "data": {
        "policy": {
            "id": "cb5cf399-88e8-4a82-9cdc-bc6f0cca9941",
            "app_mode": "test",
            "active": true,
            "first_name": "Ken",
            "last_name": "Jim",
            "email": "glitzyken177@gmail.com",
            "dob": "1997-12-12",
            "phone": "09095104478",
            "start_date": "2024-07-02T09:35:08.000Z",
            "expiration_date": "2024-08-02T09:35:08.000Z",
            "activation_date": "2024-07-02T09:35:08.000Z",
            "distributor_id": "10cd1dac-3a5c-43ee-b935-641d53f9cb27",
            "customer_id": "916c28bb-ec70-4a2d-b6ea-07794b139513",
            "buyer_id": "916c28bb-ec70-4a2d-b6ea-07794b139513",
            "product_id": "0521ffe3-e7c1-4bfa-b90e-d69ab311ec98",
            "product_category_id": "9d78bc79-3fa8-447d-b688-e42c1c6838a0",
            "provider_id": "0ef7f726-19e1-438c-87aa-574ca1718726",
            "meta": {
                "payload": {
                    "plan_id": "41",
                    "customer": {
                        "dob": "1997-12-12",
                        "city": 1,
                        "phone": "09095104478",
                        "state": 1,
                        "gender": "Male",
                        "address": "My residential address",
                        "country": 164,
                        "lastName": "Jim",
                        "relation": "Self",
                        "firstName": "Ken",
                        "maritalStatus": 2
                    },
                    "policyId": "2058",
                    "reference": "JPQAUNJBJD"
                },
                "id_image": "https://via.placeholder.com/300/09f/fff.png",
                "payment_plan": 1,
                "hmo_policy_id": "100005512",
                "provider_expiry": "2025-05-08 23:59:59",
                "provider_policy_id": "2058",
                "id_card_url": "https://s3.eu-west-2.amazonaws.com/staging.mycover.ai/269e57f2-f780-479a-9fc3-4fdd7d3a8371-Ken"
            },
            "genius_price": 55000,
            "market_price": 55000,
            "purchase_id": "696f1224-13f1-40ea-89dd-b0d2834d7737",
            "profit": 21725,
            "submitted_to_provider": true,
            "updated_at": "2024-07-02T09:35:12.625Z",
            "created_at": "2024-07-02T09:35:08.014Z",
            "history": null,
            "deleted_at": null
        }
    }
}
// Sample Request Payload
{
    "policy_id": "cb5cf399-88e8-4a82-9cdc-bc6f0cca9941",
    "payment_plan": 2
}

Certain properties obtain their values from supplementary endpoints. Refer to the page for a list of these additional endpoints.

📦
♥️
Auxiliary
Auxiliary