Cant obtain a token via authorization_code
Not sure what happened to my previous question so posting this one again. Can't get the token neither via PHP app nor using postman. Getting as below:
Any help would be appreciated
2 Replies· Add your reply
Answer by davidtsadler · Mar 07 at 03:05 AM
This is only a guess but it may be due to having the request body split over several lines . You can see that the redirect_uri parameter is not a complete word.
The body should be one complete string with no newline or carriage return characters.
It's also worth checking that the value for redirect_uri is the correct value for the environment. Using the sandbox value in the production environment will also trigger this error.