Create Quote
create_quoteDraft a quote for a customer — the Quotes page's New quote. Lines are priced from the price book for that customer unless you give unitPrice; the preview shows the totals after discounts and tax. The quote is numbered and saved as open; nothing is reserved or sent. update_quote_status marks it accepted, and convert_quote turns it into a sales order or 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": {
"lines": "<lines>"
},
"name": "create_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Note shown to the customer. | |
| lines | Yes | Items to quote (1-500). Each needs exactly one of itemSku, itemUpc or itemId, and a quantity; unitPrice and uomId are optional. | |
| 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. | |
| storeId | No | Store id (GUID) from list_warehouses (stores[].storeId). | |
| clientId | No | Must be omitted: quotes belong to the house, not to a 3PL client. | |
| customerId | No | Customer id (GUID) from lookup_business_partners. Give exactly one customer argument. | |
| validUntil | No | Valid until (ISO date). Defaults to 15 days from now. | |
| warehouseId | No | Alternative to storeId when the warehouse has exactly one store. | |
| customerName | No | Customer name (exact match). A name that matches no customer is kept as free text. | |
| internalNote | No | Internal note (never shown to the customer). | |
| customerEmail | No | Customer email (exact match). | |
| 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 | ||
| warnings | No | ||
| expiresAt | No | ||
| invoiceId | No | ||
| totalAmount | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| documentKind | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| approvalRequired | No | ||
| approvalRuleName | No | ||
| idempotentReplay | No |