List readings

List readings for the given parameters

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Retrieve a paginated list of meter readings that the authenticated user has access to.

Endpoint

GET /2.0/readings

Query Parameters

Pagination & Sorting

ParameterTypeDefaultDescription
limitnumber100Number of results per page
pagenumber1Page number (1-based)
sortstring-Sort field and direction. Format: field:asc or field:desc (e.g. submittedAt:desc)

Filters

Any field listed in the Reading object can be used as a query parameter to filter results.

Date range filters: Date fields support range operators using dot notation:

  • field.gte - Greater than or equal to
  • field.lte - Less than or equal to
  • field.gt - Greater than
  • field.lt - Less than

Example: submittedAt.gte=2024-01-01&submittedAt.lte=2024-12-31

Common filters:

ParameterTypeDescription
accountIdstringFilter by account (meter) ID
entityIdstringFilter by entity ID
typestringFilter by reading type (default: A)
sourcestringFilter by source: manual, invoice, app, sub meter
unitsstringFilter by units (e.g. kwh, m3)
isHalfHourlybooleanFilter half-hourly readings
registerIdstringFilter by register ID
invoiceIdstringFilter readings linked to a specific invoice

Response

{
  "total": 500,
  "limit": 100,
  "skip": 0,
  "data": [
    {
      "_id": "507f1f77bcf86cd799439011",
      "submittedAt": "2024-01-15T09:30:00.000Z",
      "value": 60000,
      "type": "A",
      "units": "kwh",
      "name": "Monthly Read",
      "source": "manual",
      "registerId": "1",
      "accountId": "507f1f77bcf86cd799439012",
      "entityId": "507f1f77bcf86cd799439013",
      "companyId": "507f1f77bcf86cd799439014",
      "createdAt": "2024-01-15T10:00:00.000Z",
      "updatedAt": "2024-01-15T10:00:00.000Z"
    }
  ]
}

Example Request

curl -X GET "https://api.etainabl.com/2.0/readings?accountId=507f1f77bcf86cd799439012&submittedAt.gte=2024-01-01&sort=submittedAt:desc&limit=50" \
  -H "x-api-key: YOUR_API_KEY"

Scope Required

read:readings

Query Params
int32
Defaults to 100

Maximum number of invoices to return

int32
Defaults to 1

Page number to return when there are more results than the given limit

string

Sort order in the following format submittedAt:asc or submittedAt:desc

string
required

The account ID you wish to view readings for

date-time

Dates must be in ISO format. You can use special parameters with this such as gte, lte, gt, lt (greater than etc) by appending to the parameter submittedAt.gte

float

Reading value. You can use special parameters with this such as gte, lte, gt, lt (greater than etc) by appending to the parameter submittedAt.gte

string

The source of the reading: invoice, manual, app, import

string

View readings for a specific invoice

boolean

When a meter is reset to 0, the first reading will have this set to true

boolean

Set to true to only view half hourly readings

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json