Tripletex / tripletex-api2

Tripletex API 2 resources and examples
MIT License
38 stars 43 forks source link

Birds Eye: Creating a new session: #53

Closed klatremus closed 2 years ago

klatremus commented 2 years ago

Disclaimer: I might have asked this question in the wrong fora, ie, hope you may forgive me

Problem: When using the tripltex Python API, the following error (on session-creation) is received:

 ERROR: 422 {
  "status" : 422,
  "code" : 18000,
  "message" : "Validering feilet.",
  "link" : "https://www.tripletex.no/tripletex-api-2-0/",
  "developerMessage" : null,
  "validationMessages" : [ {
    "field" : "arg:consumerToken",
    "message" : "The consumer token is invalid or does not exist.",
    "path" : "arg:consumerToken",
    "rootId" : null
  } ],
  "requestId" : "e7563c66-b243-440a-a4a0-278fda002eba"
} 

The Consumer Token:

Question:

Cheers,

@klatremus

tlxtellef commented 2 years ago

Looking at the logs it seems the issue here is most likely that you used the production consumer tokens in our staging environment. https://tripletex.no and https://api.tripletex.io are separate environments with completely separate tokens. Setting up and getting tokens for said staging environment can be done via the self service page

tlxtellef commented 2 years ago

This is not the place for this. Better email api support instead if you want to resolve such issues. See https://www.tripletex.no/support-for-utviklere/