order_to_invoice
Convert an existing order into an invoice, assigning the next invoice number from the books. Use dry run to preview the result before creating it.
Instructions
Create the invoice from an order (gets the next invoice number in the books).
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": {
"document_number": "<document_number>"
},
"name": "order_to_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| document_number | Yes |