Skip to content
AISpendbook

Guide · 7 min read

AI spend journal entries: post to NetSuite or QuickBooks

By AI Spendbook · Published · Updated

Short answer

Book AI spend as one journal per month: debit an expense line per accounting class, credit the billed part to accounts payable, the unbilled part to accrued liabilities and credits used to the prepaid asset, then reverse the accrual on day one of next month. Post it from a closed month so the ERP matches the signed-off figures.

Key takeaways

  • One balanced entry per month (per entity when you have subsidiaries), plus an optional reversing entry dated the first day of the next month.
  • Department, class, location and subsidiary travel on each expense line, so the ERP can report AI cost the same way as other costs.
  • Post from the closed month's locked figures; reopening a month in AI Spendbook does not undo a posting in the ERP.
  • AI Spendbook can post to NetSuite, QuickBooks Online, Xero and Sage Intacct, and adds lines to a Business Central journal batch.
Pixel-art green hills under a pale blue morning sky with a low sun and small wildflowers.

Most teams start by keying the AI bill into the ERP when the invoice arrives. That works until spend is large enough that the month needs an accrual, the bill has to be split between cost of revenue and R&D, and the auditor asks why the ERP figure differs from the dashboard. A monthly journal built from the same ledger as the close answers all three.

What does the AI spend journal entry look like?

Illustrative month: $52,000 of AI spend across two providers. $45,000 is covered by provider bills, $5,000 is still an estimate for days not billed yet, and $2,000 came out of a prepaid balance. Accounting rules put production traffic in cost of revenue and evals and internal tools in R&D. Request telemetry shows 75% of the month's priced requests were production, so cost of revenue gets 0.75 x $52,000 = $39,000 and R&D gets the other $13,000. The split is applied to the billed total, not to the token estimate, so the two expense lines add up to the spend the close signed off (how to set those rules is in COGS or R&D for AI spend).

The credits side follows the evidence for each day: days with a provider bill credit accounts payable ($45,000), days still on an estimate credit accrued liabilities ($5,000), and spend drawn from a prepaid balance credits the prepaid asset ($2,000) because no new liability was created. $45,000 + $5,000 + $2,000 = $52,000, so the entry balances.

Illustrative month-end entry, dated the last day of the month. Account names are examples; use your own chart of accounts.
LineAccountDebitCreditSegments
ExpenseAI cost of revenue$39,000Department, class, location
ExpenseAI research and development$13,000Department, class, location
Billed partAccounts payable$45,000Subsidiary
Unbilled partAccrued liabilities$5,000Subsidiary
Credits usedPrepaid asset$2,000Subsidiary

The reversing entry, dated the first day of the next month, debits accrued liabilities by $5,000 and credits each expense class with its estimated share. When the invoice arrives it is booked as usual and the difference lands in the new month. Each entry balances on its own.

Can AI API costs be posted to NetSuite or QuickBooks automatically?

Yes, if your AI cost tool builds the journal and talks to the ERP's journal API. AI Spendbook builds the entry above and can post it to five ERPs, each its own connector. Each was built from the vendor's public API documentation and tested with recorded responses; none has been run against a live ERP account yet, so post one month to a sandbox or check the first live entry by hand.

What each ERP receives. Sources: each vendor's public journal API documentation, read 2026-11-27.
ERPPosted asSegments carriedSign-in
NetSuiteJournal entry through SuiteTalk REST, with the reversing entrySubsidiary, department, class, locationToken-based authentication
QuickBooks OnlineJournalEntryClass and location on each lineOAuth refresh token obtained outside the app
XeroManual journalDepartment and class as tracking categoriesOAuth refresh token obtained outside the app
Sage IntacctGLBATCH journal entryDepartment, location, classWeb Services sender and user
Business CentralLines added to a general journal batch, posted by you in Business CentralDepartment and class dimensionsMicrosoft Entra app (client credentials)

