record_transaction
Record a buy or sell transaction (price, quantity, date) and automatically adjust inventory: BUY adds, SELL subtracts. Always keeps stock accurate after every trade.
Instructions
Record a buy or sell transaction. By default this also adjusts inventory (BUY adds, SELL subtracts). This is a real write. Requires IWMM_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO 8601 date (YYYY-MM-DD). | |
| fees | No | ||
| type | Yes | ||
| notes | No | ||
| cardId | Yes | Internal IWMM card UUID. | |
| isFoil | Yes | ||
| source | No | Where the transaction happened (e.g. 'TCGPlayer', 'LGS'). | |
| quantity | Yes | ||
| pricePerUnit | Yes | Per-unit price in USD. | |
| skipInventorySync | No | If true, record the transaction without adjusting inventory. Default false - transactions normally update inventory. |