Andrew Lockwood Posted February 10 Share Posted February 10 I have managed to request an authorization code, and convert it into an access token. However, when I then make a request using the access token, I get an "Unauthorised Access" error, the JSON response being:- [{"$severity":"error","$dataCode":"AccessTokenVerificationError","$message":"Access token is invalid (JWT malformed or missing).","$source":"Authorization"}] I am not doing any encoding or decoding. I am simply using the access token as it is presented to me. Can anyone tell me what is going wrong? Link to comment Share on other sites More sharing options...
Steel, Mark Posted February 12 Share Posted February 12 Hi Andrew, Thanks for your post. What is the request you are making and what headers are you passing in the request? Thanks Mark Link to comment Share on other sites More sharing options...
Andrew Lockwood Posted February 13 Author Share Posted February 13 I am trying to send a GET request to https://api.accounting.sage.com/v3.1/contact_allocations to return all contact allocations. The only header I am adding is an authorization header containing the access token in the form "Bearer xxx...xxx" Link to comment Share on other sites More sharing options...
Steel, Mark Posted February 13 Share Posted February 13 Thanks Andrew, You'll need to pass Accept:application/json in the header also. There's a useful POSTMAN env which has a small collection you can use as a starting point to build out the collection further. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now