Discussions

Ask a Question
Back to All

Request a list of charge (State)

Sending this:

curl --request GET
--url 'https://public-api.monta.com/api/v1/charges?chargePointId=2981099&state=charging&page=0&perPage=10'
--header 'accept: application/json'
--header 'authorization: Bearer cde287ac. '

Responds with:

{
"data": [],
"meta": {
"itemCount": 0,
"currentPage": 0,
"perPage": 10,
"totalPageCount": 0,
"totalItemCount": 0
}
}

But the retrieve from the charge-points is:

{
"id": 2981099,
"createdAt": "2023-05-24T10:14:52Z",
"updatedAt": "2023-09-12T05:30:02Z",
"serialNumber": "ECLZJ2EU",
"name": "CPE001",
"visibility": "private",
"maxKW": 11,
"maxKw": 11,
"type": "ac",
"note": "På parkerings plads ved domicilet. Står ved den sydlige gavl imod huset.",
"state": "busy-charging",
"location": {
"coordinates": {
"latitude": 55.549929,
"longitude": 12.01871

The status from scope "charge-points" is clearly stated as Charging, but in the "charge-transactions" its not present with the "state=charging".

What am I doing wrong?