proforma_invoices_update
Update a draft proforma invoice by replacing its line items and details. Use it to revise pending proforma invoices before issuing; only invoices in draft status can be changed.
Instructions
Update an existing proforma invoice. Only invoices in draft status can be updated. Replaces all line items with the provided array.
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": {
"uuid": "<uuid>",
"clientId": "<clientId>",
"seriesId": "<seriesId>",
"issueDate": "<issueDate>",
"dueDate": "<dueDate>",
"validUntil": "<validUntil>",
"currency": "<currency>",
"lines": "<lines>"
},
"name": "proforma_invoices_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID of the proforma invoice to update | |
| lines | Yes | Array of line items (replaces all existing lines) | |
| notes | No | Public notes visible to client | |
| dueDate | Yes | Payment due date (YYYY-MM-DD) | |
| clientId | Yes | UUID of the client | |
| currency | Yes | Currency code (e.g., RON, EUR, USD) | |
| issuerId | No | UUID of the issuer user | |
| language | No | Document language for PDF generation (default: ro) | |
| mentions | No | Additional mentions or notes | |
| seriesId | Yes | UUID of the invoice series | |
| companyId | No | Company UUID (overrides configured default) | |
| issueDate | Yes | Date of issue (YYYY-MM-DD) | |
| issuerName | No | Name of person issuing the proforma | |
| salesAgent | No | Sales agent name | |
| validUntil | Yes | Valid until date (YYYY-MM-DD) | |
| orderNumber | No | Client purchase order number | |
| exchangeRate | No | Exchange rate to base currency | |
| internalNote | No | Internal note (not visible to client) | |
| paymentTerms | No | Payment terms description | |
| contractNumber | No | Related contract number | |
| invoiceTypeCode | No | Tax regime / invoice type code | |
| deliveryLocation | No | Delivery address or location | |
| projectReference | No | Related project reference |