Skip to content

business

github-actions[bot] edited this page Dec 6, 2026 · 1 revision

Business data

wcat keeps the money side of a small business beside your messages and notes: what you sell or buy, the contracts and subscriptions behind it, your bank accounts and what moved through them. Invoices, payments and orders are on Usage, and deals and leads on Usage.

Every list here narrows with words such as status:active, never with flags. Each command's options are in the command reference.

On this page:

  1. Amounts and currencies
  2. Products
  3. Contracts
  4. Subscriptions
  5. Wallets and transactions
  6. Bring data in from another system
  7. Find it again

Amounts and currencies

An amount is a decimal with at most as many decimals as its currency has: 50000.00 RUB, 1200 JPY (none), 1.250 BHD (three). wcat keeps it as a whole number of the currency's smallest unit, so nothing is lost to rounding, and it refuses an amount with more decimals or a currency it does not know. It never converts one currency to another: every total is per currency.

What an invoice was paid is net: its confirmed payments minus their confirmed refunds. A refund is a payment the other way, and never more than the payment it gives back for:

wcat payments add 5000.00 RUB --kind out --organization organization:3 --refund-of payment:9
wcat invoices show invoice:4

An invoice refunded in full is issued again, and still owed, until you void it.

Products

A product is a good or a service you sell or buy, with its price. Anyone writes one at once, with no review.

wcat products add 'Bike rental, month' 10000.00 RUB --kind service --unit month
wcat products list kind:service
wcat orders lines add order:3 12 --product product:4

A line made from a product copies its name and price, so a later price change leaves the line as it was.

Contracts

A contract keeps its dates, whether it renews, and the days of notice it needs. contracts show gives the last day to give notice.

wcat contracts add 'Rental agreement' --kind service --start-date 2026-11-01 --end-date 2027-10-31 --auto-renew on --notice-days 30 --amount 120000.00 --currency RUB
wcat contracts list expires:2026-12-31

One your agent adds with an amount waits for you in wcat review list kind:contract.

Subscriptions

A subscription is something you bill or pay again and again: who supplies it, who pays, how often and every price it had. A new price is a row of its own from the day it starts, never an edit of the old one.

wcat subscriptions add Hosting 990.00 RUB --kind payable --supplier organization:3 --period 1-month --start-date 2026-11-01
wcat subscriptions prices add subscription:5 1190.00 RUB --start-date 2027-01-01
wcat subscriptions show subscription:5

Your agent's subscriptions and prices wait for you in wcat review.

Wallets and transactions

A wallet is a bank account, a card or cash, in one currency. A transaction is what the bank says moved; a payment is what it settles. They meet only when you link them.

wcat wallets add 'Main card' RUB --kind card --institution 'Bank One'
wcat wallets update wallet:2 --opening-balance 15000.00 --opening-date 2026-01-01
wcat transactions add wallet:2 500.00 --kind out --occurred-time 2026-11-14 --description 'Coffee shop'
wcat transactions update transaction:12 --payment payment:9
wcat transactions splits add transaction:12 300.00 Rent --project HRB
wcat wallets show wallet:2

wallets show adds up the opening balance and the confirmed, booked transactions. What is pending or proposed is shown beside the balance, never in it. Only you set the opening balance: over MCP, wallets update is refused unless you allow it.

Bring data in from another system

A CRM, an accounting program or a bank export comes in as a records file (JSON, or JSONL with a header line). Check it first, then import it:

wcat records check erp.jsonl --account example-erp:demo
wcat records import erp.jsonl --account example-erp:demo
wcat review list kind:invoice,payment,order,contract

A spreadsheet works too, one type a sheet. wcat records templates list lists the types and their columns; wcat records templates show invoice --locale ru writes the header row to fill with ; between cells, as Excel in Russian or Spanish expects, and --format json writes an example envelope instead. The sheet is checked and imported with its type:

wcat records templates show invoice --locale ru > invoices.csv
wcat records check invoices.csv --type invoice --account sheet:rentals
wcat records import invoices.csv --type invoice --account sheet:rentals

A role takes the target's external id (wallet = W-1), or organization:C-1 where it may be a person or an organization. A row that repeats an invoice's external_id adds one more line to it. 10 000,50 and 09.11.2026 are read as Excel writes them. Each refusal names the sheet's line and column.

A JSON file that holds an array of rows, each an object keyed by the template's column names, works like a sheet: wcat records import people.json --type person --account import:crm. A list in a cell is a list of values.

A folder of tables is one import. Each .csv or .json file's name gives its type: people.csv or contacts.csv for people, companies.csv or orgs.csv for organizations, messages.csv, events.csv or meetings.csv, and any other type by its name (deals.csv, invoices.csv). A relation from one file to another resolves in the same run:

wcat records check ./crm-export --account import:crm
wcat records import ./crm-export --account import:crm

A file whose name names no table, or any other file such as a README.txt, refuses the whole folder before anything is written: move it out first. --type is not for a folder. Each refusal names the file, its line and column, such as people.csv:14 email. Hidden files are skipped, and subfolders are not read.

Messages and events have templates too: a LinkedIn message, a chat or an e-mail (kind, thread, sender, recipients), a meeting with its attendees. They name people by the external id of a person row in the same import, never by name, and go into an import:<name> account, not a messenger's own.

Exports of other apps

An export another app wrote goes in as it is, with no columns to map. The import tells the kind from the files' names and shape, never by sending them anywhere, and --format names it when it cannot. Each export goes into an import account of its own, which you name: --account import:<name>.

Export Example What comes in
LinkedIn archive, the zip or its folder wcat records import Basic_LinkedInDataExport.zip --account import:linkedin your connections with their company and title, your messages and invitations; any other table as a document search reads
Google Contacts CSV wcat records import contacts.csv --account import:google --region es people, their companies and titles; a contact's notes as a document
vCard (.vcf) wcat records import contacts.vcf --account import:contacts people, as in Bring in a phone's contacts
Calendar (.ics, a file or a folder or zip of them) wcat records import calendar.ics --account import:calendar events with their attendees and organizer; a repeating event once, its rule kept
WhatsApp chat (.txt or its zip) wcat records import 'WhatsApp Chat with Lena.txt' --account import:whatsapp --me 'Noor Haddad' one thread per chat, its messages and its senders

wcat records check reads the export the same way and writes nothing. The receipt names what the export held but the import left out or read differently, one notice <file>:<line>: … each, such as a cancelled event or a chat's notices.

  • WhatsApp. --me is your name as the chat writes it: your messages become outgoing. Without it every message is incoming, and a notice says so. Day or month first is read from the dates; a chat whose dates cannot tell is refused until you pass --date-order dmy or --date-order mdy. The export names no time zone: its times are read in this computer's, or in --timezone Europe/Madrid, and the receipt says which.
  • LinkedIn from 2026-12-20. LinkedIn's Connections.csv then holds no address, company or title. Imported into the account of an earlier export, it takes those people's companies away; import it into a separate account, such as import:linkedin-2026-12, and the receipt says so.
  • Stdin. A Google Contacts CSV or an .ics calendar can come on stdin with --format: wcat records import - --format ics --account import:calendar < calendar.ics. A WhatsApp chat comes from its file or zip, whose name names the chat.

The same file twice changes nothing. The people and organizations it names are matched by one exact e-mail, phone or other identifier, or made; never by name. Its invoices, payments, orders, contracts with an amount, subscriptions and transactions wait for you in wcat review.

To see where an entry came from, open it. wcat show and each entry's show list its sources: the records of the file it was made from, and the records that name it, such as a quote made for a deal:

wcat show contract:1 deal:1
wcat deals show deal:1 --json
wcat records show custom:quote:Q-7 --account example-erp:demo

A test import, or one sent to the wrong account, goes whole with wcat records clear --account n8n:test --yes: its records, the leads, deals and pipelines made from them, and the people only it made. A person you tagged or gave a task to, or one another source knows, stays. Without --yes it only says how many records it would delete. A WireCat tool's own account, such as tg or a CRM, is not an import and is removed by that tool.

Find it again

wcat search all finds invoices, payments, orders, contracts, subscriptions, products and wallets by the words of their numbers and names, beside your messages, mail and notes. --only business searches them alone:

wcat search all 'Rental agreement' --only business

Bank transactions are not searched: there are too many. wcat transactions list narrows them by wallet, status, category or project. A search word with an operator, such as budg*, leaves business data out and says why.

Over MCP, an agent's search reads business data unless you deny it: set the business.list key in permissions to deny, and search all leaves it out and says so.

Clone this wiki locally