Skip to content
AISpendbook

Finance

Journal & ERP posting

Billed, accrued and prepaid journal lines, non-token cost lines, segment rules, the shortfall accrual, the reversing entry, six file layouts and posting to NetSuite, QuickBooks Online, Xero, Sage Intacct and Business Central.

The month-end journal turns the accounting split into a balanced entry. It debits one expense line per accounting class and credits each provider's spend in up to three parts. It can be downloaded in six layouts or posted to an ERP.

Credit lineAccountWhat it holds
BilledAccounts payableDays with a provider bill.
AccruedAccrued liabilitiesDays still on an estimate, with no bill yet.
PrepaidPrepaid assetCredits and prepaid balances drawn down in the month, as on the Credits page. Grants the bill is already net of are left out.

Non-token costs, a commitment shortfall accrual and expired prepaid balances can be added as their own lines, and segments can be set by rule. Each is described below.

How to use it

  1. On Accounting, Account codes, set the expense account per class, accounts payable and accrued liabilities. The export is refused and lists what is missing until every account the month needs is set.
  2. Optionally set department, class, location and subsidiary per accounting class, and the ERP options (date format, journal number prefix, Xero tax rate and tracking names, Sage Intacct journal symbol, Business Central template and batch).
  3. Turn on Reverse the accrual on the first day of next month, or tick Include the reversing entry for one download. The reversal credits each class with its estimated part and debits accrued liabilities.
  4. The journal card shows the entry in debit and credit form with checks: debits equal credits, debits equal spend, payable plus accrued plus prepaid equal spend, and the reversal balances.
  5. Download Standard CSV, NetSuite, QuickBooks Online, Xero, Sage Intacct or Business Central layout, or Download policy memo for a Markdown summary of rules and settings.

Segment rules

  • Under Accounting settings, Journal scope and segment rules, department, class and location can be set by rule on feature, customer, project, team (the project ID), environment, category, provider or model, optionally for one accounting class. The first match wins; spend no rule matches keeps its class's segments.
  • Each class's expense line (and its reversal) splits into one line per segment by telemetry cost share. The split is locked at close. Every layout carries the segments: Standard CSV, NetSuite, QuickBooks Online, Xero (tracking), Sage Intacct, Business Central (dimensions), and direct posting.
  • Payable, accrued and prepaid lines are not split by segment. Non-token lines take their class's segments. Spend on days with no telemetry can't be matched and keeps the default class's segments.

Non-token costs

  • Voice and telephony, speech, AI tool seats and infrastructure can each be turned on in the accounting settings with an accounting class and a GL expense account (an empty account uses the class's account).
  • Each posts a debit to its account and credits accounts payable for the billed part and accrued liabilities for the estimated part; the estimated part reverses with the rest of the accrual. The amounts are taken into the close snapshot, so a closed month does not move when cost lines arrive later. The journal tie-outs check these lines apart from AI spend.
  • Sources: voice is telephony cost lines (billed); speech is speech to text and text to speech cost lines (billed); seats are the fixed seat cost (billed) and connector usage spend as the vendor marks it, read by calendar month; infrastructure is observed deployment cost and infrastructure cost lines (billed) plus the rate times hours estimate for days with no observed cost (accrued).
  • Not posted: depreciation and electricity of owned hardware, and tool, human review and other cost lines. With entities, non-token lines post to the default entity. A category turned on after a month closed is posted for that month only after it is reopened and closed.

Commitment shortfall and expired credits

  • Turn on Accrue a likely shortfall at period end and set the shortfall expense account. The journal debits that account and credits accrued liabilities for the current true-up period's projected shortfall on the period's last day, and reverses it the next day. See credits and commitments.
  • With an expiry write-off account set, expired prepaid balances are written off: debit that account, credit the prepaid asset. Without it the journal notes the amount not posted. The prepaid roll-forward on the close page ties to these lines.
  • With entities, the shortfall accrual and expiry write-offs post to the default entity.

Posting to an ERP

Connect NetSuite, QuickBooks Online, Xero, Sage Intacct or Dynamics 365 Business Central under Integrations. Close the month, then on the journal card choose Post to an ERP, Preview posting (a dry run showing each entry and the request body, nothing sent) and Post. Admins only; each post is in the audit log and the posted status shows on the journal card and the close page.

  • A month posts once per ERP connection. Posting again returns the stored entry ids; after a partial failure only the missing entries are sent. An entity's entry already posted through another connection of the same ERP is not sent again.
  • NetSuite, QuickBooks, Xero and Sage Intacct use their own idempotency key so a repeated request cannot create a second entry. Business Central lines are added to a journal batch for someone to post there.
  • With entities, each entity is its own balanced entry, split as locked at close. Each entity can name the ERP connection it posts to (Settings, Finance, Subsidiaries, Posts to), and the accounting settings have a Default ERP connection. QuickBooks Online, Xero and Business Central are one company per connection: an entity posts only to its own connection, and an entity without one posts to the default connection only when its currency is that company's base currency; otherwise posting is refused with a message. NetSuite and Sage Intacct take every entity through one connection, with the subsidiary or location on each entry.
  • A non-USD entity posts at the month-end rate: NetSuite, QuickBooks Online and Sage Intacct get the currency and exchange rate on the entry, Business Central gets amounts converted to the company's currency, and Xero (no exchange rate on a manual journal) takes USD books only. The preview shows the rate, its date and source. With no month-end rate, posting is refused.
  • Without entities, the journal is in the ERP company's base currency, else the workspace reporting currency. When that is not USD, posting uses the month-end rate the same way (Xero refuses), and the workspace currency is locked with the close.
  • ERP connections record the company's base currency read from the ERP (QuickBooks Online, Xero, Business Central and NetSuite) and, where the ERP exposes it, the books lock date (QuickBooks Online closing date, Xero period lock date). base_currency and books_locked_through in the connection settings override them, and are the only source for Sage Intacct.
  • When the journal built today differs from the hash locked at close (for example an account code changed), the preview lists the changed settings and posting stops until the month is closed again, or an admin ticks Post anyway, which is stored on the posting and in the audit log.
  • Every posted line is stored. If a posted month is reopened and closed with different amounts, the close page says so for that ERP and posting sends adjustment entries for the difference only, numbered <entry>-ADJ1, -ADJ2 and so on. The accounting setting Date adjustment entries picks their date: In the open period when the ERP's books are locked (default), In the adjusted month, or Always in the current open period. The open-period date is today, or the day after the ERP's lock date.
  • An open month posts only when Allow posting months that are not closed is turned on in the accounting settings.

Journal hash

Closing a month stores the SHA-256 of the journal file for every layout. Each later download of that month returns the hash and whether it matches. Changing account codes, segments or ERP options after the close changes the file; ledger corrections, late telemetry and entity rule changes do not, because the amounts and the entity split are locked. Months closed before the entity split was locked use today's split and say so; reopen and close them to lock it.

Limits

  • The Standard CSV is USD. The NetSuite, QuickBooks Online and Sage Intacct layouts have currency and exchange rate columns (the rate is empty for USD books); the Business Central layout is converted like direct posting; a Xero file for books not in USD is refused. With no month-end rate for a non-USD book, the ERP file is refused. ERP layouts round to cents per entry (each entry still balances); the Standard CSV keeps six decimals.
  • Postings made before line detail was stored cannot be adjusted automatically after a reopen; posting says so and the ERP is corrected by hand. QuickBooks Online and Xero need a refresh token obtained outside the app.
  • The cash paid to buy a prepaid balance is not in the journal.
  • Months closed before the billed and accrued split cannot build a reversing entry; reopen and close them again.
  • The ERP connectors are built from each ERP's public API docs and tested with recorded responses; they have not been run against a live account. Check the first posting.