driverInfo Endpoint
Use the driverInfo
API endpoint to upload or update driver information to the backend. This information is essential for the user to qualify for the IQL program.
Design Recommendation
This endpoint should be called from the publisher backend and not from the application itself. Exposing this endpoint through the application will result in security concerns related to the API key.
driverInfo
PUT API Endpoint
driverInfo
PUT API EndpointDriver Info Endpoint
PUT
URL: https://iql.zendrive.com /iql/v1/driver/{driver_id}/info
Populate driver information required for qualification in the IQL program.
Path Parameters
driver_id*
String
Driver's unique identifier.
Headers
Authorization*
String
APIKEY <api_key>
Request Body
country*
String
Country code (for example: USA)
state*
String
2 letter ANSI standard state code (for example, 'AZ' for Arizona.
insurer
String
Name of user’s current insurer (for example, 'Progressive').
zipcode
String
5 letter USA zip code (for example, '10118', which is the zip code for New York).
segment.acq_source
String
The driver's acquisition source.
Request Payload Fields
country
User's country code
String
“USA”
Mandatory
state
User's state code
String
“AZ”
Mandatory
zipcode
User's zipcode
String
“10118”
Optional
insurer
User's Insurer
String
“Progressive”
Optional
segment.acq_source
The acquisition source of the user.
String
"fetch_abc"
Optional
Sample Request URL
https://iql.zendrive.com/iql/v1/driver/b_01/info
Sample Request Payload
{
"country": "USA",
"state": "AZ",
"zipcode": "10118"
"insurer": "Progressive",
"segment": {
"acq_source": "fetch_abc"
}
}
Sample Request
curl --location --request PUT 'https://iql.zendrive.com/iql/v1/driver/user_123/info' \
--header 'Authorization: APIKEY A6B8cDEFG01HI7jklMnp1stQuvvZXyZ5' \
--header 'Content-Type: application/json' \
--data-raw '{
"country": "USA",
"state": "AZ",
"zipcode": "10118",
"insurer": "Progressive",
"segment": {
"acq_source": "fetch_abc"
}
}'
Sample Response
Response - {} status code - 200 (User uploaded/updated in database)
driverInfo
GET API Endpoint
driverInfo
GET API EndpointUse the driverInfo GET
API endpoint to obtain the driver information stored in the backend.
GET
https://iql.zendrive.com /iql/v1/driver/{driver_id}/info
Path Parameters
driver_id*
String
The unique Id of the user.
Headers
Authorization*
string
APIKEY <api_key>
country
String
No
Acronym of the country to which the driver belongs.
state
String
No
Acronym of the state to which the driver belongs.
zipcode
String
Yes
Zipcode of the driver's locality.
insurer
String
Yes
The name of the insurer.
segment.acq_source
String
Yes
The driver's acquisition source.
Sample Request
curl --location --request GET 'https://iql.zendrive.com/iql/v1/driver/b_0/info' --header 'Authorization: APIKEY apikey'
Sample Response
{
"country": "USA",
"state": "AZ",
"zipcode": "10118",
"insurer": "insurer_aInsurer_AProgressive",
"segment": {
"acq_source" : "acq_sourceAcq_Sourcesteady"
}
}