prime_update_ap_invoice
Update an accounts payable invoice by invoice ID using the current version for optimistic locking. Change fields like totals, dates, invoice number, description, or notes.
Instructions
Update an accounts payable invoice. Requires version for optimistic locking.
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_id": "<invoice_id>",
"version": "<version>"
},
"name": "prime_update_ap_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| total | No | Currency amount (must be >= 0) | |
| version | Yes | Current version for optimistic locking | |
| due_date | No | ||
| subtotal | No | Currency amount (must be >= 0) | |
| invoice_id | Yes | The invoice ID to update | |
| tax_amount | No | Currency amount (must be >= 0) | |
| description | No | ||
| invoice_date | No | ||
| invoice_number | No |