Update receipt
update_receiptFix one of the caller's receipts by id (recognition mistakes). Editable header fields: date, merchant_name (re-resolved), total, currency, category, payment_method, document_id, notes. Pass 'items_replace' (a full new list of line items, same shape as add_receipt.items) to fully REPLACE the existing line items. The confirmed/needs_review status is recomputed from the resulting items vs total. Only the caller's own receipt is reachable. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"receipt_id": "<receipt_id>"
},
"name": "update_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| notes | No | ||
| total | No | ||
| category | No | ||
| currency | No | ||
| receipt_id | Yes | ||
| document_id | No | ||
| items_replace | No | ||
| merchant_name | No | ||
| payment_method | No |