> ## 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 a transaction's meter values

> What the charger measured during a transaction you reach with `sensitive` access or more,
one item per moment it measured, oldest first: its energy register, power, current and voltage
per phase, and the car's battery level. How often depends on the charger: every 60 seconds
while someone watches its live state, every 500 seconds or more otherwise. A transaction you
do not reach is a 404; one you reach below `sensitive` access is a 403, as the readings show
its exact times.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /transactions/{transaction}/meter-values
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/{transaction}/meter-values:
    get:
      tags:
        - transactions
      summary: A transaction's meter values
      description: >-
        What the charger measured during a transaction you reach with
        `sensitive` access or more,

        one item per moment it measured, oldest first: its energy register,
        power, current and voltage

        per phase, and the car's battery level. How often depends on the
        charger: every 60 seconds

        while someone watches its live state, every 500 seconds or more
        otherwise. A transaction you

        do not reach is a 404; one you reach below `sensitive` access is a 403,
        as the readings show

        its exact times.
      operationId: list_transaction_meter_values
      parameters:
        - name: transaction
          in: path
          description: The transaction's id
          required: true
          schema:
            type: string
            format: uuid
        - 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
      responses:
        '200':
          description: A page of the transaction's meter values
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_MeterValue'
        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
    Page_MeterValue:
      type: object
      description: One page of a list.
      required:
        - data
        - next_cursor
        - previous_cursor
      properties:
        data:
          type: array
          items:
            type: object
            description: What the charger measured at one moment of a transaction.
            required:
              - measured_at
              - current_a
              - dc_current_a
              - dc_voltage_v
              - energy_register_wh
              - power_w
              - soc_percent
              - voltage_v
            properties:
              current_a:
                oneOf:
                  - $ref: '#/components/schemas/PerPhase'
                    description: >-
                      Current per grid phase at the outlet in A, the charger's
                      phases placed on the grid's by the

                      EVSE's `phase_rotation`; `null` for a phase it did not
                      report. Null when it reported no

                      current for a phase at this moment. On an AC EVSE wired to
                      one phase, a current reported

                      without a phase is that phase's.
                  - type: 'null'
              dc_current_a:
                type:
                  - number
                  - 'null'
                format: double
                description: >-
                  The current the charger reported without a phase, in A: on a
                  DC charger the current into

                  the car's battery. Null when it reported none at this moment,
                  on an AC EVSE (where such a

                  figure is no phase's and is not shown), and where `current_a`
                  shows it on the one phase

                  the EVSE is wired to.
              dc_voltage_v:
                type:
                  - number
                  - 'null'
                format: double
                description: >-
                  The voltage the charger reported without a phase, in V: on a
                  DC charger the battery's

                  voltage. Null as `dc_current_a` is.
              energy_register_wh:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  The meter's energy register at the outlet, in Wh: subtract the
                  transaction's

                  `meter_start_wh` for the energy since it started. Null when
                  the charger did not send it at

                  this moment.
              measured_at:
                type: string
                format: date-time
                description: When the charger measured these, by its own clock.
              power_w:
                type:
                  - integer
                  - 'null'
                format: int64
                description: >-
                  Active power at the outlet in W: the charger's total, or the
                  sum of its phases. Null when

                  the charger did not send it at this moment.
              soc_percent:
                type:
                  - number
                  - 'null'
                format: double
                description: >-
                  The car's battery level, when the car reports it (DC, or AC
                  with ISO 15118); null

                  otherwise.
              voltage_v:
                oneOf:
                  - $ref: '#/components/schemas/PerPhase'
                    description: >-
                      Voltage per grid phase at the outlet in V (to neutral), as
                      `current_a` places them. Null

                      when it reported no voltage for a phase at this moment.
                  - type: 'null'
        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, 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`.
    PerPhase:
      type: object
      description: >-
        A value per grid phase: the phases the grid's L1, L2 and L3 are, after
        the EVSE's phase

        rotation. `null` for a phase that is not there.
      required:
        - l1
        - l2
        - l3
      properties:
        l1:
          type:
            - number
            - 'null'
          format: double
        l2:
          type:
            - number
            - 'null'
          format: double
        l3:
          type:
            - number
            - 'null'
          format: double
    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.