Update Purchase Invoice
update_purchase_invoiceUpdate draft purchase invoice fields by ID. Server-managed fields are rejected, and confirmed invoice dates must be invalidated first before changes.
Instructions
Update draft purchase-invoice fields. Server-managed fields are rejected; confirmed invoice dates require invalidate_purchase_invoice first.
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": {
"id": "<id>",
"data": "<data>"
},
"name": "update_purchase_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID | |
| data | Yes | Object with fields to update. |