Jump to content

Request failed with status 403


Recommended Posts

I'm trying to create a web application using sage.
So I created a nodejs application (Oauth2 authentication server) to be able to make requests.
But I don't know why when I try to authenticate myself the server refuses me access.
I have admins rights
I don't know where this error comes from.
I have searched all afternoon in the documentation but nothing ūüėē
I hope someone could help me.
Here is my code of my nodejs server

const express = require('express');
const app = express();
const path = require('path');  
const fs = require('fs');
const https = require('https');
const axios = require('axios');
const PORT = 3443;
const clientID ='<myclientid>';
const clientSecret ='<myclientsecret>';
app.use(express.static(__dirname + '/public'))
app.get('/callback', (req, res) => {
    const requestToken = req.query.code
      method: 'post',
      headers: {
        accept: 'application/json',
    }).then((response) => {
      const accessToken = response.data.access_token;
const sslServer = https.createServer({
sslServer.listen(PORT,()=>console.log('Adresse : https://localhost:3443/ \nServeur SSL : port : ' + PORT));
Link to comment
Share on other sites

  • Administrators

Thanks. If this is the version that's compliant for UK legislation, you'll need to use the SDK to connect. To get access to the SDK you'll need to be a member of the Developer Program and you can get more details by emailing [email protected].

If this is a non-UK variant of the product, you'll be able to find support on Sage City simply select the country that the product is legislatively compliant for then browse to Sage 50cloud Accounts and one of my colleagues will be able to help further.



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...