I'm using Python to interface to a web service which receives http post messages. For one particular service, the documentation reads:
Parameters:
Name Type Value
meteringPointIds String array List of metering point ids
HTTP verb: POST
I only have one metering point id, so I'm using this construction:
postData = {'meteringPointIds': meteringPointId}
r = requests.post( url + path, headers=headers, json=postData)
The variable meteringPointId contains a string with the metering point id.
#20013: No meteringpoints in request conforms to valid meteringpoint format.
Let's say the metering point id is 1234. I've tried
postData = {'meteringPointIds': 1234}
postData = {'meteringPointIds': [1234]}
postData = {'meteringPointIds': ['1234']}
postData = {'meteringPointIds': '[1234]'}
postData = {'meteringPointIds': ["1234"]}
postData = {'meteringPointIds': "[1234]"}
But no matter what I do, I always get the above error. What am I missing?
Web service documentation:
Customer and Third party API for Datahub Eloverblik Technical description