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.