Preview a settlement
settlement_previewPreview debt settlement between two flat members: net, settleable and remaining cents plus affected splits, with no data changes. Verify before committing a payment.
Instructions
Computes, without changing anything, what settling the debt from fromMemberId to toMemberId would cover: netCents (net debt), settleableCents, remainingCents and the affected splits. Call it before settlement_commit (pass the result as expected) or cash_payment_record (use netCents as expectedNetCents). For a quick overview of what others owe the caller use balances_get instead. The caller must be one of the two members (otherwise not_party_to_debt); both must be active in the flat (member_not_in_wg).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fromMemberId": "<fromMemberId>",
"toMemberId": "<toMemberId>"
},
"name": "settlement_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. | |
| currency | No | Currency of the debt to preview. | EUR |
| toMemberId | Yes | Member who is owed the money and receives it, from members_list. | |
| fromMemberId | Yes | Member who owes the money and pays, from members_list. |