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": "jsmith@example.com",
    "phone": "<string>",
    "residential_address": {
      "city": "<string>",
      "address": "<string>",
      "state": "<string>",
      "country": "<string>",
      "street": "<string>",
      "house_number": "<string>",
      "postal_code": "<string>"
    },
    "date_of_birth": "2023-12-25",
    "customer_gender": "M",
    "occupation": "<string>",
    "identity_card_img": "<string>",
    "utility_bill_img": "<string>",
    "identity_card_number": "<string>",
    "identity_card_type": "driver_license",
    "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

Response

201
application/json

Quote Intent created successfully

The response is of type object.