Hi all,
I'm having an issue getting/refreshing my access token with Sage. The issue is that when I run my code I get the following error: Error getting access token: 403 - Forbidden. I know that 403 errors are usually linked to a lack of permissions, but what baffles me is getting refreshing my access token works completely fine in my postman. I've been using these two guides(https://developer.sage.com/200c/guides/authentication/, gb-kb.sage.com/.../viewsolution.jsp to help me but I still can't figure out the reason I'm getting the error. Can someone tell me if I've missed any steps or point me in the direction of something that could help?
Here is a copy of my code: