My Products
Help
alexandreveeck
CONTRIBUTOR **

Same request made too many times

by alexandreveeck

Hey 

 

I am facing an error when trying to get 10.000 registers in the endpoint CustomerSalesPrice in Visma API.  Considering that the API endpoint supports 1.000 per page I would need to make 10 requests in order to get all the data I need. 


Even with me paginating the results (increasing the pageNumber) the API does not seem to recognize that it is a different request, falling into this rule below.

https://ibb.co/2d87MDs 

 

And here's the error description in the community

https://ibb.co/wWWMJ8d 

 

An important fact is that I'm developing in Brasil. My coworker from Sweden that is using the same company and parameters is not having this issue. 

I've tested using our Sweden VPN but I had the same error. 

 

Would someone know to inform if Visma has some kind of block based in the geolocation? Or how could I solve that? 

 

Thank you

3 REPLIES 3
Accepted solution
Yıldırım
VISMA

by Yıldırım

Hello, could you please send us your API Client ID that you've generated a token with ? <developersupport@visma.com>

Visma.net ERP API Throttling Policy can be seen here: Why am I receiving "HTTP 429 - Too many request / throttling" response from API ?

alexandreveeck
CONTRIBUTOR **

I was using the swagger to get the token. That was the problem. 

You made me realize that.

 

After generating the token with postman with the oAuth2 flow I was able to complete my 10 requests.

Thank you for your support. 

Yıldırım
VISMA

Thanks for the confirmation!