Switch Developer Documentation
  • Welcome
  • ⚠️Migration to Auth0
    • Overview
    • Status
    • Switch API
      • Client Credentials Flow
      • Organization Client
      • Token Endpoint
    • OpenADR 3 VTN API
      • VTN Credentials
      • Token Endpoint
  • Getting Started
    • Concepts
    • Guides
      • How to send readings
      • Market operations
      • Conditional agreements
    • Support
  • Switch API
    • Overview
    • Terms of Use
    • Authentication
      • Client Credentials Flow
      • Organization Client
      • Token Endpoint
    • Rate Limiting
    • Errors
    • API Reference
      • Market Zones
      • Products
      • Resources
      • Meters
      • Readings
  • OpenADR 3
    • Overview
    • Authentication
      • VTN Credentials
      • Token Endpoint
    • API Reference
      • Programs
      • Events
      • Reports
      • Subscriptions
      • Vens
    • Webhooks
      • Callback URL verification
      • Domain and IP addresses
      • Best practices
    • Payloads
    • Code samples
  • Libraries
    • .NET SDK
      • SDK Reference
        • IAuthService.Auth
        • IProgramsService.Programs
        • IEventsService.Events
        • IReportsService.Reports
        • ISubscriptionsService.Subscriptions
        • IVensService.Vens
Powered by GitBook
On this page

Was this helpful?

  1. Switch API
  2. API Reference

Meters

PreviousResourcesNextReadings

Last updated 7 months ago

Was this helpful?

Get meters

get

Required permissions: Meter.Organization.Read

Authorizations
Query parameters
organizationIdinteger · int32Optional

The organization identifier. Required if the caller has no global administrator permissions.

Responses
200
Lists of meters and registers
application/json
400
Input data was invalid
application/json
401
Not authorized
application/json
403
Not allowed
application/json
500
Internal server error
get
GET /api/meter HTTP/1.1
Host: api.switchmarket.se
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "meters": [
    {
      "id": 1,
      "externalId": "text",
      "name": "text",
      "type": 0,
      "longitude": "text",
      "latitude": "text",
      "organizationsIds": [
        1
      ]
    }
  ],
  "registers": [
    {
      "id": 1,
      "externalId": "text",
      "name": "text",
      "type": 0,
      "measurementType": 0,
      "measurementPrefix": 0,
      "defaultResolution": 1,
      "updateFrequency": 1,
      "isVirtual": true,
      "meterId": 1,
      "virtualDefinition": {
        "id": 1,
        "calculationType": 1,
        "baselineAlgorithmType": 1,
        "timeZone": "text",
        "constant": 1,
        "sumPreviousValues": true,
        "expression": "text",
        "timeOfDay": "14:25:15",
        "sourceRegisters": [
          1
        ]
      }
    }
  ]
}