Meter Reading Exchange
create
Method |
URL |
|---|---|
|
api/esh/meter_reading_exchange/create |
The Meter Reading Exchange process is used by a supplier to exchange meter readings for small-scale connection. This is needed for event related meter readings and periodic meter readings.
Pre-requisite steps
The initiator sends a request to create a Global Task
meter_reading_exchangeIf the validation of the input parameters results in an error the ‘Global Task’ is not created and the errors are returned.
A Global Task is created and the GlobalTask.ID is returned.
Global Task steps
The ValueA adapter sends out the request to EDSN via an XML request: MeterReadingExchangeNotification.
EDSN rejection handling
EDSN validates the request (see EDSN validations). If there are inaccuracies, the message is rejected.
The ValueA adapter collects the rejection, if available, from EDSN: RejectionMeterReadingResponse.
When a rejection is received the status of the GlobalTask is set to rejected.
Dispute handling
A GlobalTask is started for the dispute handling (Meter Reading Dispute)
When the dispute handling is finished the status is set to Ready when deadline for dispute is expired or the dispute is not accepted. Otherwise the status is set to Rejected.
Grid Operator rejection handling
The Grid Operator validates the request (see Grid Operator validations). If there are inaccuracies, the message is rejected.
The ValueA adapter collects the rejections send by the Grid Operator, if available, from EDSN: MeterReadingRejectionResponse.
When a rejection is received the status of the GlobalTask is set to rejected.
Input parameters
meter_reading_exchange global_task input parameters |
||
type |
object |
|
properties |
||
|
type |
string |
pattern |
^[0-9]{18}$ |
|
|
enum |
MOVEIN, MOVEOUT, EOSUPPLY, SWITCHLV, PERMTR, ALLMTCHG, MONTHMTR |
|
external dossier id, mandatory if process_id is MOVEIN, MOVEOUT, EOSUPPLY or SWITCHLV |
|
type |
string |
|
|
type |
string |
pattern |
^[0-9]{13}$ |
|
|
type |
string |
pattern |
^[0-9]{13}$ |
|
|
enum |
ELK, GAS |
|
type |
string |
maxLength |
18 |
|
minLength |
1 |
|
|
type |
integer |
maximum |
9 |
|
minimum |
0 |
|
|
type |
array |
items |
||
|
If true then the latest available MeteringPoint data will be used to perform additional validations |
|
type |
boolean |
|
default |
False |
|
register
type |
object |
|
properties |
||
|
enum |
KWH, M3N, MTQ |
|
enum |
LVR, TLV |
|
type |
integer |
maximum |
9 |
|
minimum |
1 |
|
|
enum |
L, N |
|
type |
array |
items |
||
additionalProperties |
False |
|
reading
type |
object |
|
properties |
||
|
type |
integer |
|
type |
string |
format |
date |
|
|
Calculated, Agreed on, Customer/P1-reading, Physical reading, P4-reading |
|
enum |
005, 102, 22, 003, 004 |
|
additionalProperties |
False |
|
EDSN validations
validation |
error message |
error code |
|---|---|---|
The request to consult, a connection is complete and syntactically correct |
Message incomplete or syntactically incorrect |
200 |
If a transaction dossier is provided: does the transaction dossier exist? |
Transaction dossier unknown |
215 |
In case of an event related reading: does the transaction dossier exist? |
Transaction dossier unknown |
215 |
Grid Operator validations
validation |
error message |
error code |
|---|---|---|
Is the measurement data not too old? |
Determined measurement data too old |
231 |
Is it a dispute or non-event meter readings for GV? |
Delivery of dispute or non-event meter readings not possible for a large-scale metering point |
232 |
The connection belongs to the domain of the relevant network operator |
EAN-code connection unknown |
201 |
has the metering point a measuring device? |
Metering point has no measuring device |
234 |
Does the amount of meter readings equals the number of active registers? |
Amount of meter readings unequals the number of active registers |
235 |
Does the number of digits in the meter readings equals the number of digits of the register? |
Number of digits in the meter readings unequals the number of digits of the register |
236 |
Is the meter reading exchange for a small-scale metering point? |
Meter reading exchange not possible for a large-scale metering point |
254 |
In case of an periodic meter reading: is the supplier the current supplier? |
Supplier is not the current supplier |
237 |
In case of an periodic meter reading: is the meter reading not earlier then a already determined meter reading? |
Meter reading is ahead of already determined meter reading |
238 |
In case of an event: is the supplier the initiator of the event? |
Supplier is not the initiator of the event |
239 |
In case of an event: is an event known on the recording date? |
No event known on recording date |
240 |
Output parameters
meter_reading_exchange global_task return parameters |
|||
properties |
|||
|
GlobalTask.id |
||
type |
string |
||
format |
uuid |
||
|
type |
object |
|
properties |
|||
|
ValueA Broker message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
array |
|
items |
|||
global_task_validation
type |
object |
|
properties |
||
|
type |
string |
|
optional reference to parameter |
|
type |
string / null |
|
|
type |
string / null |
getStatus
Method |
URL |
|---|---|
|
api/esh/meter_reading_exchange/get_status |
Get status input parameters
global_task get_status input parameters |
||
type |
object |
|
properties |
||
|
GlobalTask.id |
|
type |
string |
|
format |
uuid |
|
Get status return parameters
global_task get_status return parameters |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
|
type |
string |
|
format |
date |
||
|
type |
string / null |
|
|
type |
array |
|
items |
|||
|
type |
object |
|
properties |
|||
|
ValueA Broker message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
array |
|
items |
|||
status_detail
type |
object |
|
properties |
||
|
type |
string |
|
type |
string / null |
get_status_validation
type |
object |
|
properties |
||
|
type |
string |
|
optional reference to parameter |
|
type |
string / null |
|
|
type |
string / null |
getData
Method |
URL |
|---|---|
|
api/esh/meter_reading_exchange/get_data |
Get data input parameters
meter_reading_exchange get_data input parameters |
||
type |
object |
|
properties |
||
|
GlobalTask.id |
|
type |
string |
|
format |
uuid |
|
Get data return parameters
meter_reading_exchange get_data return parameters |
|||
type |
object |
||
properties |
|||
|
type |
object |
|
properties |
|||
|
type |
string |
|
pattern |
^[0-9]{13}$ |
||
|
type |
string |
|
pattern |
^[0-9]{13}$ |
||
|
type |
string |
|
maxLength |
1000 |
||
minLength |
1 |
||
|
enum |
ELK, GAS |
|
|
type |
string |
|
maxLength |
18 |
||
minLength |
1 |
||
|
type |
integer |
|
maximum |
9 |
||
minimum |
0 |
||
|
type |
array |
|
items |
|||
|
type |
object |
|
properties |
|||
|
type |
string |
|
pattern |
^[0-9]{13}$ |
||
|
type |
string |
|
pattern |
^[0-9]{13}$ |
||
|
Yes, No |
||
enum |
J, N |
||
|
type |
string |
|
maxLength |
100 |
||
minLength |
1 |
||
|
enum |
ELK, GAS |
|
|
type |
object |
|
properties |
|||
|
type |
string |
|
pattern |
^[0-9]{13}$ |
||
|
type |
string |
|
pattern |
^[0-9]{13}$ |
||
|
enum |
ELK, GAS |
|
|
type |
array |
|
items |
|||
|
type |
object |
|
properties |
|||
|
type |
array |
|
items |
|||
|
type |
object |
|
properties |
|||
|
ValueA Broker message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
array |
|
items |
|||
Dispute Register
type |
object |
|
properties |
||
|
enum |
KWH, M3N, MTQ |
|
enum |
LVR, TLV |
|
type |
integer |
maximum |
9 |
|
minimum |
1 |
|
|
enum |
L, N |
|
type |
array |
items |
||
Dispute Reading
type |
object |
|
properties |
||
|
type |
integer |
|
type |
string |
format |
date |
|
|
Calculated, Agreed on, Customer/P1-reading, Physical reading, P4-reading |
|
enum |
005, 102, 22, 003, 004 |
|
Reason
type |
object |
|
properties |
||
|
type |
string |
|
type |
string / null |
get_data_validation
type |
object |
|
properties |
||
|
type |
string |
|
optional reference to parameter |
|
type |
string / null |
|
|
type |
string / null |
getMessages
Method |
URL |
|---|---|
|
api/esh/meter_reading_exchange/get_messages |
This Task wil get all available MeterReadingExchange messages from EDSN.
Get Input parameters
meter_reading_exchange get_messages input parameters |
|
type |
object |
properties |
|
Get return parameters
meter_reading_exchange get_messages return parameters |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
|
type |
integer |
|
|
type |
object |
|
properties |
|||
|
ValueA Broker message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
array |
|
items |
|||
get_validation
type |
object |
|
properties |
||
|
type |
string |
|
optional reference to parameter |
|
type |
string / null |
|
|
type |
string / null |
sendMessages
Method |
URL |
|---|---|
|
api/esh/meter_reading_exchange/send_messages |
This Task wil send all available MeterReadingExchange(Notifications) to EDSN.
Send Input parameters
meter_reading_exchange send_messages input parameters |
|
type |
object |
properties |
|
Send return parameters
meter_reading_exchange send_messages return parameters |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
|
type |
array |
|
items |
EDSN message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
object |
|
properties |
|||
|
ValueA Broker message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
array |
|
items |
|||
send_validation
type |
object |
|
properties |
||
|
type |
string |
|
optional reference to parameter |
|
type |
string / null |
|
|
type |
string / null |
eventMessageCollector
Method |
URL |
|---|---|
|
api/esh/meter_reading_exchange/event_message_collector |
This Task wil get all event based MeterReadingExchange messages from EDSN.
Event Message Collector Input parameters
meter_reading_exchange event_message_collector input parameters |
||
type |
object |
|
properties |
||
|
Date-time format as defined in RFC 3339, section 5.6. |
|
type |
string |
|
format |
date-time |
|
|
Maximum number of messages to be fetched, because minimum timespan is 1 second it can return more records then requested |
|
type |
integer |
|
default |
1000 |
|
Event Message Collector Return parameters
meter_reading_exchange event_message_collector return parameters |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
format |
date-time |
||
|
type |
integer |
|
|
type |
array |
|
items |
|||
|
type |
object |
|
properties |
|||
|
ValueA Broker message.id |
||
type |
string |
||
format |
uuid |
||
|
type |
array |
|
items |
|||
meter_reading_exchange_response
type |
object |
|
properties |
||
|
type |
string |
pattern |
^[0-9]{13}$ |
|
|
type |
string |
pattern |
^[0-9]{13}$ |
|
|
type |
string |
format |
date |
|
|
type |
string |
format |
date |
|
|
enum |
ELK, GAS |
|
type |
array |
items |
||
mre_res_volume
type |
object |
|
properties |
||
|
type |
string |
format |
date |
|
|
type |
string |
format |
date |
|
|
type |
string |
maxLength |
15 |
|
minLength |
1 |
|
|
type |
string |
maxLength |
15 |
|
minLength |
1 |
|
|
type |
array |
items |
||
maxItems |
1 |
|
minItems |
0 |
|
|
type |
array |
items |
||
maxItems |
2 |
|
minItems |
0 |
|
mre_res_register
type |
object |
|
properties |
||
|
enum |
LVR, TLV |
|
enum |
L, N |
mre_res_reading
properties |
||
|
type |
string |
|
type |
string |
|
type |
string |
|
type |
string |
format |
date |
|
|
type |
integer |
|
type |
string |
|
type |
string |
collector_validation
type |
object |
|
properties |
||
|
type |
string |
|
optional reference to parameter |
|
type |
string / null |
|
|
type |
string / null |