My Products

Token sometimes gets invalidated mid-run

by Eirik Morken - Proplan AS

Greetings 😁

For about a month or two now I have been having issues with some integrations that gets their token invalidated mid-run for no apparent reason. 

For example this is from a run yesterday posting to JournalTransactionV2, failing at post 530 of 550, and all remaining attempts fail.


    "headers": {
        "Strict-Transport-Security""max-age=31536000; includeSubDomains",
        "Date""Mon, 13 Jun 2022 15:17:42 GMT",
    "body": {
        "ExceptionMessage""Invalid Token",
I realize I could rewrite all the integrations to ask for a new token if this happens, but I feel like the token system should not be this fragile. There may be a deeper issue that should be resolved, or it may be all my fault for some unknown reason 😁
Accepted solution

by Yıldırım


  • How often do you receive invalid token error ?
  • Are you renewing it after the error and using the new one ?
  • Do you have another integration/s using the same API Client ID and the same Financials ERP User ? (Token-Authentication) 

ℹ️ Each consecutively generated token automatically invalidates the recently created one.
(If the request made from the Same CLIENT ID & the Same Visma.Net Financials user for all integrations/company) 

Then it probably is caused by a test run I triggered requesting a new token! 
 Thank you for the clarification of invalidation 🙂


No problem, Eirik ! 🙂