Non-Telematics qualification Webhook
Zendrive provides the ability to specify a Webhook where the Application Publisher can receive notifications of users who have qualified for non-telematics offers. In this page, we have detailed the API request-response contract to support the IQL Ad program, meant for the Publisher's use.
POST
URL: Publisher to provide after setting up at their end.
Headers
Authorization*
String
APIKEY <api_key>
Zendrive will send the same API Key <API_key
>that is used in all the IQL API endpoints for authorization. App Publishers need to use this API Key to verify that the webhook is coming from Zendrive.
Sample Response Fields
info.driver_id
Unique identifier for the driver
info.publisher_app_name
Name of the application
info.webhook_created_at_timestamp
Timestamp at which the qualification webhook was created
metadata.offer_created_at_timestamp
Timestamp at which the offer was created for the user
metadata.offer_id
Unique identifier for the offer for which the user is currently qualified.
metadata.offer_type
Indicates if the offer is auto_insurance
or non_auto_insurance
type
metadata.offer_subtype
Indicates the subtype the offer belongs to - telematics/affiliate/drive
metadata.advertiser_name
Advertiser’s name
metadata.offer_headline
Offer headline
metadata.offer_discount_percentage
Indicates the customer specific discount % available as per the offer
metadata.offer_expiry_timestamp
Timestamp at which the offer will expire for the user
Sample Response Payload
{
"info": {
"driver_id": "[email protected]",
"publisher_app_name": "publisher",
"webhook_created_at_timestamp": 1654506334000
},
"metadata": {
"offer_created _at_timestamp": 1544506334000,
"offer_id": "ad_123bajdh354",
"offer_type": "non_auto_Insurance",
"offer_subtype": "drive_offer",
"advertiser_name": "Media Alpha",
"offer_headline": "We haven't matched you with a telematics offer just yet but your driving qualified you to get an instant quote",
"offer_discount_percentage": 0,
"offer_expiry_timestamp": 1944506334000
}
}
Recommended design
A mechanism similar to a queue should be in place to ingest the webhooks, to prevent any webhook data loss.