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

# List tariffs



## OpenAPI

````yaml /api-reference/nexus/nexus-api-oas.json get /tariffs
openapi: 3.0.3
info:
  title: Nexus API
  description: >-
    The Nexus API provides access to charging stations, chargers, connectors,
    tariffs, customers, and charging sessions for partner backend integrations.


    ## Integration model


    This API is designed for server-to-server use. End-user applications should
    access this data through the partner backend rather than calling these
    endpoints directly.


    ## Authentication


    Every request must include an `x-api-key` header containing a valid API key.
    Missing or unrecognized API keys are rejected with `401 Unauthorized`.


    ## IDs


    Stations, chargers, and tariffs use `id` as their public stable identifier.
    These identifiers are exactly 8 alphanumeric characters. Customers use `id`,
    an opaque identifier supplied by the partner system. Sessions use a numeric
    session ID. Connector IDs are 1-based positive integers within a charger;
    invalid connector path values return `404 Not Found`.


    ## Tariffs


    Tariffs use a structured pricing model with elements, price components, and
    optional restrictions. `tariffId` response fields reference public tariff
    identifiers and are omitted when no tariff applies.


    ## Pagination


    Paginated collection endpoints accept `limit` and `offset` query parameters.
    Missing, non-integer, zero, or negative `limit` values use the default limit
    of 100; values above 100 are clamped to 100. Missing, non-integer, or
    negative `offset` values use 0. The response body includes a `links` object
    with `next` and `prev` URLs. A link is `null` when that page does not exist.
    The total result count is returned in the `X-Total-Count` response header.
  version: 1.0.0
servers:
  - url: https://{host}/v1
    description: Environment-specific Nexus API base URL.
    variables:
      host:
        default: api.example.com
        description: Nexus API host provided during onboarding.
security:
  - ApiKeyAuth: []
tags:
  - name: Stations
  - name: Chargers
  - name: Connectors
  - name: Tariffs
  - name: Customers
  - name: Sessions
paths:
  /tariffs:
    get:
      tags:
        - Tariffs
      summary: List tariffs
      parameters:
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/offset'
      responses:
        '200':
          description: Tariff list.
          headers:
            X-Total-Count:
              $ref: '#/components/headers/X-Total-Count'
            Link:
              $ref: '#/components/headers/TariffPaginationLink'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TariffListResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    limit:
      name: limit
      in: query
      description: >-
        Maximum number of items to return. Missing, non-integer, zero, or
        negative values use the default of 100. Values above 100 are clamped to
        100.
      schema:
        type: string
        default: '100'
    offset:
      name: offset
      in: query
      description: >-
        Zero-based index of the first item to return. Missing, non-integer, or
        negative values use 0.
      schema:
        type: string
        default: '0'
  headers:
    X-Total-Count:
      description: Total number of results matching the query, regardless of limit/offset.
      schema:
        type: integer
    TariffPaginationLink:
      description: >-
        RFC 5988 pagination links. Omitted when neither a next nor previous page
        exists.
      schema:
        type: string
  schemas:
    TariffListResponse:
      type: object
      required:
        - data
        - links
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Tariff'
        links:
          $ref: '#/components/schemas/PaginationLinks'
    ErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    Tariff:
      type: object
      description: >-
        Tariff pricing object. Elements are evaluated in order; the first
        element whose restrictions match the session state is applied.
      required:
        - id
        - currency
        - elements
        - lastUpdated
      properties:
        id:
          type: string
          minLength: 1
          description: Stable public tariff identifier.
        name:
          type: string
        currency:
          type: string
          enum:
            - INR
        elements:
          type: array
          items:
            $ref: '#/components/schemas/TariffElement'
        lastUpdated:
          type: string
          format: date-time
    PaginationLinks:
      type: object
      required:
        - next
        - prev
      properties:
        next:
          type: string
          nullable: true
        prev:
          type: string
          nullable: true
    TariffElement:
      type: object
      required:
        - priceComponents
      properties:
        priceComponents:
          type: array
          items:
            $ref: '#/components/schemas/PriceComponent'
        restrictions:
          $ref: '#/components/schemas/TariffRestrictions'
    PriceComponent:
      type: object
      description: A single pricing dimension within a tariff element.
      required:
        - type
        - price
        - stepSize
      properties:
        type:
          type: string
          enum:
            - ENERGY
            - FLAT
            - PARKING_TIME
            - TIME
        price:
          type: number
        vat:
          type: number
        stepSize:
          type: integer
    TariffRestrictions:
      type: object
      description: Conditions that must all be true for the parent tariff element to apply.
      properties:
        startTime:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          description: Local time from which the element is active. Format HH:MM.
        endTime:
          type: string
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          description: Local time until which the element is active. Format HH:MM.
        dayOfWeek:
          type: array
          description: Days of the week on which this element is active.
          items:
            type: string
            enum:
              - MONDAY
              - TUESDAY
              - WEDNESDAY
              - THURSDAY
              - FRIDAY
              - SATURDAY
              - SUNDAY
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key issued during onboarding. Every request must supply a valid
        x-api-key header.

````

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