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

> A price zone's electricity prices from the start of today (UTC): today's, and tomorrow's once
the day-ahead market has set them (around 13:00 in Central Europe). Smart charging charges
when they are low. The list is always one page, with the whole period: both cursors are
null. Any token may read them.



## OpenAPI

````yaml api-reference/v4/v4.openapi.json GET /tariffs
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:
  /tariffs:
    get:
      tags:
        - catalogue
      summary: The day-ahead prices
      description: >-
        A price zone's electricity prices from the start of today (UTC):
        today's, and tomorrow's once

        the day-ahead market has set them (around 13:00 in Central Europe).
        Smart charging charges

        when they are low. The list is always one page, with the whole period:
        both cursors are

        null. Any token may read them.
      operationId: list_tariffs
      parameters:
        - name: zone
          in: query
          description: >-
            The price zone: a country as its ISO 3166-1 alpha-2 code (`NL`,
            `DE`), or, where a country

            is priced per region, its region (`GB_C`, London: Great Britain's
            regions are `GB_A` to

            `GB_P`). A zone without prices has none.
          required: true
          schema:
            type: string
            pattern: ^[A-Z]{2}(_[A-Z0-9]{1,8})?$
          example: NL
        - name: interval
          in: query
          description: >-
            `quarter` (the default): the prices as the market sets them, every
            15 minutes in most zones

            (30 in Great Britain). `hour`: one per clock hour, the mean of that
            hour's prices.
          required: false
          schema:
            type: string
            description: How finely the prices come.
            enum:
              - quarter
              - hour
      responses:
        '200':
          description: The zone's prices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tariffs'
        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: []
components:
  schemas:
    Tariffs:
      type: object
      description: >-
        A zone's day-ahead prices, from the start of today (UTC): always one
        page, with the whole

        period.
      required:
        - data
        - next_cursor
        - previous_cursor
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Tariff'
          description: The prices in time order.
        next_cursor:
          type:
            - string
            - 'null'
          description: 'Always null: the period is one page.'
        previous_cursor:
          type:
            - string
            - 'null'
          description: 'Always null: the period is one 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`.
    Tariff:
      type: object
      description: The price of electricity for a while.
      required:
        - starts_at
        - price_per_kwh
        - currency
        - includes_tax
      properties:
        currency:
          $ref: '#/components/schemas/Currency'
          description: >-
            The currency of the price, as ISO 4217 names it. Accept currencies
            you do not know: more

            may come.
        includes_tax:
          type: boolean
          description: >-
            Whether energy tax and VAT are in the price (in the Netherlands, and
            VAT in Great Britain),

            or it is the market price alone.
        price_per_kwh:
          type: number
          format: double
          description: >-
            The price of a kWh, in `currency` (not in cents): `0.23456` is
            23.456 cents.
        starts_at:
          type: string
          format: date-time
          description: >-
            When the price starts. It holds until the next one starts: 15
            minutes in most zones, 30 in

            Great Britain's regions, an hour with `interval=hour`.
    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.
    Currency:
      type: string
      description: >-
        A currency, as ISO 4217 names it. Accept currencies you do not know:
        more may come.
      enum:
        - EUR
        - GBP
  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.