SolariumSolariumDocs
Browse The Docs

Docs/API Reference

Transactions

List, create, categorize and confirm transactions, and attach receipts.

Transactions (LedgerEvents) are the core entity in Solarium. Each transaction flows through a lifecycle: created → classified → confirmed → synced. Use createLedgerEvent for manual entries, or import via bank statement. Classify with updateStagedEntry (set category + payment account), then confirm to post to the books.

Endpoints

POSTList TransactionsReturns a paginated, filterable list of ledger events. Supports status filtering, date ranges, amount ranges, account/category scoping, and full-text search.POSTGet a TransactionReturns the full detail for a single ledger event, including attached receipts, journal entry, and classification data. stagedEntry.categorySource says where the category came from (rule, vendor, correction, ai or person) and rationale says why in a short plain sentence, like "Matched your rule: Staples Canada → Office Supplies" or "Solarium AI picked it: looks like an ad campaign on Facebook and Instagram".POSTA Transaction's HistoryEvery change to one transaction, newest first. Each change says who made it, from which app (an AI app like Claude, Solarium AI in the app, a text message to the Solarium line, someone in the app, an API key or Solarium itself) and what changed, in plain words. The list_changes op returns the same over MCP.POSTActivityEvery change to the books, newest first, a page at a time. Filter by person (personId), app (a key from activityFilters) and dates. activityFilters lists the people and apps that have made changes.POSTCreate a TransactionCreates a new ledger event (manual entry). The event starts in needs_review status and must be classified and confirmed before it posts to the books.POSTUpdate a TransactionUpdates mutable fields on an existing ledger event. Only events in needs_review or pending status can be updated. To record a foreign-currency transaction, pass originalCurrency (and optionally chargedAmount) — see below.POSTConfirm a TransactionConfirms a classified ledger event, posting it to the books by creating a journal entry. The event must have a category and payment account assigned before confirming.POSTReject a TransactionRejects a ledger event, moving it to ignored status. Rejected events are excluded from the books and review queue.POSTLeave Out Of Management ReportsMarks a transaction to leave out of the Management View on reports (exclude: true), or puts it back (exclude: false). It stays in the books, sales tax and QuickBooks, and no amounts change. Works on any status. The set_management_view op does the same for several transactions at once over MCP.POSTClassify TransactionAssigns classification data to a staged ledger event. Supports three modes: intent (category + payment, server builds the balanced lines — with optional single or multi-component tax), transfer (two owned accounts, no category), and raw (client sends pre-built double-entry lines). This is the primary way to prepare a transaction for confirmation.POSTAttach Receipt to TransactionAttaches an uploaded receipt (image or PDF) to a ledger event. The file must already be uploaded to S3 — pass the s3Key returned from the upload endpoint.POSTEnter A Supplier BillAn unpaid supplier invoice, owed through Accounts Payable (DR each category, DR the input tax credit, CR Accounts Payable). With QuickBooks connected it becomes a Bill with the invoice number and due date, paid later through Pay Bills. Refuses if Solarium or QuickBooks already has a bill for that vendor and invoice number. An expense already booked to Accounts Payable also goes to QuickBooks as a Bill when it's pushed.POSTPay Supplier BillsPays open bills, all or part, from a bank account or credit card: DR Accounts Payable for each bill / CR the bank or card. The expense was booked with the bill, so this never touches profit and loss. Several bills of one vendor can be paid at once: split as you give it (allocations), else oldest bill first. With QuickBooks connected it becomes one Bill Payment with a line per bill, and each bill's balance is read back. Pass source_event_id to use the withdrawal already on the bank feed: that line becomes the payment, so it isn't counted twice. A USD bill can be paid from a USD account (valued at the bank line, else the day's Bank of Canada rate) or from an account in your books' currency (what left the bank: the bank line, amount_home, else the day's rate). Each bill's A/P comes down at the rate it was booked at, and the last payment leaves exactly 0. The difference goes to Exchange Gain or Loss. Refused for more than what's owed, a bill already paid, bills of different vendors, A/P accounts or currencies, an account in a third currency, or a date in a closed period.POSTRemove A Bill PaymentUndo a payment recorded with record_bill_payment: what it paid is owed on each bill again. A payment from a bank-feed withdrawal puts the withdrawal back in review as it was. One recorded by hand has its entry voided. In QuickBooks its Bill Payment is deleted and each bill's balance is read back. Refused in a closed period.POSTFind The Withdrawal That Paid A BillBank and card withdrawals still in review that could have paid a bill: in the bill's currency, from its date to 60 days after, for what's still owed or the whole bill. Also withdrawals that pay it together with others of the vendor's open bills (up to 5, oldest first), each with the bill_ids it would pay. Exact balance first, then names like the vendor's. Pass one's event_id to record_bill_payment as source_event_id, with its bill_ids. Read only.