cancel
Showing results for 
Search instead for 
Did you mean: 

Business One Gateway API 404 Not Found Error

peterwatkins
Explorer
0 Kudos
150

Hi,

I am trying to use the Business One Gateway API to retrieve a list of reports that I can then download as a PDF.

The login request works and I get the following response:
{"Version":"0.0.1","SessionTimeout":30}
I am not passing in the optional DBInstance parameter if that makes any difference?

To confirm the login was working, if I change the username/password etc, I get the following response:

"code": -1, "message": { "lang": "en-us", "value": "Failed to login for current user, please double check and retry" }}
 
Once logged in successfully, any subsequent GET requests to the API gateway like  '/rs/v1/LoadAuthorizedCRList' just returns the following:

{"code":404,"message": "404 NOT_FOUND"}

If I try and call '/logout' I get the following:

"timestamp": "2025-02-05T04:41:25.127+00:00""status": 400, "error": "Bad Request", "path": "/auth/oidc.logout" }

 

I am using SAP Business One 10.0 (10.00.240) SP 2402 (64-bit) and I have confirmed the Job Server is setup. I am also in a Cloud Control Centre environment.

Any help would be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

peterwatkins
Explorer
0 Kudos

Solved!

It turns out I did need the DBInstance to make it work.

Answers (0)