Created
October 25, 2023 15:27
-
-
Save erdesigns-eu/d2e4ed47cf5d84e02e064cc3c497de9f to your computer and use it in GitHub Desktop.
Fluvius prepaid electricity meter api endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Belgium there is a possibility to have a prepaid smart meter for electricity. Fluvius has an app and webpage where you can see the details. | |
I wanted to incorporate this api into a dashboard for a client, so for this purpose i tried to fetch the data myself. Use this on you own risk! | |
I contacted fluvius to ask if i could access their api for this purpose, but i didnt get an answer. So im sharing it here for anyone else who likes to do the same. | |
GET /prepaid/api/prepaid-contracts HTTP/1.1 | |
Host: mijn.fluvius.be | |
X-Fluv-Prepaid-Identification-Code: <UNIQUE-PREPAID-CODE> | |
X-Fluv-Prepaid-Postal-Code: <ZIPCODE> | |
The unique prepaid code is the same code you enter on the website or in the app, and the postal code is the zipcode. | |
This is a simple GET request with these two headers that are required. | |
The response is a JSON object (i stripped the details): | |
[{"id":"F_0000000000","accessPoint":{"ean":"0000","discipline":00,"street":"STREETNAME","houseNumber":"XX","houseNumberAddition":null,"postalCode":"XXXX","place":"XXXX","countryCode":"BE"},"credits":0,"startDate":"2020-01-01T00:00:00+02:00","endDate":"2051-01-01T00:59:59+01:00","customerStatus":1,"contractStatus":0,"fullPowerCredit":0,"rechargeReminderThreshold":5.00,"powerLimiter":true,"recentTransactionStatus":0,"prepayState":0,"paymentBlocked":false,"isMeterOn":true,"transactionTime":"2020-01-01T00:00:00+02:00"}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment