Calculate order total
quoteCalculate the binding total for a list of items with the same code the site checkout uses (prices, minimum order, shipping rules: Nova Poshta for Ukraine; for lang en shipping and VAT by the ship_to country, minimum order 49 EUR excl. VAT). Use it after the buyer has chosen products and quantities, and before place_order, to show the exact total. Do not use it to search or to look up one product (search_products, get_product). Returns per line: qty, moq, unit and line amounts in minor units; total_minor and total_display; for lang en also goods, shipping and VAT amounts; shipping terms; min_order_ok (false means the total is below the minimum order: add items). Amounts in *_minor fields are integers in minor units (kopiyky for UAH, euro cents for EUR). Fails if the quantity is below a product minimum order quantity or a handle is not orderable (unknown_skus). Read-only: creates no order. Use the returned total_minor as expected_total_minor in place_order.
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": {
"items": "<items>"
},
"name": "quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Site language and market (optional, default uk). uk = Ukrainian site and ru = Russian site: Ukraine market, prices in UAH, Nova Poshta delivery, no ship_to. en = English site (site root): EU market, prices in EUR excluding VAT, delivery to EU countries, ship_to is required for quote and place_order. Use the market of the buyer; the range, prices and product handles differ between markets, so keep the same lang across search_products, get_product, quote, cart_link and place_order. | uk |
| items | Yes | Order lines, 1 to 50, e.g. [{"handle": "ct-6205-2rs", "qty": 10}]. Each handle at most once (merge duplicates into one line). | |
| ship_to | No | Delivery destination, e.g. {"country": "DE", "postcode": "10115"}. Required when lang is en (EU market: shipping and VAT depend on the country); must be omitted for uk and ru (Ukraine: Nova Poshta, no destination country). |