Invalid request response while getting access token

Manikandan_G
1 Post
User

1Posts

0Kudos

0Solutions

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.
 
Get Access Token - Myob.jpg
1 REPLY 1
Tana
MYOB Moderator
43 Posts
MYOB Moderator
MYOB Moderator

43Posts

92Kudos

3Solutions

Re: Invalid request response while getting access token

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


Thanks,
@Tana


MYOB API Specialist


MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's



Did my answer help?


Mark it as a Solution

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