Discount
Handles Discount related requests with IMS web services.
Discount
The SDK allows for the host application to retrieve discount related data, which in turn can be used by the host application to fetch data from the Discount system (see documentation for the Discount).
This service will return the current discount and projected discount, alongside some useful discount information. Discount values may not always be available due to insufficient driving data.
To fetch discount data, the following API can be used.
Concrete example
Discount Metadata
Represents the mapping between scores ranges and discounts. The mappings of scores are represented as Ranges of Doubles to be consistent with the scoring values.
Any valid user on the DriveSync system (identified via the Identity
set during SDK initialization) should be able to know how discount is calculated (score ranges vs discounts), so that driver knows how his/her driving style affecting his/her discount.
To fetch discount mapping data, the following API can be used.
Concrete example
Discount by vehicle
The SDK allows for the host application to retrieve discount related data by vehicle, which in turn can be used by the host application to fetch data from the Discount system (see documentation for the Discount).
This service will return the current discount and projected discount, alongside some useful discount information. Discount values may not always be available due to insufficient driving data.
Required information
vehicleId: Since each account can be linked to multiple vehicles, vehicle ID is passed.
To fetch discount data by vehicle, the following API can be used.
Concrete example
Last updated