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",
"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>",
"phone": "<string>",
"date_of_birth": "2023-12-25",
"identity_card_expiry_date": "2023-12-25"
}
}
'{
"intent_id": "<string>",
"quote_code": "<string>",
"product": "<string>",
"selected_tenure": {},
"total_amount": "<string>"
}Quotes
Capture a new purchase intent for an insurance policy
Create a new pre-purchase intent for a selected insurance quote.
This endpoint allows customers to create a new quote intent, which is a record of their interest in purchasing an insurance policy. The intent includes details such as the quote code, customer ID, and other relevant information.
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",
"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>",
"phone": "<string>",
"date_of_birth": "2023-12-25",
"identity_card_expiry_date": "2023-12-25"
}
}
'{
"intent_id": "<string>",
"quote_code": "<string>",
"product": "<string>",
"selected_tenure": {},
"total_amount": "<string>"
}Authorizations
Headers
Idempotency key to enforce idempotent processing of POST requests
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Quote Intent created successfully
Name of the insurance product
Returns the relevant tenure details (duration and premium) for the response
Show child attributes
Show child attributes
Total amount to be paid
Pattern:
^-?\d{0,8}(?:\.\d{0,2})?$⌘I
