Consumption series
Register a point of delivery
POST/api/v1/serii/pod/
Bearer token required
Request body
nisstringrequired- Clădirea la care se leagă POD-ul.
podstringrequired- Identificatorul punctului de livrare.
reteatipstringrequired- Cod din nomenclatorul de rețele.
operatorstring- Operator (supplier or distributor) sending the data.
geomobject- GeoJSON Point, cu coordonatele în Stereo70.
geom.typestringrequired- GeoJSON geometry type (e.g. Point, MultiPolygon).
geom.coordinatesarray<number (double)>required- GeoJSON geometry coordinates.
frecventearray<string>- Structurile de serie așteptate. Gol = POD înregistrat, fără serie declarată.
Response fields
nisstring- NIS-ul de bază al clădirii (sufixul de stare se ignoră).
podstring- Point of delivery (POD) code.
inregistratboolean- The item is registered.
frecventearray<string>- Available frequencies.
Responses
- 200
- Success.
- 201
- Created.
- 400
- Invalid request; details in erori[].
- 403
- The account is not allowed this operation.
- 404
- The resource does not exist.
- 503
- An internal service is not responding; retry.
curl -X POST "https://registrulcladirilor.graphit.ro/rndc/api/v1/serii/pod/" \
-H "X-Api-Key: $API_KEY" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"nis": "ABCDEF-01",
"pod": "RO005E512345678",
"reteatip": "electricitate",
"operator": "Distribuție Energie Exemplu",
"geom": {
"type": "…",
"coordinates": [
0.0
]
},
"frecvente": [
"…"
]
}'{
"nis": "ABCDEF-01",
"pod": "RO005E512345678",
"inregistrat": true,
"frecvente": [
"…"
]
}