to get a personalized navigation.
to get a personalized navigation.
After receiving an token using:
https://community.visma.com/t5/Knowledge-base-in-Developers/OAuth-2-0-Authorization-Flow/ta-p/270859
i.e.
and then
code=a6d426fd-9bd6-4af8-bf33-6b6751a46c89&client_id=xxxxx&client_secret=yyyyyy
&redirect_uri=https://Vismanet.xxxxx.nl&scope=financialstasks&grant_type=authorization_code
{"token":"xxxxxxxxxxxxxxxxxxxxx","token_type":"bearer","scope":"financialstasks"}
somewhere along testing (after 1 hour i guess) it becomes invalid.
How can we refresh the token ?
Thanks.
Solved! Go to Solution.
HI,
Please don't share your tokens.
The Visma.Net FInancials API's do not use refresh tokens as they do not expire unless you have requested a new one.
If you have several people using the same user account/client ID combination, you should be sharing the same token.
What error message are you receiving?
The token you get from the token endpoint is based on your API client ID & Secret + user.
The user is then connected to companies, which would all use the same token.
Hi,
I was testing with the development of our software.
I am requesting at 2 locations, our software and Postman.
So as i guess, only one of them will keep on working ?
Hi,
Indeed, if you request a token again, the last one will get invalidated.
If you save it when you request it, you can use the same token in both places.
Hi,
Well the problem is that we have desktop software, and we want to show our software at different locations.
So i need to build in the token at one location.
The token is connected to "client_id" + "useraccount logged in with at validation" i guess ?
Hello,
@RMaarssen wrote:The token is connected to "client_id" + "useraccount logged in with at validation" i guess ?
That's true.
For more information, please review the following article regarding Client & Token mechanism.
Background Information on API Client & Token & Visma.net Financials User & Company
Copyright © 2022 Visma.com. All rights reserved.