Accounts
Overview
These endpoints support creating and managing GL accounts.
Updates and deletes follow a last-saved-wins model. Updating an account replaces existing data without warnings. Updating a deleted account returns an error.
Institution settings (impact on balances)
Some account balance behaviors depend on institution-level configuration. The two primary settings are:
firstFiscalMonth— integer (1–12). Determines the institution’s fiscal year start and affects YTD/QTD/MTD calculations.priorMonthEffectiveDateLimit— integer (0–31). Controls how far transactions may be effective-dated into the prior month, which affects month-ending and monthly balance calculations.
These values are managed by the Institution Settings API. For full contract details and validation rules, see the Institution Settings API reference and the Accounts API documentation:
Keep institution settings in mind when interpreting historical balances and when back-dating transactions; coordinate changes to these settings with reporting owners to avoid unexpected balance shifts.
Searching Accounts
Search returns the accounts that match the given criteria.
Search and filter by
- A free-text
Querythat matches against both the account title and the account number - Account number, title, status (
Open,Closed,Control,Locked), and type (Asset,Equity,Expense,Income,Liability) - One or more branches or cost centers
Use groupBy to control how results break down by branch, by costCenter, or by branchAndCostCenter or omit it for a single aggregated row per account.
Paging and sorting
- Request up to 500 results at a time (default 50) and page through the rest with
offset; the response reports the next offset and the total available. - Order results with the
sortparameter, e.g.sort=accountNumber:asc.
Export to CSV
Set the Accept: text/csv request header to download the matching accounts as a CSV file attachment.
Reporting as of a date (runDate)
Reading a single account and all of the balance endpoints below accept an optional runDate. Results are returned as of that date. Current date is used as default. Invalid date formats return an error.
For the balance endpoints, runDate selects the period it falls in. The response includes that fiscal year and the prior two years. For month and quarter-ending balances, a runDate that lands on the last day of a period includes that period.
Daily Balances
Daily balances are available for each GL account.
Balances update as transactions post. If not activity occurs on a given day, end-of-day processing creates a daily balance using the prior day’s balance.
Delta Balances
Delta balances report how an account’s balance changed by effective date, along with the transaction count behind each change.
Retrieve the full history of delta balances for an account, or the delta balance for a single date. When requesting a single date, the date is required and must be in YYYY-MM-DD format. Each entry includes the effective date, the balance, and the transaction count.
Monthly Averages
Monthly average balances are available for each GL account.
The response includes:
- The current fiscal year
- The prior year
- Two years ago
Completed months return calculated averages. Future months return 0.
Calculation
- Monthly average = sum of daily balances ÷ numbers of days included
- For the current month, the divisor includes today
Quarterly Averages
Quarterly average balances are available for each GL account.
The response includes:
- The current fiscal year
- The prior year
- Two years ago
Completed quarters return averages. The current quarter returns a quarter-to-date average. Future quarters return 0.
Calculation
- Quarterly average = sum of daily balances ÷ number of days included
- For the current quarter, the divisor includes today
Year-To-Date Averages
Year-to-date (YTD) average balances are available for:
- The current year
- The prior year
- Two years ago
Calculation
- YTD average = sum of daily balances from the first fiscal month through today ÷ number of days included
- Prior years use the same number of days (except leap years)
Month Ending Balances
Month-ending balances represent the daily balance on the last day of each month.
The response includes:
- The current fiscal year
- The prior year
- Two years ago
Completed months return balances. Future months return 0.
Behavior
- If the fiscal year has just started, prior two years return full data and the current year returns zeros
- If the current month has not ended, its value is
0
Quarter Ending Balances
Quarter-ending balances represent the daily balance on the last day of each quarter.
The response includes:
- The current fiscal year
- The prior year
- Two years ago
Completed quarters return balances. The current quarter does not.
Behavior
- If the fiscal year has just started, only prior quarters return balances
- Future quarters return
0
Month-to-Date Balances
Month-to-date (MTD) balances represent the change in balance within each month.
Calculation
- Past months: month-ending balance − prior month-ending balance
- Current month: current balance − prior month-ending balance
Account Type Rules
- Income / Expense
- First fiscal month: MTD equals current balance
- After the first month ends: MTD equals the month-ending balance
- Asset / Liability / Equity
- Always use the prior month-ending balance
Quarter-to-Date Balances
Quarter-to-date (QTD) balances represent the change in balance within each quarter.
Calculation
- Past quarters: quarter-ending balance − prior quarter-ending balance
- Current quarter: current balance − prior quarter-ending balance
Account Type Rules
- Income / Expense
- First fiscal quarter: QTD equals current balance
- After the quarter ends: QTD equals the quarter-ending balance
- Asset / Liability / Equity
- Always use the prior quarter-ending balance
Year-to-Date Balances
Year-to-date (YTD) balances represent the change in balance since the start of the fiscal year.
Calculation
- Asset / Liability / Equity
- Current balance − prior year-ending balance
- Income / Expense
- Daily balance for the given date