get_ious
Get the user's IOU/debt ledger: who owes the user and whom the user owes, across all counterparties (or one, via counterpartyId). Each entry is a single transfer against a per-counterparty virtual account, labeled with a direction — 'lend' (user gave money, receivable grows), 'collect' (user was paid back, receivable shrinks), 'borrow' (user received money, payable grows), or 'settle' (user paid back, payable shrinks). virtualAccount.type is 'receivable' (they owe the user) or 'payable' (the user owes them); virtualAccount.currency is the debt's currency. amount is in major units. Use this for any question about who owes whom, outstanding debts, or IOU history — this data is not visible via run_read_query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| counterpartyId | No | Filter to a single counterparty by id (resolve a name to an id via run_read_query against the counterparty table first). Omit to return the ledger for every counterparty. |