Skip to main content
PUT
/
meters
/
interval
Submit interval meter records
curl --request PUT \
  --url https://api.flatpeak.com/meters/interval \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "location_id": "loc_641b90b758fb8e6293716e40",
    "device_id": "dev_65e6d8334c8d715963d99db3",
    "session_reference_id": "SESSION1234567890",
    "record_reference_id": "MET1234567890",
    "direction": "IMPORT",
    "tariff_rate": "IMPORT",
    "measurand": "TRANSFERRED",
    "units": "W",
    "confidence": 1,
    "value": 20567,
    "start_time": "2022-02-01T10:30:00Z",
    "end_time": "2022-02-01T11:00:00Z"
  }
]'
{
  "id": "bat_65e42b7827c0526548432b9f",
  "object": "meter_batch",
  "records_submitted": 18379,
  "records_accepted": 18378,
  "records_processed": 32,
  "failed_records": [
    {
      "record_num": 1,
      "record_reference_id": "MET1234567890",
      "error": "end_time must not be before start_time"
    }
  ],
  "time_created": "2023-11-07T05:31:56Z",
  "account_id": "acc_661677911f2197045e6cf1b1"
}

Authorizations

Authorization
string
header
required

Body

application/json · Metering Record Request · object[]
location_id
string
required
Example:
units
string
required
Example:
value
number
required
Example:
start_time
string
required
Example:
end_time
string
required
Example:
device_id
string
Example:
session_reference_id
string
Example:
record_reference_id
string
Example:
direction
string
Example:
tariff_rate
string
Example:
measurand
string
Example:
confidence
number
Example:

Response

id
string
Example:
object
string
Example:
records_submitted
integer
Example:
records_accepted
integer
Example:
records_processed
integer
Example:
failed_records
FailedMeterRecord · object[]
time_created
string<date-time>
Example:
account_id
string
Example: