Record payment
Record a customer payment on an open invoice.
MCP tool lexware_office_write → record_payment
write Confirm
Clicks Zahlung erfassen on the invoice with the amount, the payment date and the payment type. The invoice drops out of the open and overdue lists once the open amount is paid. A payment recorded by hand is removed with the trash icon in the invoice details, but users with the restricted role "Belege, Kontakte & Produkte" cannot delete payments. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| document_id string required | string | Document ID from list_documents or create_invoice. |
| amount number required | number | Amount received in EUR. |
| payment_date string required | string | Date the money arrived, YYYY-MM-DD. |
| payment_type enum | enum | private or cash. Cash only if a cash book is set up; otherwise private. Default: private. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lexware_office_write",
"arguments": {
"operation": "record_payment",
"arguments": {
"document_id": "document_8c41d2",
"amount": 1,
"payment_date": "payment date"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"document_id": "d_9c31be",
"number": "RE1031",
"amount": 1130.5,
"payment_date": "2026-10-13",
"payment_type": "private",
"open_amount": 0,
"currency": "EUR"
},
"isError": false
}