Update extracted invoice draft fields
update_invoice_draftPatches fields on an existing invoice draft (or creates a structured JSON draft for a Single Order / API-key job) to fill missing required fields (e.g. service_date, payment.payment_terms, seller/buyer details) and returns updated preflight field_issues.
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": "<invoice>"
},
"name": "update_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | InvoiceRequest fields (full object for a new job, or deep-merge patch for an existing job). | |
| job_token | No | Existing job_token to patch; omit to start a new job directly from structured JSON. | |
| accept_avv | No | Required ("1.3") when starting a new anonymous Single Order without job_token. | |
| buyer_is_business | No | Required (true) when starting a new anonymous Single Order without job_token. |