Skip to content

Skill: Query GL Budget Items

The Query GL Budget Items skill retrieves aggregated budget data from Sage Intacct. This skill is essential for budget-vs-actual analysis, variance reporting, and financial planning questions.

ParameterTypeRequiredDescription
group_bystringYesHow to group results. Options: glaccount, department, location, project, class, customer, vendor, item, employee. Multiple values can be comma-separated.
budget_idstringNoThe Sage Intacct budget ID to query. If omitted, queries across all budgets.
period_filterstringNoFilter by reporting period. Supports period names (e.g., Month Ended March 2026), period ranges, or fiscal year identifiers.
gl_accountsstringNoFilter by one or more GL account numbers. Comma-separated for multiple accounts (e.g., 4000,4100,4200).
department_idstringNoFilter by department ID.
location_idstringNoFilter by location ID.
project_idstringNoFilter by project ID.
class_idstringNoFilter by class ID.
offsetintegerNoNumber of records to skip for pagination. Defaults to 0.
limitintegerNoMaximum number of grouped records to return. Defaults to 100.

The skill automatically computes these aggregates for each group:

AggregateDescription
SUM(AMOUNT)Total budgeted amount in base currency.
COUNT(RECORDNO)Number of budget line items in the group.

“What’s the budget for marketing this fiscal year?”

The agent would invoke:

  • group_by: glaccount
  • department_id: MKTG
  • period_filter: Fiscal Year 2026

“Compare our revenue budget to actuals for Q1.”

The agent would:

  1. Query this skill: group_by: glaccount, gl_accounts: 4000,4100, period_filter covering Q1.
  2. Query GL Detail: same GL accounts, same date range.
  3. Compute the variance and present a comparison table.

The skill returns an array of grouped records, each containing:

  • Group key(s) — the dimension value(s) used for grouping.
  • BUDGET_ID — the budget identifier.
  • PERIOD — the reporting period.
  • SUM_AMOUNT — total budgeted amount.
  • COUNT_RECORDNO — number of budget line items.

POST /api/sage-intacct/v1.0/query-glbudgetitem


Related skills: Query GL Detail | Query AP Bill Items | Interactive Custom Report