Jump to content

DataParsingError on refresh_token


Recommended Posts

Hello, I'm trying to refresh my expired token by following Renew an Access Token section in the https://developer.sage.com/accounting/guides/authenticating/authentication/ . But I'm getting  DataParsingError error.
My request response log is:

~~~ REQUEST ~~~
POST  /token  HTTP/1.1
HOST   : oauth.accounting.sage.com
	Content-Type: application/json
BODY   :
   "client_id": "****",
   "client_secret": "****",
   "grant_type": "refresh_token",
   "refresh_token": "****"
~~~ RESPONSE ~~~
STATUS       : 400 Bad Request
HEADERS      :
	Connection: keep-alive
	Content-Length: 125
	Content-Type: application/json;charset=UTF-8
	... (trimmed cloudfront headers)
	X-Cache: Error from cloudfront
BODY         :
   "$severity": "error",
   "$dataCode": "DataParsingError",
   "$message": "The data you sent could not be processed.",
   "$source": "Proxy"

Where do I'm wrong?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

  • Create New...