Convert Quote
convert_quoteTurn a quote into the next document — the Quotes page's Generate sales order / Generate invoice. into=sales_order (accepted quotes only) creates a draft sales order with the quote's lines, marks the quote converted, and emails the customer that the order was created, as the app does. into=invoice creates a draft invoice with the quote's lines and leaves the quote as it is; issue it with issue_invoice. Two-step: preview=true, then commit with the previewReceipt.
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": {
"quoteId": "<quoteId>",
"into": "<into>"
},
"name": "convert_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| into | Yes | sales_order or invoice. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing is written until the commit call. | |
| quoteId | Yes | Quote id (GUID) or number from list_invoices with documentKind=quote. | |
| clientId | No | Must be omitted: quotes belong to the house, not to a 3PL client. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2: the receipt returned by the preview call. Supply with a fresh idempotencyKey to commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| number | No | ||
| status | No | ||
| preview | No | ||
| quoteId | No | ||
| warnings | No | ||
| expiresAt | No | ||
| invoiceId | No | ||
| totalAmount | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| documentKind | No | ||
| salesOrderId | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| approvalRequired | No | ||
| approvalRuleName | No | ||
| idempotentReplay | No | ||
| salesOrderNumber | No |