---
agentTools:
  projectIndex: https://nuclues-enrolment.readme.io/llms.txt
---

# Buy corporate plan

Buy corporate plan

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Introduction",
    "description": "**Technology for Africa’s Health Insurance Industry** Technology and finance infrastructure to make health insurance affordable and accessible.\nIntegrations We aim to provide our API's for developers and businesses to offer insurance services to their existing customer base through REST APIs and without doing the heavy lifting. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.",
    "version": "2.1.0"
  },
  "servers": [
    {
      "description": "Sandbox",
      "url": "https://api.staging.v2.nucleusisafrica.com/api"
    },
    {
      "description": "production",
      "url": "https://production.v1.nucleusisafrica.com/api/"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Buy Health Plan (SME)"
    }
  ],
  "paths": {
    "/buy-corporate-plan": {
      "post": {
        "tags": [
          "Buy Health Plan (SME)"
        ],
        "summary": "Buy corporate plan",
        "description": "Buy corporate plan",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "test case 1": {
                  "value": {
                    "plan": 7,
                    "agreement": true,
                    "companyDetails": {
                      "companyName": "Nucleus SYS Test",
                      "companyAddress": "Lagos, Nigeria",
                      "companyEmail": "francis@nucleus.com.ng",
                      "companyPhone": "08066518328",
                      "companyIndustry": "Technology",
                      "companyCacNo": "RC-16725728"
                    },
                    "enrolloes": [
                      {
                        "firstname": "Francis",
                        "lastname": "Awuya",
                        "email": "francis@example.com",
                        "phone": "234806518328",
                        "gender": "male",
                        "dob": "5/10/1997",
                        "address": "Olla’s Place, Millenium Estate, Lekki Phase 1, Lagos",
                        "hospital": "Ola Hospital, Ikeja, Lagos Nigeria.",
                        "existingConditions": false
                      },
                      {
                        "firstname": "James",
                        "lastname": "Wale",
                        "email": "james@example.com",
                        "gender": "male",
                        "dob": "5/10/1997",
                        "phone": "234806518328",
                        "address": "Olla’s Place, Millenium Estate, Lekki Phase 1, Lagos",
                        "hospital": "Bola Hospital, Iyana-Ipaja, Lagos Nigeria.",
                        "existingConditions": true,
                        "condition": {
                          "healthCondition": "Lorem Ipsum",
                          "healthConditionDuration": "06/20",
                          "healthConditionMedication": "Lorem Ipsum"
                        }
                      },
                      {
                        "firstname": "Bella",
                        "lastname": "Ole",
                        "email": "bella@example.com",
                        "gender": "male",
                        "dob": "5/10/1997",
                        "phone": "234806518328",
                        "address": "Olla’s Place, Millenium Estate, Lekki Phase 1, Lagos",
                        "hospital": "hype Hospital, Jubowu, Lagos Nigeria.",
                        "existingConditions": true,
                        "condition": {
                          "healthCondition": "Lorem Ipsum",
                          "healthConditionDuration": "06/20",
                          "healthConditionMedication": "Lorem Ipsum"
                        }
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/buy-plan-sme-requestBody"
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "201": {
            "description": "Successful created response",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "buy-plan-sme-requestBody": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "integer",
            "description": "plan ID (selected plan ID)",
            "example": 7
          },
          "agreement": {
            "type": "boolean",
            "description": "agreement must be specified and set to true if agreed on!",
            "example": true
          },
          "companyDetails": {
            "type": "object",
            "description": "sme details",
            "example": {
              "companyDetails": {
                "companyName": "NucleusIS Test company LTD",
                "companyAddress": "Lagos, Nigeria",
                "companyEmail": "francis@nucleus.com.ng",
                "companyPhone": "08066518328",
                "companyIndustry": "Technology",
                "companyCacNo": "RC-16725728"
              }
            }
          },
          "enrolles": {
            "description": "all enrolles for the specified health plan.",
            "type": "array",
            "items": {
              "type": "object"
            },
            "example": {
              "enrolloes": [
                {
                  "firstname": "Francis",
                  "lastname": "Awuya",
                  "email": "francis@example.com",
                  "phone": "234806518328",
                  "gender": "male",
                  "dob": "5/10/1997",
                  "address": "Olla’s Place, Millenium Estate, Lekki Phase 1, Lagos",
                  "hospital": "Ola Hospital, Ikeja, Lagos Nigeria.",
                  "existingConditions": false
                },
                {
                  "firstname": "James",
                  "lastname": "Wale",
                  "email": "james@example.com",
                  "gender": "male",
                  "dob": "5/10/1997",
                  "phone": "234806518328",
                  "address": "Olla’s Place, Millenium Estate, Lekki Phase 1, Lagos",
                  "hospital": "Bola Hospital, Iyana-Ipaja, Lagos Nigeria.",
                  "existingConditions": true,
                  "condition": {
                    "healthCondition": "Lorem Ipsum",
                    "healthConditionDuration": "06/20",
                    "healthConditionMedication": "Lorem Ipsum"
                  }
                },
                {
                  "firstname": "Bella",
                  "lastname": "Ole",
                  "email": "bella@example.com",
                  "gender": "male",
                  "dob": "5/10/1997",
                  "phone": "234806518328",
                  "address": "Olla’s Place, Millenium Estate, Lekki Phase 1, Lagos",
                  "hospital": "hype Hospital, Jubowu, Lagos Nigeria.",
                  "existingConditions": true,
                  "condition": {
                    "healthCondition": "Lorem Ipsum",
                    "healthConditionDuration": "06/20",
                    "healthConditionMedication": "Lorem Ipsum"
                  }
                }
              ]
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 182,
      "2": 7,
      "3": 165,
      "4": 83,
      "5": 98,
      "6": 116,
      "7": 0,
      "8": 83,
      "9": 214,
      "10": 5,
      "11": 42
    }
  }
}
```