Skip to main content

Overview

The Quotes APIs enables businesses to request and retrieve insurance quotes dynamically based on customer and product details. This section details how to request a quote and capture purchase intent while emphasizing the additional_information field, which varies based on the product_type.

Request for Insurance Quote

Submit a request to generate insurance quotes for a specified product type and customer details. Endpoint
  • URL: /api/v1/quotes/
  • Method: POST
curl --request POST \
  --url https://dev.superpool.unyte.africa/api/v1/quotes \
  ...

Request Body

ParameterTypeRequiredDescription
customer_metadataobjectYesCustomer details including age, location, and personal data.
insurance_detailsobjectYesContains product type, name, and additional metadata.
coverage_preferencesobjectNoCustom coverage options such as risk preferences.

P.S: Important Field: additional_information
additional_information
object
Captures additional product-specific meta-information based on the provided product type Learn more about this field.
The additional_information field, within the insurance_details object, dynamically adapts to the selected product_type and must be structured according to the corresponding serializer.

P.S: Important Field: insurance_options
insurance_options
string
The insurance_option field is an Enum choices field, as seen on our API Reference for Quote Request. For more detailed information, please see Understanding the Insurance Option Field
The insurance_options field, within the insurance_details object, is a choice from an Enum class that streamlines, policy choice from our ‘featured’ policies. In a sceneraio where, default flow of getting the insurance quote is needed, please select the string option Other and fire off your request.

Understanding additional_information for Different Product Types

The additional_information field contains nested objects relevant to the selected insurance product. This allows us to effectively capture just enough information for our providers and offer the best services for your customers. Below are the expected structures for each product type:
{
  "health_condition": "Good",
  "pre_existing_conditions": ["Diabetes", "Hypertension"],
  "age": 28,
}
Fields:
FieldTypeRequiredDescription
health_conditionstringYesHealth condition of the applicant
pre_existing_conditionslistNoCustomer or HMO-provided, known chronic illnesses affecting patient
agenumberYesApplicant’s age

Capturing Purchase Intent

Creates a new purchase intent for a selected insurance quote.

Endpoint

  • URL: /api/v1/quotes/<quote_code>/intent/capture/
  • Method: POST

Request Body

ParameterTypeRequiredDescription
tenurenumberYesUnique identifier of the selected quote.
customer_metadataobjectYesCaptures essential personal information of the customer as required by our providers.

Sample Request

RequestExample
{
    "tenure": 5,
    "customer_metadata": {
      "first_name": "Chukwuemeka",
      "last_name": "Okoro",
      "email": "chukwuemeka.okoro@example.com",
      "phone": "08012345678",
      "residential_address": {
        "house_number": "12",
        "street": "Adeola Odeku Street",
        "city": "Lagos",
        "state": "Lagos",
        "postal_code": "101241",
        "country": "Nigeria"
      },
      "date_of_birth": "1985-03-25",
      "customer_gender": "M",
      "occupation": "Civil Engineer",
      "identity_card_img": "https://www.example.com/back",
      "utility_bill_img": "https://www.example.com/back",
      "identity_card_type": "driver_license",
      "identity_card_number": "ARES0n0Fzews",
      "identity_card_expiry_date": "2028-06-15"
    }
}

Sample Response

{
  "intent_id": "pi789",
  "product": "SafeGuard Life Insurance",
  "selected_tenure": {
    "tenure": 5
  },
  "total_amount": 50000.00
}