get https://api.azuga.com/azuga-ws/v1/rewards/history.json
This API provides you with information of rewards that have been awarded to drivers. Rewards are gift cards given to drivers based on their driving behaviour. The API response includes status of the rewards, reward amount, driver names etc.
Sample Request
API Response explanation
Field | Description |
---|---|
code | API Status Code |
message | API Message |
reason | Reason for failure |
generatedAtInMillis | API generation timestamp in milliseconds |
rewardsHistory | An array of rewardsHistory objects |
driverName | Name of the driver |
rewardId | Unique identifier of the reward |
rewardAmount | Amount that has been rewarded to the driver |
rewardSubject | Subject of the Reward |
rewardMessage | Message from the supervisor in the reward |
brand | Brand at which the reward was redeemed |
status | Status of the reward |
sentAt | Timestamp at which the reward was sent (in milliseconds) |
sender | Sender of the reward |
vehicleName | Name of the vehicle |
redeemedAt | Timestamp at which the reward was redeemed (in milliseconds) |
redemptionCode | Code for redeeming the reward |
challengeKey | PIN used for obtaining the redemption code |
brandId | Unique identifier of the brand |
Disclaimer
This API provides information only for a driver and does not provide aggregated information for a group of vehicles. Admins should not use these APIs, but should look at other sections of the documentation.