mark_invoice_paid
Marks a specified WeFact invoice as paid, optionally recording the payment date and method.
Instructions
Mark an invoice as paid.
Args: invoice_code: e.g. '202401001'. pay_date: ISO date. Defaults to today. payment_method: WeFact code, e.g. 'wire' for bank transfer ('banktransfer' is rejected as an invalid payment method).
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": {
"invoice_code": "<invoice_code>"
},
"name": "mark_invoice_paid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pay_date | No | ||
| invoice_code | Yes | ||
| payment_method | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |