fulfillment_quote
Get a manufacturing quote for a 3D model from Craftcloud, including unit price, total, lead time and shipping options, so you can compare costs and place an order.
Instructions
Get a manufacturing quote for a 3D model from Craftcloud.
Args:
file_path: Absolute path to the model file (STL, 3MF, OBJ),
or the ``artifact_token`` of a model still on Kiln's
servers (a repair Kiln made, say). A model on the
servers is priced exactly as it is, nothing is uploaded,
and the reply's ``preview_file_path`` is the look to show
the person and to name in ``fulfillment_order``.
material_id: Material ID from ``fulfillment_materials``.
quantity: Number of copies to print (default 1).
shipping_country: ISO country code for shipping (default "US").
jurisdiction: Buyer's tax region (e.g. ``"US-CA"``, ``"DE"``),
for a total with tax. On an install that orders through
Kiln's servers it is pinned to the quote here, so the
order is taxed as the quote said; a local order service
takes it at ``fulfillment_order`` instead.
business_tax_id: The buyer's business tax id (EU VAT, AU ABN)
for a reverse-charge order; pinned the same way.
keep_as_sent: Price the file exactly as it is, without
standing it up first. Only when the person asks for it.
Uploads the model, returns pricing from Craftcloud's network of 150+
print services, including unit price, total, lead time, and shipping
options. A Kiln orchestration fee is shown separately so
the user sees the full cost before committing.
If a payment method is linked, a hold is placed on the fee amount
at quote time (Stripe auth-and-capture). The hold is captured
when the order is placed via ``fulfillment_order``, or released
if the user doesn't proceed.
The reply opens with ``tell_the_person``: the price and what it
is made of, timing, what more copies would cost, and the print
service's order terms with a link to them, already worded for
the person. Pass every line on to them word for word, in order,
before they decide; do not summarise, shorten or drop any.
``quote.price_sheet`` holds the same numbers as data, and
``priced_size_mm`` the size of the model that was priced.
A model whose note says it arrived with no real size (a generator
asked for a shape, not a size) is refused with
``SIZE_NOT_CHOSEN`` before anything is uploaded: ask the person
how big it should be, set it with ``rescale_model(file_path,
longest_side_mm=...)``, then quote again.
A model that arrived lying down is priced standing up: Kiln
prices a turned copy and never rewrites the file named. The
reply's ``pose`` says what Kiln did, and its line opens
``tell_the_person``. When ``pose.priced_file`` is present it is
the file that was priced: show and preview THAT file before an
order (``issue_preview_token(file_path=pose.priced_file)``, then
``preview_file_path=pose.priced_file``).
Use the returned ``quote_id`` with ``fulfillment_order`` to place the
order. On an install that orders through Kiln's servers the
reply also carries ``quote_token``; Kiln keeps it beside the
quote, and ``fulfillment_order`` accepts it too.
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": {
"file_path": "<file_path>",
"material_id": "<material_id>"
},
"name": "fulfillment_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Number of copies to print (default 1). Default: 1. | |
| file_path | Yes | Absolute path to the model file (STL, 3MF, OBJ), or the ``artifact_token`` of a model still on Kiln's servers (a repair Kiln made, say). A model on the servers is priced exactly as it is, nothing is uploaded, and the reply's ``preview_file_path`` is the look to show the person and to name in ``fulfillment_order``. | |
| material_id | Yes | Material ID from ``fulfillment_materials``. | |
| jurisdiction | No | Buyer's tax region (e.g. ``"US-CA"``, ``"DE"``), for a total with tax. On an install that orders through Kiln's servers it is pinned to the quote here, so the order is taxed as the quote said; a local order service takes it at ``fulfillment_order`` instead. Default: "". | |
| keep_as_sent | No | Price the file exactly as it is, without standing it up first. Only when the person asks for it. Default: false. | |
| business_tax_id | No | The buyer's business tax id (EU VAT, AU ABN) for a reverse-charge order; pinned the same way. Default: "". | |
| shipping_country | No | ISO country code for shipping (default "US"). Default: "US". |