# wcat: Business data (/en/docs/wcat/business)

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](/llms.mdx/docs/wcat/usage/content.md#keep-track-of-money), and deals and leads on [Usage](/llms.mdx/docs/wcat/usage/content.md#track-deals-and-leads).

Every list here narrows with words such as `status:active`, never with flags. Each command's options are in the
[command reference](/llms.mdx/docs/wcat/commands/content.md).

**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 [#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:

```sh
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 [#products]

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

```sh
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 [#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.

```sh
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 [#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.

```sh
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 [#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.

```sh
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 [#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:

```sh
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:

```sh
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.

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:

```sh
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 [#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:

```sh
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`](/llms.mdx/docs/wcat/configuration/content.md#permissions) to `deny`, and `search all` leaves it out and says so.
