Bastion
Get affordable health insurance plans with access to over 1000 hospitals for your customers.
Certain properties obtain their values from supplementary endpoints. Refer to the Auxiliary 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
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
{
"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"
}
Certain properties obtain their values from supplementary endpoints. Refer to the Auxiliary page for a list of these additional endpoints.
Last updated