Forum Discussion

Manikandan_G's avatar
10 months ago

Invalid request response while getting access token

Hi Team,

      We have registered the App and got the API key and Secret Key. While we send the  Access token request from the postman, I will be show below error.

 

{
    "error": "invalid_request"
}


We have added the client id, client secret, decoded redirect URL, and Code.
 
Please look into the attached screenshot and let me know the solution.
 
  • Hi there,

    Thank you for reaching out via the forum.

    Your details look fine there on the surface, so we would want to look at the headers you are sending to the API if possible please.

    Typically we see this issue with the Redirect URL not matching between the MY.MYOB Developer Dashboard and the call to the API, explained here: Solving Invalid request – Support for the MYOB family of SME product APIs

    We also expect to use the Oauth2.0 method, and have found some users utilising the "Basic" Auth method which we are finding is no longer suported (it was previously but have noticed a change recently).

    If you are using this method, please change to Oauth2.0 and this should help.

    Otherwise if you are still getting invalid request, please submit a support ticket here.

    Kind regards