Skip to content

Sage Intacct ​

Sage Intacct is a cloud financial management and accounting system covering the general ledger, receivables, payables, contracts and revenue recognition, and multi-entity consolidation.

ingestr supports Sage Intacct as a source, using the Sage Intacct REST API.

URI format ​

plaintext
# Recommended: OAuth client credentials for a Web Services user
sageintacct://?client_id=<client_id>&client_secret=<client_secret>&username=<user_id>@<company_id>

# OAuth refresh token from the authorization code flow
sageintacct://?client_id=<client_id>&client_secret=<client_secret>&refresh_token=<refresh_token>

# A pre-obtained access token (expires after about 12 hours)
sageintacct://?access_token=<access_token>

URI parameters:

  • client_id, client_secret: the credentials of your Sage Intacct application from the Sage developer portal.
  • username: the Web Services user to sign in as with the client credentials grant, in the form userId@companyId. Use userId@companyId|entityId to sign in to a single entity of a multi-entity company. ingestr gets a new access token whenever the previous one is about to expire.
  • refresh_token: a refresh token from the OAuth authorization code flow, used instead of username. Sage Intacct can issue a new refresh token on every use, which ingestr only keeps for the current run, so prefer username for scheduled loads.
  • access_token: a ready access token. It can't be renewed, so loads that run past its expiry fail.
  • entity (optional): the ID of the entity to read in a multi-entity company, for example US-100. ingestr sends it as the X-IA-API-Param-Entity header on every request. Without it, requests run with the access token's entity, which is the top-level company unless username names an entity.
  • base_url (optional): the API base URL. Defaults to https://api.intacct.com/ia/api/v1.
  • token_url (optional): the OAuth token URL. Defaults to <base_url>/oauth2/token.

Provide client_id and client_secret with either username or refresh_token, or just access_token.

Setting up client credentials ​

  1. In the Sage developer portal, create an application for the REST API and note its client ID and client secret.
  2. In Sage Intacct, create a Web Services user with read-only permissions on the modules you want to load.
  3. Authorize the application for your company under Company > Setup > Security > Authorized Client Applications, and grant it to the Web Services user.
  4. Use the client ID, client secret and <web_services_user_id>@<company_id> as username in the ingestr URI.

At the top level of a multi-entity company, ingestr also loads the records that are private to an entity.

Tables ​

TablePKInc KeyInc StrategyDetails
gl_accountskeywhenModifiedmergeThe chart of accounts.
gl_journal_entrieskeywhenModifiedmergeJournal entries (headers) from every journal, including subledger postings.
gl_journal_entry_lineskeywhenModifiedmergeDebit and credit lines of journal entries, with their account and dimensions.
gl_account_activity-entryDatedelete+insertPosted GL activity summed per day, account, debit/credit, base currency and dimension. See below.
gl_reporting_periodskeywhenModifiedmergeReporting periods, for mapping dates to periods.
customerskeywhenModifiedmergeCustomers.
vendorskeywhenModifiedmergeVendors.
ar_invoiceskeywhenModifiedmergeAccounts receivable invoices.
ar_invoice_lineskeywhenModifiedmergeLines of AR invoices.
ar_paymentskeywhenModifiedmergePayments received from customers.
ap_billskeywhenModifiedmergeAccounts payable bills.
ap_bill_lineskeywhenModifiedmergeLines of AP bills.
contractskeywhenModifiedmergeContracts. Requires the Contracts module.
contract_lineskeywhenModifiedmergeContract lines. Requires the Contracts module.
contract_revenue_scheduleskeywhenModifiedmergeRevenue recognition schedules of contract lines. Requires the Contracts module.
contract_revenue_schedule_lineskeywhenModifiedmergeScheduled and posted revenue amounts of each schedule. Requires the Contracts module.
departmentskeywhenModifiedmergeDepartments.
locationskeywhenModifiedmergeLocations.
classeskeywhenModifiedmergeClasses.
projectskeywhenModifiedmergeProjects.
entitieskeywhenModifiedmergeEntities of a multi-entity company.

Use these as the --source-table parameter in the ingestr ingest command.

Each row holds every field Sage Intacct returns for the object. Groups of fields and references to other objects, such as audit, customer or dimensions, are JSON columns. key is the record's system key (the RECORDNO of the XML API), and whenModified is the record's last-modified time (audit.modifiedDateTime).

Without --interval-start / --interval-end, ingestr loads every record. With an interval, it loads the records modified within it and merges them into the destination by key.

To load only some fields, list them in the table name, for example customers?fields=key,id,name,status. key and audit.modifiedDateTime are always added.

GL account activity ​

The Sage Intacct REST API has no account balance object, so gl_account_activity sums the lines of posted journal entries instead. Each row is one day (entryDate), account (accountKey, accountId), side (txnType: debit or credit), base currency and combination of dimension values, with the summed baseAmount and a netAmount that is positive for debits and negative for credits.

  • Period activity is the sum of netAmount over the period's days.
  • An account's balance at a date is the sum of netAmount up to that date, so load the full history before computing balances.
  • Lines of draft, submitted or declined entries are left out.

By default the rows are split by location and department. Choose other dimensions with dimensions, for example gl_account_activity?dimensions=location,department,class,project. The supported dimensions are location, department, employee, project, customer, vendor, item, warehouse, class, task, costType, asset, contract and affiliateEntity. Each becomes a <dimension>Id column.

With an interval, ingestr replaces the whole days the interval touches, so the same window can be loaded again safely.

Deleted records ​

The REST API doesn't return deleted records, so records deleted in Sage Intacct stay in the destination, as do invoice, bill and journal entry lines removed from a document. Run a --full-refresh load to remove them.

API usage and cost ​

Sage Intacct meters API use per company and month (100,000 transactions on Performance Tier 1) and charges for overage. ingestr reads up to 4,000 records per request, the maximum, and sends one request at a time:

  • Each table load makes one request to read the object's fields, then one per 4,000 records.
  • For example, loading 1,000,000 journal entry lines takes about 250 requests.
  • Incremental loads only read the changed records, so daily loads use far fewer requests than a full load.

Examples ​

Load all customers into DuckDB:

sh
ingestr ingest \
    --source-uri 'sageintacct://?client_id=abc.app.sage.com&client_secret=secret&username=api_user@acme' \
    --source-table 'customers' \
    --dest-uri 'duckdb:///intacct.duckdb' \
    --dest-table 'intacct.customers'

Load the AR invoices of one entity that changed in January 2026:

sh
ingestr ingest \
    --source-uri 'sageintacct://?client_id=abc.app.sage.com&client_secret=secret&username=api_user@acme&entity=US-100' \
    --source-table 'ar_invoices' \
    --dest-uri 'duckdb:///intacct.duckdb' \
    --dest-table 'intacct.ar_invoices_us' \
    --interval-start '2026-01-01' \
    --interval-end '2026-02-01'

Reload the GL activity of March 2026 by location, department and project:

sh
ingestr ingest \
    --source-uri 'sageintacct://?client_id=abc.app.sage.com&client_secret=secret&username=api_user@acme' \
    --source-table 'gl_account_activity?dimensions=location,department,project' \
    --dest-uri 'duckdb:///intacct.duckdb' \
    --dest-table 'intacct.gl_account_activity' \
    --interval-start '2026-03-01' \
    --interval-end '2026-03-31'