Confirm bill
figa_confirm_billConfirm an occurrence's actual invoice amount and period, optionally marking it Paid. Ordinary variable bills require the actual amount supplied or confirmed by the user; a forecast, guess or placeholder is not a confirmed invoice, even with a provisional note. Unknown amounts are not eligible for invoice confirmation; forecasts remain estimates. Service confirmations may use the returned service calculation under revision guards. Omitting markPaid preserves payment status; markPaid: true atomically sets Paid without transferring funds or recording a payment. expectedEditContext and expectedPaymentStatusRevision identify the expense state; bill/settings revisions and service activity revision identify the pre-write bill state. Existing Paid preserves its known or unknown date. Changed input or paymentDate conflicts with an existing requestId. Ordinary bills retain the last request receipt; services retain durable receipts. Replays never repeat Paid and do not establish current status. This write requires explicit user intent. A UUID requestId identifies one intended operation; identical retries retain the same ID and payload. A missing response or IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS or INTERNAL_SERVER_ERROR leaves the outcome uncertain, not a confirmed failure. A new ID can duplicate an uncertain write. Corrected inputs after a definite validation or business refusal constitute a new operation. The transport response cache lasts 24 hours; longer replay guarantees are stated above.
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": {
"workspaceId": "<workspaceId>",
"requestId": "<requestId>",
"expenseId": "<expenseId>",
"bill": "<bill>"
},
"name": "figa_confirm_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | The actual invoice: amount in minor units, period {start, end}, bill revision (expectedRevision), settings revision (expectedSettingsRevision), service activity revision if applicable, its own requestId, and optional markPaid with payment-state expectations. | |
| expenseId | Yes | Expense ID as returned by expense reads: a stored expense UUID or the ID of a generated occurrence of a recurring series. | |
| requestId | Yes | Caller-generated UUID identifying this one intended write. A retry of the same write reuses the ID and payload; the same ID with different input returns IDEMPOTENCY_KEY_MISMATCH. | |
| workspaceId | Yes | ID of a workspace selected for this connection. Other workspaces are rejected. |