Unable to Authenticate Acumatica Connection (401 Unauthorized)

Hello Everyone,

I’m in the process of creating an Acumatica OAuth 2.0 connection (API type - default) and have encountered an issue I need help resolving.

Here’s what I’ve done so far:

  • Created a ‘Web Service Endpoint’ and a ‘Connected Application’ in Acumatica.

  • Obtained the Client ID, Client Secret, Endpoint Name, and Version, and used them to configure the connection.

When I click "Save and Authorize", I am correctly redirected to the Acumatica instance where I’m prompted to grant API and Offline Access permissions.

However, after granting the permissions, I receive the following error from Celigo:
Sorry, but we were not able to successfully authenticate your connection.
{"code":401,"message":"Unauthorized","source":"application","resolved":false,"occurredAt":1759241568249}

Thanks in Advance.

Regards,
Ankit

Did you use the correct redirect url?
https://integrator.io/connection/oauth2callback

Yes, Used the correct redirect url in the Connected Application I created in Acumatica.

May I ask you to confirm which scopes are currently selected in your Acumatica Celigo connection? The documentation indicates that using the api:concurrent_access scope can result in failures:

https://docs.celigo.com/hc/en-us/articles/360047399452-Set-up-a-connection-to-Acumatica#set-up-a-connection-1

Yes, I have tried without ‘api:concurrent_access’ scope but getting the same error.

One thing I noticed:-

  1. when i am using this Instance URI in the connection- “https://[mydomain].acumatica.com/[mytanent]/entity” - gettig the below error:

  2. when using this Instance URI in the connection-
    https://[mydomain].acumatica.com” - It is redirecting to Acumatica instance for api and offline access permission. Once allowing, getting the below error:

Ankit,

Here is a video that shows how to setup the Acumatica Oauth 2.0 connection in Integrator.IO.

You first have to create the client ID & Secret in Acumatica and then you configure the connection in Integrator.IO using that information.

Acumatica_Oauth2_connection

View that video and let us know if you are are still having issues.

Thank you,

Kelly

1 Like

Thanks for your support. I am able to create the connection successfully.