supportedState Details
The supportedStateDetails
API endpoint informs the publisher whether a user qualifies for an IQL test drive or not. The input that the Publisher receives from this endpoint helps them make an informed decision on allowing a user into the IQL test drive.
Design Recommendation
The following are the design recommendations pertaining to the supportedStateDetails
API endpoint:
Publishers can call this API endpoint for State and insurer-based information before allowing a user to onboard the IQL test drive program.
This endpoint sends out the supported State and insurer information via response data to the Publisher who calls it.
The Publisher can then use the response data to make an informed decision on whether to allow a user to take the IQL test drive or not.
POST
https://iql.zendrive.com/iql/<version>/supported_state_details
Headers
Authorization*
String
APIKEY<apikey>
Request Body
country_code*
String
USA ('USA' is the only accepted syntax for this field).
state_code*
String
US state code
current_insurer*
String
Name of the current insurer, who could be an Advertiser or Publisher for whom the Publisher wants to make the call to this API endpoint.
{
// Response
}
Sample Request Payload
{
"country_code": <country_code>,
"state_code": <state_code>,
"current_insurer": <advertiser_name> or <insurer_name>
}
Sample Response
is_supported_state
: This response indicates whether the IQL program supports the state that has been provided.can_receive_offer
: This response indicates whether or not the insurance offer can be made to the user.
Response Schema
{
"is_supported_state": true,
"can_receive_offer": true
}
Sample Request and Response
curl request:
curl --location --request POST 'https://iql.zendrive.com/iql/v1/supported_state_details' \
--header 'Authorization: APIKEY <API Key value>'
Response:
{
"is_supported_state": true,
"can_receive_offer": true
}