Skip to main content
POST
/
api
/
v1
/
quotes
/
{quote_code}
/
intent
/
capture
Capture a new purchase intent for an insurance policy
curl --request POST \
  --url https://dev.superpool.unyte.africa/api/v1/quotes/{quote_code}/intent/capture/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "tenure": 123,
  "customer_metadata": {
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "[email protected]",
    "residential_address": {
      "city": "<string>",
      "state": "<string>",
      "country": "<string>",
      "street": "<string>",
      "postal_code": "<string>",
      "address": "<string>",
      "house_number": "<string>"
    },
    "occupation": "<string>",
    "identity_card_img": "<string>",
    "utility_bill_img": "<string>",
    "identity_card_number": "<string>",
    "identity_card_type": "driver_license",
    "phone": "<string>",
    "date_of_birth": "2023-12-25",
    "customer_gender": "M",
    "identity_card_expiry_date": "2023-12-25"
  }
}
'
{
  "intent_id": "<string>",
  "quote_code": "<string>",
  "product": "<string>",
  "selected_tenure": {},
  "total_amount": "<string>"
}

Authorizations

X-API-Key
string
header
required

Headers

U-Request-Id
string

Idempotency key to enforce idempotent processing of POST requests

Path Parameters

quote_code
string
required

Body

tenure
integer
required

Selected tenure in years

customer_metadata
object
required

Captures essential personal information about the applicant

Response

Quote Intent created successfully

intent_id
string
required
quote_code
string
required
product
string
required

Name of the insurance product

selected_tenure
object
required

Returns the relevant tenure details (duration and premium) for the response

total_amount
string<decimal>
required

Total amount to be paid