Lunar Energy Periodical Tariffs API

Manage periodical (recurring) tariffs

Operations 4

GET /api/v1/periodicaltariffs List Periodical Tariffs #
POST /api/v1/periodicaltariffs Create Periodical Tariff #
GET /api/v1/periodicaltariffs/{tariffId} Get Periodical Tariff #
PATCH /api/v1/periodicaltariffs/{tariffId} Update Periodical Tariff #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lunar-energy-periodical-tariffs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lunar-energy-periodical-tariffs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Gridshare Partner Periodical Tariffs API
  description: 'The Gridshare Partner API is Lunar Energy''s operator-facing surface for

    utilities, retailers, and DER aggregators managing residential

    distributed energy resources at fleet scale.'
  version: v1.0
  contact:
    name: Lunar Energy
    url: https://www.gridshare.com
    email: developers@gridshare.com
  x-logo:
    url: https://www.lunarenergy.com/favicon.ico
servers:
- url: https://developer-api.partner.us.mygridshare.com
  description: Production server (US)
- url: https://developer-api.partner.mygridshare.com
  description: Production server (Rest of World)
- url: https://developer-api.partner.dev0.us.mygridshare.com
  description: Development server (US)
- url: https://developer-api.partner.dev0.mygridshare.com
  description: Development server (Rest of World)
security:
- bearerAuth: []
tags:
- name: Periodical Tariffs
  description: Manage periodical (recurring) tariffs
paths:
  /api/v1/periodicaltariffs:
    get:
      operationId: listPeriodicalTariffs
      summary: List Periodical Tariffs
      description: List all periodical tariffs.
      tags:
      - Periodical Tariffs
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeriodicalTariffList'
    post:
      operationId: createPeriodicalTariff
      summary: Create Periodical Tariff
      tags:
      - Periodical Tariffs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PeriodicalTariff'
      responses:
        '201':
          description: Created
  /api/v1/periodicaltariffs/{tariffId}:
    parameters:
    - $ref: '#/components/parameters/TariffId'
    get:
      operationId: getPeriodicalTariff
      summary: Get Periodical Tariff
      tags:
      - Periodical Tariffs
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PeriodicalTariff'
    patch:
      operationId: updatePeriodicalTariff
      summary: Update Periodical Tariff
      description: 'Update properties of an existing periodical tariff. Append or

        rewrite pricing periods. Tariffs may have an open-ended latest

        period; PATCH-ing in a later period closes it automatically.'
      tags:
      - Periodical Tariffs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PeriodicalTariff'
      responses:
        '200':
          description: OK
components:
  parameters:
    TariffId:
      in: path
      name: tariffId
      required: true
      schema:
        type: string
  schemas:
    PeriodicalTariffList:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: '#/components/schemas/PeriodicalTariff'
    PricingPeriod:
      type: object
      properties:
        start:
          type: string
          format: date
        end:
          type: string
          format: date
        rates:
          type: array
          items:
            type: object
            properties:
              dayOfWeek:
                type: string
              from:
                type: string
              to:
                type: string
              price:
                type: number
        exceptions:
          type: array
          items:
            $ref: '#/components/schemas/TariffExceptionPeriod'
    PeriodicalTariff:
      type: object
      required:
      - name
      - companyName
      properties:
        tariffId:
          type: string
        name:
          type: string
        companyName:
          type: string
        currency:
          type: string
        pricingPeriods:
          type: array
          items:
            $ref: '#/components/schemas/PricingPeriod'
    TariffExceptionPeriod:
      type: object
      properties:
        start:
          type: string
          format: date
        end:
          type: string
          format: date
        rate:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'OAuth 2.0 client-credentials access token obtained from the

        Gridshare partner Cognito authentication endpoint.

        '