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.

Bruin supports Sage Intacct as a source for Ingestr assets through the Sage Intacct REST API, and you can use it to ingest ledger, receivables, payables, and contract data into your data platform.

Configuration ​

Step 1: Add a connection to the .bruin.yml file ​

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

OAuth client credentials for a Web Services user (recommended):

yaml
connections:
    sageintacct:
        - name: "sageintacct"
          client_id: "abc.app.sage.com"
          client_secret: "your_client_secret"
          username: "api_user@acme"
          entity: "US-100"

A refresh token from the OAuth authorization code flow:

yaml
connections:
    sageintacct:
        - name: "sageintacct"
          client_id: "abc.app.sage.com"
          client_secret: "your_client_secret"
          refresh_token: "your_refresh_token"
  • client_id, client_secret: The credentials of your Sage Intacct application from the Sage developer portal.
  • username: The Web Services user for the client credentials grant, as userId@companyId, or userId@companyId|entityId to sign in to a single entity. Use either username or refresh_token, not both.
  • refresh_token: A refresh token from the OAuth authorization code flow. Sage Intacct can issue a new refresh token on every use, which is only kept for the current run, so prefer username for scheduled loads.
  • access_token: A ready access token, used without client_id and client_secret. It can't be renewed and expires after about 12 hours.
  • entity (optional): The ID of the entity to read in a multi-entity company, for example US-100.
  • 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.

To set up client credentials, create an application in the Sage developer portal, create a read-only Web Services user in Sage Intacct, and authorize the application for your company under Company > Setup > Security > Authorized Client Applications.

Step 2: Create an asset file for data ingestion ​

Create a YAML file (e.g. sageintacct_ingestion.yml) inside the assets folder:

yaml
name: public.intacct_customers
type: ingestr

parameters:
  source_connection: sageintacct
  source_table: 'customers'

  destination: postgres
  • name: The name of the asset.
  • type: Set to ingestr.
  • source_connection: The name of the Sage Intacct connection defined in .bruin.yml.
  • source_table: One of the tables below. To load only some fields, list them in the table name, for example customers?fields=key,id,name,status. gl_account_activity accepts a dimensions parameter, for example gl_account_activity?dimensions=location,department,project.
  • destination: The destination platform/type, for example postgres.

Step 3: Run asset to ingest data ​

bash
bruin run assets/sageintacct_ingestion.yml

Available Source Tables ​

TablePrimary KeyIncremental KeyIncremental StrategyDetails
gl_accountskeywhenModifiedmergeThe chart of accounts
gl_journal_entrieskeywhenModifiedmergeJournal entry headers from every journal
gl_journal_entry_lineskeywhenModifiedmergeDebit and credit lines of journal entries
gl_account_activity-entryDatedelete+insertPosted GL activity summed per day, account, side, base currency, and dimension
gl_reporting_periodskeywhenModifiedmergeReporting 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 (Contracts module)
contract_lineskeywhenModifiedmergeContract lines (Contracts module)
contract_revenue_scheduleskeywhenModifiedmergeRevenue recognition schedules (Contracts module)
contract_revenue_schedule_lineskeywhenModifiedmergeScheduled and posted revenue amounts (Contracts module)
departmentskeywhenModifiedmergeDepartments
locationskeywhenModifiedmergeLocations
classeskeywhenModifiedmergeClasses
projectskeywhenModifiedmergeProjects
entitieskeywhenModifiedmergeEntities of a multi-entity company

Incremental behavior and limitations ​

  • Without an interval, every record is loaded. With an interval, the records modified within it are merged by key.
  • gl_account_activity replaces every whole day the interval touches. An account's balance at a date is the sum of netAmount up to that date, so load the full history before computing balances.
  • The REST API doesn't return deleted records, so they stay in the destination. Run a full refresh to remove them.
  • Sage Intacct meters API use per company and month. ingestr reads up to 4,000 records per request.