---
title: "Retrieve insights about charges broken down by team members of a team."
method: GET
path: "/api/v1/insights/charges/driver-report"
tags: ["Insights"]
---

# Retrieve insights about charges broken down by team members of a team.

`GET /api/v1/insights/charges/driver-report`

Required scope: `insights:read`

Returns charge insights for the given teamId (and optionally `teamMemberIds`) broken down by team member.
Takes only charges into consideration that were paid for by the provided `teamId`.

Note: Any values related to money are in the teams' currency. You can fetch them from `GET /api/v1/teams/{teamId}`

## Query parameters

- `page` integer
- `perPage` integer
- `teamId` integer, required — Filter to retrieve charges insights by the specified `teamId`
- `teamMemberIds` string, nullable — Filter to retrieve charges insights by the specified (comma-separated) list of `teamMemberId`
- `fromDate` string, date, required — Filter to retrieve charge insights created from date, we expect a date in UTC and ISO8601 (YYYY-MM-DD'T'HH:MM:SS'Z')</br>The maximum gap between from and to data cannot be longer than 31 days
- `toDate` string, date, required — Filter to retrieve charge insights created to date, we expect a date in UTC and ISO8601 (YYYY-MM-DD'T'HH:MM:SS'Z')</br>The maximum gap between from and to data cannot be longer than 31 days
- `datesFilteredBy` 'charge-transaction' | 'wallet-transaction', nullable — Use this to determine if the report should be filtered based on completion dates of charges or wallet transactions.</br></br>Accepted values:</br>- `charge-transaction`: Generates report based on charges' `completedAt`. Default.- `wallet-transaction`: Generates report based on wallet transactions' `completedAt`. Will not include any charges without wallet transactions.

## Response `200`

Driver report for the given filter

- OffsetBasedResponse8
  - `data` ChargesInsightDriverReport[], required
    - `teamId` integer, required — Team ID used for this report
    - `teamMemberId` integer, required — Team Member ID of the Driver
    - `userId` integer, required — User ID of the Driver
    - `consumptions` ChargesInsightDriverReportDtoConsumption[], required — Charge consumptions grouped by `chargeType`
      - `chargeType` string, required — Defines the type of charge, ie. if it was a sponsored or public charge. definitions: * `sponsored` - Charges that have been sponsored. * `team-operator` - Charges that belong to Charge Points of the same operator as paying team operator. * `public` - Any charge that was paid for by this team that does not match the other cases. Note that more chargeTypes might be added in the future. Make sure to handle this gracefully.
      - `totalSessions` integer, required — Number of charging sessions
      - `totalKwh` number, double, required — Sum of all Kwh consumed
      - `totalNetPrice` number, double, required — Sum of all charge net prices
      - `totalVat` number, double, required — Sum of all charge vat amounts
      - `totalGrossPrice` number, double, required — Sum of all charge gross prices
  - `meta` MontaPageMeta, required
    - `itemCount` integer, required
    - `currentPage` integer, required
    - `perPage` integer, required
    - `totalPageCount` integer, required
    - `totalItemCount` integer, required

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/revisions/517e18f11015/schema)
