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

# Get tariff



## OpenAPI

````yaml /api-reference/nexus/nexus-api-oas.json get /tariffs/{id}
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/{id}:
    get:
      tags:
        - Tariffs
      summary: Get tariff
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            Tariff public identifier. Exactly 8 alphanumeric characters
            (a-zA-Z0-9).
          schema:
            type: string
      responses:
        '200':
          description: Tariff found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TariffResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Tariff not found or ID format invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TariffResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/Tariff'
    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
    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.