# Android

## Summary

We have added new policy-based APIs to the SDK that enable policy-centric data retrieval for trips, users, scores, discounts, and driving summaries.&#x20;

### [TripService](https://sdk.ims.tech/drivesync-portal/trip)

* **fetchTripsForUserByPolicy()** - Returns simplified trip list for a user within a policy with optional filtering (date range, transport mode, sorting)
* **fetchTripsByPolicy()** - Returns simplified trip list for all users in a policy with optional filtering

### [PolicyService](https://sdk.ims.tech/drivesync-portal/policy)

* **fetchPolicies()** - Returns list of policies for logged-in user with policyId, identifier, and userPolicyRole
* **fetchAssociatedUsers()** - Returns list of users associated with a policy (firstName, lastName, status, role)

### [ScoringService](https://sdk.ims.tech/drivesync-portal/scoring)

* **fetchAverageScoresByPolicy()** - Returns average driving scores (highest/lowest/average) with component breakdowns for a user within a policy

### [DiscountMetadataService](https://sdk.ims.tech/drivesync-portal/discount#discount-metadata)

* **fetchByPolicy()** - Returns discount configuration (score-to-discount mappings, minimumKmRequired) for a policy

### [DiscountService](https://sdk.ims.tech/drivesync-portal/discount)

* **fetchDiscountByPolicyId(policyId, verificationCutOffDate?)** - Returns current and projected discount values with min/max ranges for a policy

### [DrivingSummaryService](https://sdk.ims.tech/drivesync-portal/driving-summary)

* **fetchByPolicy()** - Returns policy-level driving summary (kmOfDriving, numberOfTrips, overallScore)
* **fetchForUserByPolicy()** - Returns user-level driving summary within a policy

## Breaking Changes

There are no breaking changes in this release.
