Set payment status
figa_set_payment_statusSet Paid or Unpaid without transferring money or creating a payment ledger entry. Expectations describe the current expense editContext, paymentStatusRevision and confirmed bill revision. For an unconfirmed service bill with sessions, status.servicePlan contains the displayed calculation amount and period, bill/settings/activity revisions and a stable requestId; Paid atomically confirms that calculation and preserves its first snapshot. Zero-session and skipped bills cannot become Paid. Ordinary variable forecasts require confirmation of the actual invoice amount before Paid. A guess, estimate or placeholder, even with a provisional note, is not an actual invoice amount; unknown invoices remain unconfirmed and Unpaid. This operation does not correct invoice amounts. Repeated Paid preserves its known or unknown date. Unpaid clears the current date and preserves archived history. In a due-window series, Paid moves expenseDate to the payment day and its month; Unpaid restores the window start unless the date changed after payment. A replayed result describes the original operation, not necessarily 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>",
"status": "<status>"
},
"name": "figa_set_payment_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | isPaid (true for Paid, false for Unpaid), the current expectedPaymentStatusRevision and expectedEditContext, expectedBillRevision for a confirmed bill, optional paymentDate in Unix seconds, and servicePlan for an unconfirmed service bill. | |
| 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. |