> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neoagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting Sage Intacct to Neo

> Register a client application, authorize it for a Web Services user, save the keys in Neo, and decide what each agent can do

You connect Sage Intacct once at the MSP level, then turn it on per agent. Neo uses Sage Intacct's REST API with the OAuth 2.0 client credentials grant: a client application you register in the Sage developer portal, authorized in your company for a Web Services user. You need four values: the application's **Client ID** and **Client Secret**, your **Company ID**, and the **Web Services User ID**.

> [!NOTE]
>
> The REST API needs a Web Services subscription on your Sage Intacct company. An administrator of the company does steps 1 and 3.

## 1. Create a Web Services user

**1. Add the user**

In Sage Intacct, go to **Company** → **Admin** → **Web Services users** and add a user, for example `neo_agent`. Note its **User ID** exactly as you type it: it is case-sensitive.

**2. Give it a role**

Give the user a role with the permissions your agents need. To answer questions and run reports, read access to General Ledger, Accounts Receivable, Accounts Payable and Cash Management is enough. Neo can never do more than this user can.

**3. Note your Company ID**

Your Company ID is the one you enter when you sign in to Sage Intacct. It also shows under **Company** → **Setup** → **Company**.

## 2. Register a client application

**1. Open the Sage developer portal**

Go to [developer.sage.com/intacct](https://developer.sage.com/intacct/), sign in or sign up, and open or create a workspace.

**2. Add the application**

Under **Apps**, select **Add application**, name it so your team recognizes it, for example "Neo Agent", and save.

**3. Create the API keys**

Open the application, select **Create API keys**, choose **Sage Intacct** as the product and **Production** as the client scope, and create them. Copy the **Client ID** and the **Client Secret**.

## 3. Authorize the application in your company

In Sage Intacct, go to **Company** → **Setup** → **Company**, select **Edit**, open the **Security** tab and, under **Authorized Client Applications**, add the **Client ID** from step 2 with the **Web Services User ID** from step 1. Sage refuses every request from a client that is not authorized here.

## 4. Save the keys in Neo

**1. Open Integrations**

In the Neo Dashboard, open [**Integrations** → **Sage Intacct**](https://dashboard.neoagent.io/integrations?open=sage_intacct), under Accounting.

**2. Enter the values**

Paste the **Client ID** and **Client Secret**, and enter your **Company ID** and the **Web Services User ID**. If the user signs in to one entity only, enter the Company ID as `<company>|<entity>`, for example `MyCompany|UK`. Click **Save**.

Neo asks Sage Intacct for a token with these values before it saves, then reads your company with it. A wrong value, or an application that is not authorized for the user, is refused on the spot with Sage's reason.

**3. Confirm the company matches**

After the save, Neo matches your Sage Intacct customers to your PSA companies. This usually takes under a minute. Open the card's [**Organization Mapping**](https://dashboard.neoagent.io/integrations?open=sage_intacct\&subtab=org-mapping\&mapping=to_confirm) tab on the **To confirm** filter, tick the matches that are right and click **Confirm**. Agents do not use a suggested match until you confirm it. The Sage Intacct card on the Integrations page shows how many matches wait. [Company Mapping](https://docs.neoagent.io/product/company-mapping.md#on-the-integrations-organization-mapping-tab) describes the rest of the tab.

## 5. Turn Sage Intacct on per agent

Each agent decides whether it uses Sage Intacct and which areas it can touch. Open the agent, go to its **Tools & Settings** tab, click **Accounting**, and expand the **Sage Intacct** block. For a finance team's chat agent that answers questions and runs reports, pick **Read Only**.

### Pick a preset

> [card] Read Only
>
> Every area read only, except Approvals, Employees & Pay Rates and Users, Roles & Access, which are off. The agent answers questions and runs reports, and never changes anything.

> [card] Helpdesk
>
> Every record area read and write, each change with technician approval. Payments & Bank Details and Company Setup read only; Approvals, Employees & Pay Rates and Users, Roles & Access off.

> [card] IT Admin
>
> Every area read and write, Employees & Pay Rates read only. Payments & Bank Details, Approvals and Users, Roles & Access wait on a technician.

> [card] Full Automation
>
> Every area read and write with no approval, except the changes in Safety controls that always ask.

### Or set each area by hand

| Area | Access levels you can pick | Notes |
| - | - | - |
| **General Ledger** | Disabled, Read Only, Read and Write | GL accounts, journals, journal entries, budgets, reporting periods and consolidation. A journal entry changes the books, so consider approval here. |
| **Financial Reports** | Disabled, Read Only, Read and Write | Trial balance, account balances, GL details, account group hierarchy, inventory reports, and the stored and custom reports your team made, with every field their author put in them. Read Only is enough to run a report. |
| **Customers & Receivables** | Disabled, Read Only, Read and Write | Customers, invoices, received payments, adjustments, refunds, dunning and recurring invoices. |
| **Vendors & Payables** | Disabled, Read Only, Read and Write | Vendors, bills, adjustments and recurring bills. |
| **Payments & Bank Details** | Disabled, Read Only, Read and Write | Payments to vendors, check runs, bank files, payment providers, and any write that sets the bank details of a vendor, an employee or a bank account, which also needs the record's own area. Consider approval here. |
| **Approvals** | Disabled, Read and Write | Approving or declining bills, payments, vendors and purchasing documents. Consider approval here. |
| **Cash & Banking** | Disabled, Read Only, Read and Write | Bank and credit card accounts, transactions, matching rules, reconciliations, deposits and transfers. |
| **Orders, Purchasing & Inventory** | Disabled, Read Only, Read and Write | Order Entry and Purchasing documents, items, warehouses and inventory. |
| **Projects, Time & Expenses** | Disabled, Read Only, Read and Write | Projects, tasks, timesheets and expense reports. |
| **Contracts & Revenue** | Disabled, Read Only, Read and Write | Contracts, billing and revenue schedules. |
| **Fixed Assets** | Disabled, Read Only, Read and Write | Fixed assets and depreciation. |
| **Construction** | Disabled, Read Only, Read and Write | Construction projects, change orders and WIP forecasting. |
| **Tax** | Disabled, Read Only, Read and Write | Tax details, schedules, authorities, records and returns. |
| **Employees & Pay Rates** | Disabled, Read Only, Read and Write | Employees with their personal details, and pay rates such as annual salary. |
| **Company Setup** | Disabled, Read Only, Read and Write | Entities, locations, departments, classes and other dimensions, contacts, exchange rates, preferences, custom objects and the sandbox. |
| **Users, Roles & Access** | Disabled, Read Only, Read and Write | Users, roles, permissions (a reporting account set's included), authorized client applications and cloud storage connections. |

A query reads in the area of the object it queries: a query on vendor payments needs Payments & Bank Details.

## Safety controls

* **You set the approvals.** Each area has its own approval setting.
* **Money is its own area.** Payments to vendors, bank files and any change to a vendor's, an employee's or a bank account's bank details need Payments & Bank Details, a bank detail change needs the record's own area as well, and each asks a technician when either area does. Changed bank details are where payment fraud starts.
* **Approvals are their own area.** An agent that can write bills cannot approve one unless you turn on Approvals.
* **Always asks a technician:** creating or changing a user, role, permission, authorized client application or cloud storage connection, and refreshing the sandbox, whatever the area's setting.
* **Hidden values.** Neo hides tax ids, social security numbers, bank and card numbers and credentials in every answer, and refuses a query that selects, filters or sorts on one.
* **One call at a time.** Neo sends no composite or bulk request, and no change to a stored or scheduled operation, because it checks each call against its area and approval.
* **No files.** Neo downloads reports as CSV, with any column of tax ids, bank or card numbers hidden, and does not download PDFs, Excel or Word files.
* **Path safety.** Neo rejects suspicious URL paths (anything that contains `..`, for example) before they reach Sage Intacct.

## If Sage Intacct refuses Neo's requests

| What comes back | Cause | Fix |
| - | - | - |
| `401`, or a token error | The client application is no longer authorized for the user, its secret changed, or the user was deactivated | Check **Authorized Client Applications** in Sage Intacct, then save current values in Neo again. |
| `403` | The Web Services user's role lacks that object, or the company does not subscribe to its application | Add the permission to the user's role in Sage Intacct. |
| `429` | Too many requests | Wait, then try again. Neo keeps its calls to a few a second. |

## Disconnecting Sage Intacct

**1. Open the integration**

In the Neo Dashboard, open **Integrations** and select the Sage Intacct card.

**2. Disconnect**

Click **Disconnect** and confirm. Neo removes the keys from Key Vault. To end the access at Sage as well, remove the application from **Authorized Client Applications** in your company.

Neo keeps your Organization Mapping, including any mapping you set by hand, so a later reconnect continues from the same state.

## Security

* The Client Secret is stored in Azure Key Vault, never in plaintext.
* All traffic to Sage Intacct goes over HTTPS, to `api.intacct.com` only.
* Write access is opt-in per agent, and Neo can never do more than the Web Services user's role allows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.