Using the inControl API to get SIM data - not working

Hi,

We use about 35 peplink devices, connected to the incontrol portal of our partner Venn Telecom.
When we try to get Basic API data from this environment we get the correct response in Postman.

For example, the following GET calls works fine:

https://partnerURL/rest/o/{organization_id}/d/basic?access_token=[ACCESS_TOKEN]
We get the full list of devices.

/rest/o/{organization_id}/g/{group_id}/d/{device_id}/client
We get details of the connected clients of a specific device

But when I try /sim_usages/monthly I get the following error:

“resp_code”: “INVALID_INPUT”,
“caller_ref”: “2022090807341957105273”,
“server_ref”: “2022090807341994599622”,
“message”: “invalid_date”

My Guess is it has something to do with not entering the correct parameters(invalid_date), but can’t figure it out.
This sim_usage call has the following parameters: start / end / Wanid / slot / include_details

  • Do i need to enter these parameters to get data?
  • Where can i find the wanid and slot number?
  • could it be that our partner is blocking these specific details?

I hope someone can push me in the right direction.
Thx!

Anyone?

Hi

the date format for “start” and “end” param is “yyyy-MM-dd”.
The “wan_id” and “slot” id can be found in device detail API /d/{device_id} under the interface data.

The param “wan_id”, “slot”, “include_details” are optional.

If you still have issue with the API, please send your request details including your organization_id, and device_id, etc to [email protected].

Thanks @Bonnie_Lam
@Gizzmo don’t hesitate to reach out to us at Venn if you need any additional help.

@Bonnie_Lam @MartinLangmaid
Thanks for reaching out!
In the meantime we have found the issue.
Postman did not format the GET request correctly, resulting in the error we did get.
After correcting the issue, all data became available.