GridX Customer API

The Customer API from GridX — 2 operation(s) for customer.

OpenAPI Specification

gridx-customer-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: GridX Enterprise Rate Platform Authentication Customer API
  description: Partner/enterprise API for the GridX Enterprise Rate Platform. The documented surface (the "Calculate" / pricing-engine APIs) covers dynamic pricing retrieval, customer account info and interval usage, and OpenADR demand-response program subscriptions. Documentation is published per utility deployment; the canonical reference is the PG&E deployment hosted at pge-pe-api.gridx.com, with an equivalent SCE pricing endpoint. Endpoint paths and shapes below reflect the public GridX Calculate API documentation; request and response schemas are summarized and may vary by utility deployment and by the GridX Empower (rate/bill/cost analysis) product contract, which is not fully published. No undocumented endpoints are fabricated here.
  termsOfService: https://www.gridx.com/
  contact:
    name: GridX
    url: https://www.gridx.com/
  version: '1.0'
servers:
- url: https://pge-pe-api.gridx.com/v1
  description: PG&E production deployment
- url: https://pge-pe-api.gridx.com/stage/v1
  description: PG&E stage (test) deployment
security:
- bearerAuth: []
tags:
- name: Customer
paths:
  /customer/info:
    get:
      operationId: getCustomerInfo
      tags:
      - Customer
      summary: Retrieve customer account information
      description: Returns account attributes for a service agreement, including contractId, customerUuid, meterAccountId, rateCode, voltageClass, rateCodeHasVoltageClass, circuitId, hasCca, and cca.
      parameters:
      - name: Authorization
        in: header
        required: true
        description: JWT bearer token from the /token endpoint.
        schema:
          type: string
      - name: X-Contract-Id
        in: header
        required: true
        description: Base64-encoded service agreement ID (10 digits, leading zeros).
        schema:
          type: string
      - name: X-Customer-Uuid
        in: header
        required: true
        description: Base64-encoded customer UUID.
        schema:
          type: string
      responses:
        '200':
          description: Customer account information.
  /customer/usage:
    get:
      operationId: getCustomerUsage
      tags:
      - Customer
      summary: Retrieve customer interval usage
      description: Returns interval usage payloads (CONSUMPTION, GENERATION, BASELINE_CONSUMPTION, BASELINE_GENERATION) with payloadDescriptors and intervalPeriod metadata for a date range.
      parameters:
      - name: Authorization
        in: header
        required: true
        description: JWT bearer token from the /token endpoint.
        schema:
          type: string
      - name: X-Contract-Id
        in: header
        required: true
        description: Base64-encoded service agreement ID.
        schema:
          type: string
      - name: X-Customer-Uuid
        in: header
        required: true
        description: Base64-encoded customer UUID.
        schema:
          type: string
      - name: start
        in: query
        required: true
        description: Start datetime, e.g. 2024-07-01T00:00:00Z.
        schema:
          type: string
          format: date-time
      - name: end
        in: query
        required: true
        description: End datetime, e.g. 2024-07-02T00:00:00Z.
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Interval usage data.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT bearer token obtained from the /token endpoint (expires ~1 hour).