MYOBCommunity
Partner Zone
|
|
Partner Zone

OAuthTokenIsInvalid error

3 REPLIES
API Evangelist KeranM
297 Posts
API Evangelist
Australia
KeranM
API Evangelist

297Posts

93Kudos

56Solutions

Re: OAuthTokenIsInvalid error

The original post here was having an issue because they were using an API Key that was inactive.

If you are having this issue, please check that your API key is valid and active (note: only the first 2 keys on any account auto-activate. Any future keys need to be reviewed an activated)

 

For more details on this error - visit our apisupport site.

 

Feel free to raise a support ticket with your API Key details and the team can look into it.

 

 

Keran McKenzie
Futurist in residence @MYOB

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/

Twitter: @myobapi | @keranm
Partner Graham-M
3 Posts
Partner
New Zealand
Graham-M
Partner

3Posts

0Kudos

0Solutions

Re: OAuthTokenIsInvalid error

Hi @Myles and @HelenB

 

I am having exactly the same problem.  Would you care to share your solution?

 

Best regards,

Graham

 

MYOB Moderator HelenB
274 Posts
MYOB Moderator
HelenB
MYOB Moderator

274Posts

213Kudos

62Solutions

Re: OAuthTokenIsInvalid error

Hi @Myles

 

Thanks for reaching out. Just a quick note - I can see we're also assisting this via developers@myob.com; we'll keep an eye out for any replies there so we help you out there.

 

Thanks

@HelenB
Helen Brophy
MYOB Developer Support Liaison

Are you a developer? Check out http://developer.myob.com
Looking for an Add-on? Check out http://myob.com/addons/
MYOB API Support Centre - https://apisupport.myob.com
Experienced Partner Myles
10 Posts
Experienced Partner
Australia
Myles
Experienced Partner

10Posts

1Kudos

0Solutions

OAuthTokenIsInvalid error

this is my request - 

URL - https://api.myob.com/accountright/

 

GET /accountright/ HTTP/1.1
HOST: api.myob.com
authorization: Bearer mrQ-!IAAAANZ2T3PqJVcoTEC4ett3j3tMulsJGuh8U0NH5duL933MsQAAAAHyvXsKALiIqV1trA1ClUg1PI0D8-WQppy-8gb6FaXBoAE3PDgeMrR83rdvVyXG1jaSckGJ-L0f6lsyzhbP0AL53vTygH6q5-Ei1WOmFYsWQWa910Th-T6dA5YsRLPZUvpa4jFwQDK1--SLY_vUDQ8_ggxPixRMDrK7T3wJmQPDTHv3lkUVxNJkB_Els7hUn90pmhi2osZ9tbosGZLT03aQcqhtXKn3hHOROKrg975uoA
x-myobapi-cftoken:
x-myobapi-key: 9msypfn452sxdsgd9f8e5xrq
x-myobapi-version: v2

 

i am getting a below response - 

{

"Name": "OAuthTokenIsInvalid"
"Message": "The supplied OAuth token (Bearer) is not valid"
"AdditionalDetails": "Header"
"ErrorCode": 31001
"Severity": "Error"
"LearnMore": null

}

 

It's really strange because my other app API is working correctly but only this key is not working.

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post