Andrew Lockwood Posted February 10 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?
Steel, Mark Posted February 12 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
Andrew Lockwood Posted February 13 Author 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"
Steel, Mark Posted February 13 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now