PUT
/
meters
/
cumulative
/
epoch

Authorizations

Authorization
string
headerrequired

Authenticate with bearer_token you obtained from /login endpoint.

Body

application/json
location_id
string
required

FlatPeak location_id that you are submitting metering records for.

device_id
string

FlatPeak device_id you are submitting metering records for. If you provided both location_id and device_id your records will be attributed to device_id.

session_reference_id
string

A reference for a group of metering records, for example, a charging session ID.

direction
string

Indicates metering direction. Set to IMPORT or EXPORT. Defaults to IMPORT.

tariff_rate
string

Indicates tariff direction. Set to IMPORT, EXPORT or LOCAL. Defaults to match the direction parameter.

units
string
required

Units of measure, supported values are WH, KWH.

data
object[]
required

Metering data array

Response

200 - application/json
id
string

FlatPeak ID for this submission.

object
string

Object name, i.e. meter_batch.

records_submitted
integer

Number of received metering records.

records_accepted
integer

Number of accepted metering records.

records_processed
integer

Number of processed metering records.

failed_records
object[]

Returns details of any meter records that failed processing

time_created
string

Time when this object was created. In UTC.

account_id
string

FlatPeak account ID.