Skip to content

Acumatica Configuration

The superglue agent can read and write Acumatica records, and it can change setup data that the standard Acumatica API does not cover. This includes payment terms, numbering sequences, enabled features, module preferences, users, roles, branch access, and changing branch and company IDs.

This guide walks you through the one-time setup, which takes about ten minutes.

  • One endpoint for setup data. The first time the agent changes setup data, it adds a web service endpoint named Superglue to your instance. The endpoint stores screen mappings only and contains no code.
  • Approval first. The agent asks for your approval before it adds the endpoint and before it changes your data.
  • Runs as the API user. All calls run as the Acumatica user that signs in. The agent can only see and change what that user’s roles allow.

This is the recommended way. The agent does the setup in its own browser, which you watch in the side panel.

  1. Tell the agent: “Connect our Acumatica test tenant and set it up for configuration.”
  2. Select Do it in the browser when the agent offers it, and approve the browser permission if the agent asks for it.
  3. Sign in to Acumatica in the browser yourself, as an administrator. Open the browser full screen to complete single sign-on or multi-factor prompts.
  4. The agent creates the API user and the connected application. It asks you which roles and branches the API user needs. Set the API user’s password yourself in the browser.
  5. Acumatica shows the shared secret only once, so the agent saves the client ID and the secret to the connection right away. You do not copy any values.
  6. Sign in as the API user when the connect card asks, and approve superglue’s access.

Use the steps below when the client does not allow this, or to check what the agent changed.

To set it up by hand, follow these steps.

  1. Create an API user in Acumatica

    1. Open Users (SM201010) and create a user for superglue, for example superglue-api.
    2. On the Roles tab, select the roles for the areas the agent works in. To let the agent change setup data, also select Customizer.
    3. Open Branches (CS102000) to see the Access Role of each branch.
    4. Select the branch access role of every branch the agent needs. Without it, lists such as customers, orders, and warehouses come back empty, with no error.
    5. For time, expense, and service features, link the user to an employee record.
  2. Create a connected application in Acumatica

    1. Open Connected Applications (SM303010) and add an application, for example “superglue”.
    2. Set OAuth 2.0 Flow to Authorization Code.
    3. On the Secrets tab, add a shared secret. Without a secret, the sign-in fails with unauthorized_client.
    4. Copy the value of the shared secret. Acumatica shows the value only once.
    5. On the Redirect URIs tab, add https://app.superglue.cloud/api/auth/callback.
    6. Save.
    7. Copy the Client ID. It has the form <GUID>@<tenant>.
  3. Connect Acumatica in superglue

    1. On the Connections page, add an Acumatica connection with your site URL, for example https://client.acumatica.com or https://erp.example.com/AcumaticaERP.
    2. Enter the client ID and the client secret.
    3. Start the OAuth sign-in.
    4. In the Acumatica sign-in window, sign in as the API user and approve access.

    The site must use a trusted HTTPS certificate. A self-signed certificate is not supported.

  4. Test the setup in superglue

    1. Tell the agent: “List five vendors from Acumatica.” If you get a list back, the connection works.
    2. Tell the agent: “Show me the payment terms in Acumatica.” The first time, the agent asks to add the Superglue endpoint. Approve it. If you get the payment terms back, setup changes work too.
  • Concurrent API users. Your Acumatica license limits how many API sessions can run at the same time. The agent runs requests one at a time and signs out after each task, so it holds a session only while it works. If every session is in use, the agent reports it and does not retry the sign-in.
  • Features and license. Some features need a license. Check with your Acumatica partner before you ask the agent to turn on a feature.
  • Passwords. The agent can create users and change their roles, but it cannot copy passwords from another system. New users set their own password.

To remove access right away, delete the connected application in Connected Applications (SM303010) or disable the API user in Users (SM201010).

To remove the Superglue endpoint, delete it in Web Service Endpoints (SM207060).

Does the Superglue endpoint restart the site?

Section titled “Does the Superglue endpoint restart the site?”

No. Adding or changing the endpoint does not restart the site or sign anyone out.

Can I connect without a connected application?

Section titled “Can I connect without a connected application?”

Yes. If you cannot create a connected application, superglue can sign in with the API user’s username and password instead. Each tool then logs in at the start and logs out at the end of its run.