record_transaction
Record a buy or sell transaction for MTG cards. Automatically adjusts inventory by adding or subtracting quantities.
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 |
|---|---|---|---|
| cardId | Yes | Internal IWMM card UUID. | |
| type | Yes | ||
| quantity | Yes | ||
| pricePerUnit | Yes | Per-unit price in USD. | |
| isFoil | Yes | ||
| date | Yes | ISO 8601 date (YYYY-MM-DD). | |
| source | No | Where the transaction happened (e.g. 'TCGPlayer', 'LGS'). | |
| fees | No | ||
| notes | No | ||
| skipInventorySync | No | If true, record the transaction without adjusting inventory. Default false - transactions normally update inventory. |