Forum Discussion

elton-sprint's avatar
1 year ago

Error trying to refresh token

Testing on POSTMAN a POST request to https://secure.myob.com/oauth2/v1/authorize

 

with x-www-form-urlencoded data:

 

client_id: ...

client_secret: ...

grant_type: refresh_token

refresh_token: ...

 

it is returning 400 bad request:

 

{

"error": "invalid_grant",

"error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."

}

 

What is wrong?

2 Replies

  • Mike_James's avatar
    Mike_James
    Ultimate Cover User
    1 year ago

    Hi elton-sprint , do you have a refresh token stored in the variables? If not, you will probably have to re-authorise from the beginning. 

Looking for something else?

Search the Community Forum for answers or find your topic and get the conversation started!

Community home

Level up your skills using MYOB software.

 

Find help guides and technical solutions for all MYOB products here

Explore video tutorials for our software at the MYOB Academy here

 

Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.