> ## Documentation Index
> Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get transaction totals

> How many transactions `GET /v4/transactions` holds with the same filters, and the energy they
delivered. It counts exactly what the list shows: the transactions of chargers you reach with
`basic` access or more, none from before a charger changed hands, and the filters work as they
do there (below `sensitive` access an older transaction's times count by their month, and
`id_tag` and the card part of `search` match only cards you see whole). It takes no `limit` or
`cursor`.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /transactions/totals
openapi: 3.1.0
info:
  title: Plugchoice API
  description: >-
    Every request sends an access token as `Authorization: Bearer …`, unless an
    operation says otherwise.


    Errors are problems (RFC 9457, `application/problem+json`): `code` says what
    went wrong, and a failed validation lists the fields in `errors`.


    A list answers one page: `{"data": [...], "next_cursor": ...,
    "previous_cursor": ...}`. Pass a cursor back as `cursor` to get that page,
    and `limit` (1 to 100, default 25) for its size.


    Within v4, changes only add: new operations, new optional parameters, new
    fields and new enum values. Ignore fields you do not know, and accept enum
    values you do not know. Requests that send a field the operation does not
    know are refused, so a typo does not pass unnoticed.
  version: '4'
servers:
  - url: https://api.plugchoice.com/v4
security:
  - bearer: []
paths:
  /transactions/totals:
    get:
      tags:
        - transactions
      summary: The totals of the transactions you reach
      description: >-
        How many transactions `GET /v4/transactions` holds with the same
        filters, and the energy they

        delivered. It counts exactly what the list shows: the transactions of
        chargers you reach with

        `basic` access or more, none from before a charger changed hands, and
        the filters work as they

        do there (below `sensitive` access an older transaction's times count by
        their month, and

        `id_tag` and the card part of `search` match only cards you see whole).
        It takes no `limit` or

        `cursor`.
      operationId: show_transactions_totals
      parameters:
        - name: team_id
          in: query
          description: 'Only the transactions of chargers this team reaches: one of yours.'
          required: false
          schema:
            type: string
            format: uuid
        - name: location_id
          in: query
          description: >-
            Only the transactions of chargers at this location now. Repeat it
            for several:

            `location_id=…&location_id=…`.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: charger_id
          in: query
          description: >-
            Only this charger's transactions. Repeat it for several:
            `charger_id=…&charger_id=…`.
          required: false
          schema:
            type: array
            items:
              type: string
              format: uuid
        - name: evse
          in: query
          description: >-
            Only the transactions at EVSEs with this number; with `charger_id`,
            that charger's EVSE.
          required: false
          schema:
            type: integer
            description: An EVSE's number on its charger, from 1.
            maximum: 2147483647
            minimum: 1
        - name: status
          in: query
          description: >-
            Only transactions with this status. Repeat it for several:
            `status=stopped&status=final`.
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/TransactionStatus'
        - name: started_after
          in: query
          description: >-
            Only transactions that started at or after this time (RFC 3339, such
            as

            `2026-11-01T00:00:00Z`). Below `sensitive` access a time more than
            14 days ago counts from

            the start of its month, as those transactions show their month only.
          required: false
          schema:
            type: string
            format: date-time
        - name: started_before
          in: query
          description: >-
            Only transactions that started before this time (RFC 3339). Below
            `sensitive` access a time

            more than 14 days ago counts to the end of its month.
          required: false
          schema:
            type: string
            format: date-time
        - name: label
          in: query
          description: >-
            Only transactions with this label, as written (`business`,
            `private`, `guest`, or a label of

            your own). Repeat it for several: `label=business&label=guest`.
          required: false
          schema:
            type: array
            items:
              type: string
              description: A label, as written on a transaction.
              maxLength: 50
              minLength: 1
        - name: stopped_after
          in: query
          description: >-
            Only transactions that stopped at or after this time (RFC 3339);
            none that is active.

            Below `sensitive` access, for a transaction that shows its month
            only, a time counts from

            the start of its month.
          required: false
          schema:
            type: string
            format: date-time
        - name: stopped_before
          in: query
          description: >-
            Only transactions that stopped before this time (RFC 3339); none
            that is active. Below

            `sensitive` access, for a transaction that shows its month only, a
            time counts to the end

            of its month.
          required: false
          schema:
            type: string
            format: date-time
        - name: id_tag
          in: query
          description: >-
            Only transactions started with this card or token id, ignoring case.
            It matches only

            transactions whose card you see whole (`sensitive` access): below
            that it matches nothing.

            Repeat it for several.
          required: false
          schema:
            type: array
            items:
              type: string
        - name: search
          in: query
          description: >-
            Only transactions whose charger's identity or label contains this
            text, ignoring case, or,

            where you see the card whole (`sensitive` access), whose card id or
            card name does: 1 to 100

            characters, with spaces around it removed.
          required: false
          schema:
            type: string
            maxLength: 100
            minLength: 1
        - name: updated_since
          in: query
          description: >-
            Only transactions that changed at or after this time (RFC 3339),
            their label and note

            included.
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: The totals
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionsTotals'
        default:
          description: >-
            A problem (RFC 9457). `code` says which; the field errors come with
            `validation_failed`.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      security:
        - bearer:
            - transactions:read
components:
  schemas:
    TransactionStatus:
      type: string
      description: >-
        Where a transaction is, from its start until Plugchoice settled it. One
        from before 26 October

        2026, when Plugchoice started recording this, is `final`, or
        `incomplete` when Plugchoice

        recorded closing it without a stop from the charger. Accept values you
        do not know: more may

        come.
      enum:
        - active
        - stopped
        - final
        - incomplete
    TransactionsTotals:
      type: object
      description: The totals of the transactions a list holds.
      required:
        - transaction_count
        - energy_wh
      properties:
        energy_wh:
          type: integer
          format: int64
          description: >-
            The energy they delivered together, in Wh: the sum of the stopped
            ones' `energy_wh`, what

            Plugchoice settled. An active transaction's energy so far is not in
            it, so the total does

            not change while one charges; it counts once it stops.
        transaction_count:
          type: integer
          format: int64
          description: How many transactions the list holds with these filters.
    Problem:
      type: object
      description: An error response body (RFC 9457).
      required:
        - type
        - title
        - status
        - code
      properties:
        code:
          type: string
          description: >-
            The kind of problem, for code to act on, such as
            `validation_failed`. Treat a code you do

            not know by the status.
        detail:
          type: string
          description: >-
            What went wrong with this request, when there is more to say than
            the title; left out

            when there is not.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
          description: >-
            With `validation_failed`: the fields that broke a rule; left out
            when there are none.
        status:
          type: integer
          format: int32
          description: The HTTP status code.
          minimum: 0
        title:
          type: string
          description: A short summary of the kind of problem.
        type:
          type: string
          description: >-
            The page that explains this kind of problem: its `code` with
            hyphens, as

            `https://developer.plugchoice.com/api/errors/validation-failed`.
    FieldError:
      type: object
      description: One field that broke a rule.
      required:
        - field
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            The rule it broke, for code to act on: `missing_field`,
            `unknown_field`, `invalid_type`,

            `invalid`, or `taken` (a value that must be unique, such as a card's
            id at a location,

            and is not).
        field:
          type: string
          description: >-
            Where the field is in the request, such as `name` or
            `connectors[0].max_current`.
        message:
          type: string
          description: What is wrong, in English.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        An access token from `accounts.plugchoice.com`, for a personal API
        token, a person signed in through an app, or an OAuth client.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.