Discussions
Chargers not showing for non-personal charger.
almost 2 years ago by Roger Selwyn
I have a charger on Monta via the Sevadis enterprise integration. My userid is 135013, I believe my charger ID (as shown in the portal) is 2975778. I am the owner of the charger. Getting an accessToken via the api works perfectly.
When I make this call (with bearer token in header) - https://public-api.monta.com/api/v1/charge-points. I get the following response:
{
"data": [],
"meta": {
"itemCount": 0,
"currentPage": 0,
"perPage": 10,
"totalPageCount": 0,
"totalItemCount": 0
}
}
When I make this call - https://public-api.monta.com/api/v1/charge-points/2975778. I get this response:
{
"status": "FORBIDDEN",
"message": "User with ID `135013` has no access to Charge Point with ID `2975778`.",
"readableMessage": "Forbidden",
"errorCode": "ACCESS_FORBIDDEN",
"context": null
}
My expectation is that I should be able to retrieve all my chargers whether personal or enterprise.