Hi there,
I’m a developer making an app for a client. I have searched and read all the posts that are encountering this error but none seems to solve my problem, so I’m posting a new question.
My use case is that I have an app that talks to a backend server which is supposed to be connected to InfusionSoft. The app needs to know if the user has an active subscription in my client’s IS account, so my understanding is that I only need the backend server to authenticate once with IS to get the authorization token, and then store that somewhere to use in future requests.
I’ve been able to request and acquire authentication, so I have a code from IS, but when I then send that code to /token
endpoint, the only response I’ve been able to get is "error": "invalid_client"
. The header contains X-Mashery-Error-Code:ERR_403_DEVELOPER_INACTIVE
.
Here is the full response header:
{ 'cache-control': [ 'no-store' ],
'content-type': [ 'application/json;charset=UTF-8' ],
date: [ 'Tue, 12 Sep 2017 21:07:05 GMT' ],
pragma: [ 'no-cache' ],
server: [ 'Mashery Proxy' ],
'www-authenticate': [ 'Basic realm="api.infusionsoft.com"' ],
'x-error-detail-header': [ 'Account Inactive' ],
'x-mashery-error-code': [ 'ERR_403_DEVELOPER_INACTIVE' ],
'x-mashery-responder': [ 'prod-j-worker-us-west-1c-59.mashery.com' ],
'content-length': [ '26' ],
connection: [ 'Close' ] }
I’m making my request via an express.js server, but I’ve tested it with curl and postman as well, and am getting the same response. The URL I’m POSTing to is:
https://api.infusionsoft.com/token?client_id=MY_CLIENT_ID&client_secret=MY_SECRET&code=MY_CODE&grant_type=authorization_code&redirect_uri=http://localhost:4500/admin.html
At this point, I’m not even sure what to check or how to proceed. Any help would be appreciated.
Thanks,
Khaled