> ## 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.

# List transactions

> The charging sessions of every charger the caller reaches with `basic` access or more,
through any of their teams, newest first. Narrow it with the filters; the filters combine.
Below `sensitive` access on a session's charger the session is masked: its card shows its last
three characters, its note is hidden, and one that started more than 14 days ago shows its
month only (`time_precision`). Sessions from before a charger changed hands are not shown. A
token limited to picked teams and locations lists the sessions of their chargers.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /transactions
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:
    get:
      tags:
        - transactions
      summary: The sessions you reach
      description: >-
        The charging sessions of every charger the caller reaches with `basic`
        access or more,

        through any of their teams, newest first. Narrow it with the filters;
        the filters combine.

        Below `sensitive` access on a session's charger the session is masked:
        its card shows its last

        three characters, its note is hidden, and one that started more than 14
        days ago shows its

        month only (`time_precision`). Sessions from before a charger changed
        hands are not shown. A

        token limited to picked teams and locations lists the sessions of their
        chargers.
      operationId: list_transactions
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/Limit'
        - name: cursor
          in: query
          description: >-
            A place in the list, from `next_cursor` or `previous_cursor`. Pass
            it back as given.
          required: false
          schema:
            type: string
        - name: team_id
          in: query
          description: 'Only the sessions of chargers this team reaches: one of yours.'
          required: false
          schema:
            type: string
            format: uuid
        - name: location_id
          in: query
          description: Only the sessions of chargers at this location now.
          required: false
          schema:
            type: string
            format: uuid
        - name: charger_id
          in: query
          description: Only this charger's sessions.
          required: false
          schema:
            type: string
            format: uuid
        - name: evse
          in: query
          description: >-
            Only the sessions 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 sessions with this status. Repeat it for several:
            `status=active&status=finished`.
          required: false
          schema:
            type: array
            items:
              $ref: '#/components/schemas/TransactionStatus'
        - name: started_after
          in: query
          description: >-
            Only sessions 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 sessions show their month only.
          required: false
          schema:
            type: string
            format: date-time
        - name: started_before
          in: query
          description: >-
            Only sessions 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 sessions 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 session.
              maxLength: 50
              minLength: 1
        - name: updated_since
          in: query
          description: >-
            Only sessions that changed at or after this time (RFC 3339), their
            label and note

            included: what changed since a client last looked.
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: A page of sessions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_Transaction'
        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:
    Limit:
      type: integer
      description: How many results one page holds.
      default: 25
      maximum: 100
      minimum: 1
    TransactionStatus:
      type: string
      description: Whether a session is still running.
      enum:
        - active
        - finished
    Page_Transaction:
      type: object
      description: One page of a list.
      required:
        - data
      properties:
        data:
          type: array
          items:
            type: object
            description: >-
              A charging session: one vehicle charged at one EVSE, from its
              start to its stop.
            required:
              - id
              - charger
              - status
              - started_at
              - time_precision
              - updated_at
            properties:
              card:
                oneOf:
                  - $ref: '#/components/schemas/Card'
                    description: >-
                      The card or token that started it; null when the charger
                      sent none.
                  - type: 'null'
              charger:
                $ref: '#/components/schemas/ChargerReference'
              energy_wh:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  The energy it delivered, in Wh: what Plugchoice settled,
                  `meter_stop_wh` minus

                  `meter_start_wh`. Null while it is active (its progress is in
                  the charger's live state).
              evse:
                type:
                  - integer
                  - 'null'
                format: int32
                description: >-
                  The number of the EVSE it charged at; null when the charger
                  did not say.
              id:
                type: string
                format: uuid
                description: The session's id.
              label:
                type:
                  - string
                  - 'null'
                description: >-
                  The label people gave it: `business`, `private` and `guest`
                  are the standard ones, which

                  apps translate; anything else shows as written. Null without
                  one.
              location:
                oneOf:
                  - $ref: '#/components/schemas/LocationReference'
                    description: >-
                      The location its charger is at now; null when it is at no
                      location.
                  - type: 'null'
              meter_start_wh:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  The EVSE's energy register when it started, in Wh; null until
                  the charger sends it (an

                  OCPP 2.x charger may start without it, and then the session
                  starts at its first reading).
              meter_stop_wh:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  `meter_start_wh` plus the energy Plugchoice settled, in Wh;
                  null while it is active. It is

                  not always the register the charger reported at its stop: a
                  session that ended without

                  one is settled up to its last reading.
              note:
                type:
                  - string
                  - 'null'
                description: >-
                  The note people wrote on it; null without one, and below
                  `sensitive` access.
              started_at:
                type: string
                format: date-time
                description: When it started, by the charger's clock.
              state:
                oneOf:
                  - $ref: '#/components/schemas/TransactionState'
                    description: >-
                      Where Plugchoice is in settling it; null for a session
                      from before 26 October 2026, when

                      Plugchoice started recording this.
                  - type: 'null'
              status:
                $ref: '#/components/schemas/TransactionStatus'
              stop_reason:
                oneOf:
                  - $ref: '#/components/schemas/StopReason'
                    description: >-
                      Why it stopped, as the charger or Plugchoice reported it;
                      null while it is active, or when

                      the reason is not one this API knows.
                  - type: 'null'
              stopped_at:
                type:
                  - string
                  - 'null'
                format: date-time
                description: When it stopped; null while it is active.
              time_precision:
                $ref: '#/components/schemas/TimePrecision'
                description: >-
                  How exact `started_at`, `stopped_at` and `updated_at` are:
                  `month` below `sensitive`

                  access for a session that started more than 14 days ago.
              updated_at:
                type: string
                format: date-time
                description: When it, its label or its note last changed.
        next_cursor:
          type:
            - string
            - 'null'
          description: The cursor of the page after this one; null on the last page.
        previous_cursor:
          type:
            - string
            - 'null'
          description: The cursor of the page before this one; null on the first page.
    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: the last part of `type`.'
        detail:
          type: string
          description: >-
            What went wrong with this request, when there is more to say than
            the title.
        errors:
          type: array
          items:
            $ref: '#/components/schemas/FieldError'
          description: 'With `validation-failed`: the fields that broke a rule.'
        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.
    Card:
      type: object
      description: The card or token that started a session.
      required:
        - id_tag
      properties:
        id_tag:
          type: string
          description: >-
            The id the charger sent (OCPP's idTag or idToken). Below `sensitive`
            access it shows its

            last three characters: `••••34A`.
        name:
          type:
            - string
            - 'null'
          description: >-
            The name of the card with this id at the charger's location; null
            when the location has

            none. Below `sensitive` access it shows its first and last two
            letters: `Ja****en`.
    ChargerReference:
      type: object
      description: A charger, as a session names it.
      required:
        - id
        - identity
      properties:
        id:
          type: string
          format: uuid
          description: The charger's id.
        identity:
          type: string
          description: 'The name it connects with: its OCPP charge point identity.'
    LocationReference:
      type: object
      description: A location, as a charger names it.
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: The location's id.
        name:
          type:
            - string
            - 'null'
          description: Its name; null when it has none.
    TransactionState:
      type: string
      description: >-
        Where Plugchoice is in settling a session. Accept values you do not
        know: more may come.
      enum:
        - open
        - stopped
        - final
        - incomplete
    StopReason:
      type: string
      description: >-
        Why a session stopped: OCPP's reasons (1.6 and 2.x), and `auto_closed`.
        Accept values you

        do not know: more may come.
      enum:
        - de_authorized
        - emergency_stop
        - energy_limit_reached
        - ev_disconnected
        - ground_fault
        - hard_reset
        - immediate_reset
        - local
        - local_out_of_credit
        - master_pass
        - other
        - overcurrent_fault
        - power_loss
        - power_quality
        - reboot
        - remote
        - soc_limit_reached
        - soft_reset
        - stopped_by_ev
        - time_limit_reached
        - timeout
        - unlock_command
        - auto_closed
    TimePrecision:
      type: string
      description: How exact a resource's times are.
      enum:
        - exact
        - month
    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.