My Products
Help
kashyap
PARTNER

From VNI to Visma Connect Authentication invalid_tennat

by kashyap

Hello,

We are migrating from VNI to connect method. We have create new separate app in the visma.

Now when we are authenticating we are not getting proper permission while approving.

As well as we after approving app once request forwarded back to system, we try to generate token using authorization code. We are getting "invalid_tennat"

 

We are using below scopes:
openid email profile offline_access vismanet_erp_interactive_api:create vismanet_erp_interactive_api:delete vismanet_erp_interactive_api:read vismanet_erp_interactive_api:update

3 REPLIES 3

by Pim Eijfferts

Hi,

 

The reason why you get this error is because you have to turn on the role 'API User' in Admin for the user(s):

2024-01-30 15_33_30-Admin _ Visma.net _ User.png

 

Once this is done, we advise to try again after 10-15 minutes because sometimes it takes a while to process the new role.

kashyap
PARTNER

by kashyap

Now we are able to authorize app. We got some other issue.

In VNI version, there is no company selection while authenticating.  We fetch all companies using https://integration.visma.net/API/resources/v1/context API and select specific company and save their IPP company number at our system.  Now this URL not accessible with new connect token.  

Also In VNI we are sending "ipp-company-id" & "ipp-application-type" in the header, I think its not require in new connect mechanism because we are authenticating specific company.


Please clear understanding of flow.

 

by Pim Eijfferts

Hi,

 

We advise you to go through this post:

https://community.visma.com/t5/Forum-in-Developers-Visma-net/Visma-net-ERP-API-Developer-Portal-Star...

 

Espcially this guide:

2024-01-31 13_08_27-Visma.net ERP API Developer Portal Startup Guide - Visma Community.png

On page 15 we explain the differences of the VNI and Visma Connect (authorization) and explaining the flow. If there's anything unclear, please let us know.