If you would rather import a file, the same journal downloads in each ERP's import layout (NetSuite, QuickBooks Online, Xero, Sage Intacct and Business Central) or a standard CSV. Setup steps are in journal and ERP posting.

How do you post the first AI spend journal safely?

  1. Set the account codes: expense per accounting class, accounts payable, accrued liabilities and, if you use credits, the prepaid asset. The export is refused until every account the month needs is set.
  2. Map segments per accounting class, and for QuickBooks and NetSuite map account and segment codes to the ERP's internal ids.
  3. Close the month. Posting uses the snapshot locked at sign-off, so the ERP and the close show the same numbers.
  4. Run the preview. It shows each entry's totals and the exact request body and sends nothing.
  5. Post. An admin posts once per workspace, month and ERP; a second click returns the stored entry ids and sends nothing. Each post is in the audit log.
  6. Tie the ERP balance back to the close page, which shows the posted status and the entry ids.

Reopening a month in AI Spendbook does not undo a posting. Correct or reverse the entry in the ERP, then post the corrected month as a new entry.

How do you split AI cost across subsidiaries and currencies?

Define entities with their ERP subsidiary id and rules that send a provider account, a project or a customer to an entity. The journal then posts one balanced entry per entity, with the subsidiary on every line. Amounts post in USD: NetSuite posting needs a USD subsidiary. For reporting in another currency, AI Spendbook converts month by month at dated rates (your own rate table first, then the ECB reference rates); see currency and entities.

What are the common mistakes when booking AI spend in the ERP?

  • Booking the invoice and the accrual. If the accrual is not reversed, the invoice books the same usage a second time. Turn on the reversing entry or reverse by hand on day one.
  • Splitting the token estimate instead of the bill. Estimates rarely equal the invoice; split the billed total by telemetry share so the classes add up to what you owe.
  • Crediting cash for prepaid drawdowns. Credits used were paid earlier; the credit side is the prepaid asset, not accounts payable.
  • Posting an open month. A posting from today's ledger changes meaning when a late bill arrives. Post from the closed month unless you deliberately allow open months.
  • Editing a posted entry in the ERP without recording why. Reverse and repost, so the ERP and the close tell the same story.

When is a monthly AI spend journal not worth it?

A separate AI spend journal is overhead when AI spend is small, comes from one provider and arrives as one invoice a few days after month end. Booking that invoice through accounts payable, with no accrual, is usually enough while the amount stays immaterial. Direct posting from a tool also does not fit when the ERP's journal API is not available on your plan, or when NetSuite posts to a subsidiary whose currency is not USD; download the import file instead and post it through the ERP's own import.

How do you tie the ERP to the provider invoices?

Compare each provider's billed total for the month with its invoice before posting, not after. Invoices can be uploaded as PDFs, forwarded by email, or for NetSuite read from the AI vendors' bills. A closed month also stores a SHA-256 hash of the journal file, so you can show later that the file posted is the one signed off. The wider control set is in the close guide.

Frequently asked questions

Should AI API costs be booked when the invoice arrives or as an accrual?

Accrue them when the invoice arrives after month end and the amount is material. Book billed-to-date plus an estimate for unbilled days, then reverse on the first day of the next month and book the invoice as usual.

Which journal layout does QuickBooks Online need for AI spend?

QuickBooks Online takes a journal entry with one line per account, and uses class and location (department) for segments. It needs internal ids for accounts, classes and locations, so map your codes to those ids once before the first post.

Can Business Central post the AI spend journal on its own?

Not from AI Spendbook. The lines are added to a general journal batch you name, and someone posts the batch in Business Central. Business Central has no idempotency key, so the batch is checked for the entry's document number first.

What happens if an ERP posting fails halfway?

The entries already created stay in the ERP and are recorded. Posting again sends only the entries that are missing, and where the ERP supports an idempotency key a repeated request cannot create a second copy.

Start with your own numbers.

Every plan is free during launch. No credit card.