> ## 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 the current charging-session state



## OpenAPI

````yaml /api-reference/flo/flo-api-oas.json get /public/fleets/v1/sessions/{session_id}
openapi: 3.0.3
info:
  title: FLO Partner API
  version: 1.0.0
  description: >
    Contract-first API for fleet partners building an operations dashboard, a
    driver app,

    or a backend-for-frontend integration with FLO.


    The API is fleet scoped. The API key identifies exactly one fleet; callers
    never send an

    internal fleet ID. Stable opaque public IDs must be persisted instead of
    database IDs,

    phone numbers, or registration numbers.


    Modules:

    - Stations: contracted charging stations, availability, and tariffs.

    - Drivers: app-charging driver onboarding and access management.

    - Vehicles: fleet vehicle registry for tracking and restriction
    configuration.

    - Payments: read-only fleet billing summary and payment transactions.

    - Sessions: asynchronous remote start, observation, and stop for fleet
    drivers.

    - Restrictions: connector-level access, time, and SOC policy.


    Mutation requests that create sessions or resources require an

    Idempotency-Key. Money uses integer paise. A 202 session response means

    the command was accepted for processing, not completed by the charge point.


    Compatibility caveats:

    - Restrictions are evaluated only when FLO can identify the session as
    belonging to the configured driver_id or vehicle_id.

    - SOC-based stop enforcement depends on the CPO/charger sending usable SOC
    updates for the active session.

    - Time-window and SOC stop enforcement depend on the CPO/charger supporting
    remote stop for the active session path.

    - Vehicle restrictions are stored even when FLO cannot yet identify the
    vehicle during charging; enforcement begins when vehicle identification
    becomes available.

    - If identity, SOC telemetry, or remote stop support is unavailable, FLO
    enforces only the supported parts of a restriction.
servers:
  - url: https://api.ionage.in
security:
  - ApiKeyAuth: []
tags:
  - name: Operators
    description: Charge point operators whose stations are contracted to the fleet.
  - name: Drivers
    description: App-charging driver onboarding and access management.
  - name: Vehicles
    description: Fleet vehicle registry for tracking and restriction configuration.
  - name: Restrictions
    description: Connector-level access, time, and SOC policy.
  - name: Stations
    description: Contracted charging stations, availability, and tariffs.
  - name: Billing
    description: Read-only fleet billing summary.
  - name: Transactions
    description: Read-only fleet payment transactions.
  - name: Sessions
    description: Asynchronous remote start, observation, and stop for fleet drivers.
paths:
  /public/fleets/v1/sessions/{session_id}:
    get:
      tags:
        - Sessions
      summary: Get the current charging-session state
      operationId: get_sessions_by_session_id
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
          example: ses_9df5f4f7b0f64f9e
      responses:
        '200':
          description: Current state, metering, and billing snapshot.
          content:
            application/json:
              schema:
                type: object
                properties:
                  session_id:
                    type: string
                  status:
                    type: string
                  driver_id:
                    type: string
                  vehicle_id:
                    type: string
                  station_id:
                    type: string
                  charger_id:
                    type: string
                  connector_id:
                    type: string
                  metering:
                    type: object
                    properties:
                      energy_wh:
                        type: integer
                      power_w:
                        type: integer
                      state_of_charge_percent:
                        type: integer
                      sampled_at:
                        type: string
                        format: date-time
                    required:
                      - energy_wh
                      - power_w
                      - state_of_charge_percent
                      - sampled_at
                  billing:
                    type: object
                    properties:
                      billing_type:
                        type: string
                      currency:
                        type: string
                      estimated_cost_paise:
                        type: integer
                      final_cost_paise:
                        type: string
                        nullable: true
                    required:
                      - billing_type
                      - currency
                      - estimated_cost_paise
                      - final_cost_paise
                  start_time:
                    type: string
                    format: date-time
                  end_time:
                    type: string
                    nullable: true
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                required:
                  - session_id
                  - status
                  - driver_id
                  - vehicle_id
                  - station_id
                  - charger_id
                  - connector_id
                  - metering
                  - billing
                  - start_time
                  - end_time
                  - created_at
                  - updated_at
              example:
                session_id: ses_9df5f4f7b0f64f9e
                status: ACTIVE
                driver_id: drv_9df5f4f7b0f64f9e
                vehicle_id: veh_9df5f4f7b0f64f9e
                station_id: st_d1ed2dd3f9ef4b4e
                charger_id: ch_2cf24dba5fb0a30e
                connector_id: con_3a7bd3e2360a3d80
                metering:
                  energy_wh: 12840
                  power_w: 58200
                  state_of_charge_percent: 64
                  sampled_at: '2026-09-17T09:30:00Z'
                billing:
                  billing_type: PREPAID
                  currency: INR
                  estimated_cost_paise: 23754
                  final_cost_paise: null
                start_time: '2026-09-17T09:08:00Z'
                end_time: null
                created_at: '2026-09-17T09:07:42Z'
                updated_at: '2026-09-17T09:30:00Z'
        '401':
          description: The API key is missing or invalid.
        '404':
          description: The resource was not found for the authenticated fleet.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
              example:
                error:
                  code: RESOURCE_NOT_FOUND
                  message: the requested resource was not found
        '500':
          description: Unexpected server-side error while processing a valid request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                    required:
                      - code
                      - message
                required:
                  - error
              example:
                error:
                  code: INTERNAL_ERROR
                  message: an unexpected error occurred while processing the request
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Fleet-scoped API key. The key identifies exactly one fleet; callers
        never send an internal fleet ID.

````

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