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

Was this helpful?

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

MediSure

Get affordable health insurance plans with access to phamacies for your customers.

PreviousBastion HealthNextMalaria Cover

Last updated 3 months ago

Was this helpful?

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

Buy MediSure

Use this endpoint to give your customers the MediSure insurance from Bastion

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

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

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 product id

The product id can be any of the following "fe672d5d-5038-4fab-a48e-833211023a37" for MediSure, "fe772d5d-5038-4fab-a48e-833211023a38" for MediSure Plus and "fe782d5d-5038-4fab-a48e-833211023a49" for MediSure Prime.

{
    "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",
                    },
                    "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",
    "image_url": "https://via.placeholder.com/300/09f/fff.png",
    "date_of_birth": "1997-12-12",
    "payment_plan": 1,
    "product_id": "fe672d5d-5038-4fab-a48e-833211023a37"
}

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

📦
♥️
Auxiliary
Auxiliary