Convert quote to invoice
Turn an approved quote into an invoice and link the two.
MCP tool invoice_ninja_write → convert_quote_to_invoice
Creates an invoice from a quote, copying its lines, totals and attached details, and marks the quote Converted with a link to the new invoice. Invoice Ninja converts quotes itself when the client approves and Settings > Workflow Settings > Quotes > Automatically Convert is on, so this tool is for approved quotes that were not converted. If the quote is not approved, the call stops and returns the quote status instead. The new invoice is not sent; use send_invoice for that. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| company string | string | Company name, for accounts with several companies. Default: the company open when you signed in. |
| quote_number string required | string | Quote number from list_quotes or create_quote, e.g. Q-0017. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "invoice_ninja_write",
"arguments": {
"operation": "convert_quote_to_invoice",
"arguments": {
"quote_number": "quote number"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"quote_number": "Q-0017",
"quote_status": "converted",
"invoice_number": "INV-0047",
"invoice_status": "draft",
"amount": 2400,
"currency": "USD"
},
"isError": false
}