Named Driver
SDK introduces Named driver API for family functionality to add secondary drivers by host app
Fetch
To fetch the Named Drivers details, the following API can be used.
Concrete Example
Update
Updates the named driver's email and phone number and returns the updated named driver object
Parameters:
userId
: User id of a named driver retrieved fromfetch
apiemail
: Email to be updatedphone
: Phone number to be updated
To update the named driver's details, first host app needs to retrieve the user Id provided when the fetch
API call is made and need to provide the retrieved user id as an argument to updateNamedDriver
API
Concrete Example
To update the Named Drivers details, the following API can be used.
Error codes
fetch
404 -> No Named Drivers Found
updateNamedDriver
409 -> Conflict email exists for another user
404 -> Failed to locate named driver for primary policy holder
Last updated