Web Service Documentation / Categories / Connection/Share Services / Accept/Reject Pending Meter Share Requests
Updated on July 17, 2013
This web service sends an accept or reject reply to a pending meter share request along with an optional note based on the information provided in the XML request.
23.0
POST
/share/meter/(meterId)
Field Name | Value | Comments |
---|---|---|
Authorization | Basic credentials | |
Content-Type | application/xml |
Yes
Parameter Name | Description |
---|---|
meterId | Id to the meter |
Request/Response | Schema Name |
---|---|
Request | authorization.xsd |
Response | response.xsd |
The following example accepts the share request to the meter that has an id of 86788.
POST /share/meter/86788<?xml version="1.0" encoding="UTF-8"?> <sharingResponse> <action>Accept</action> <note>Your sharing request has been verified and accepted.</note> </sharingResponse>
The following example rejects the share request to the meter that has an id of 86788.
POST /share/meter/86788<?xml version="1.0" encoding="UTF-8"?> <sharingResponse> <action>Reject</action> <note>Your sharing request has been rejected.</note> </sharingResponse>
The following example shows that the share has been established to the meter that has an id of 86788. It also includes a link to web service to retrieve the meter.
<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok"/>