POST
/
subscriptions
/
{id}
/
meter_readings
Submit a meter reading
curl --request POST \
  --url https://api.nomos.energy/subscriptions/{id}/meter_readings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": 150,
  "timestamp": "2024-03-14T12:00:00Z",
  "message": "Reading to start the subscription"
}'
{
  "object": "meter_reading",
  "id": "mr_rocbrf1u5e48mm0reeqoag90",
  "customer": "cus_a8n8ol7yd4h0wohx824f0bui",
  "subscription": "sub_rocbrf1u5e48mm0reeqoag90",
  "meter": "mtr_azk4zue2ijx4ff1dbjt14m5h",
  "value": 150,
  "timestamp": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Example:

"sub_ig1f5x45789r3ax7dlfff4q4"

Body

application/json

Meter reading input

The body is of type object.

Response

200
application/json

Meter reading accepted

The response is of type object.