Parameter redirect_uri does not match registered URI

Found the issue… The POST parameters should NOT be urlencoded as it is mentioned in the API doc.