Place an order
place_orderOrder a priced part. This spends the account holder's money: show them the total from get_price first, unless they already asked for this exact purchase. Pass the total they saw as max_total_pence; if the price is now higher, nothing is ordered and you get the new price. It is paid with the saved card if the holder allows that and the order is within their limits; otherwise the answer is awaiting_payment with a pay_url to give the person. Use a new idempotency_key for each new order and the same one to retry.
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": {
"quote_id": "<quote_id>",
"material": "<material>",
"quantity": "<quantity>",
"turnaround": "<turnaround>",
"finish": "<finish>",
"delivery_service": "<delivery_service>",
"max_total_pence": "<max_total_pence>",
"confirm_rights_and_terms": "<confirm_rights_and_terms>",
"idempotency_key": "<idempotency_key>"
},
"name": "place_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Anything we should know about the part. | |
| finish | Yes | as_printed, cleaned or finished. | |
| colours | No | Colour ids from get_options for this material. The first is free; each extra colour adds the price get_options shows. Leave out for no preference (one colour). | |
| payment | No | auto (default): the saved card when allowed, else a pay link. pay_link: always a pay link. | |
| material | Yes | ||
| quantity | Yes | ||
| quote_id | Yes | From create_upload or list_quotes. | |
| turnaround | Yes | today, tomorrow or standard (2-3 working days). get_options says which are open now. | |
| idempotency_key | Yes | New for each new order; the same one to retry this order. | |
| max_total_pence | Yes | The total, in pence, that the person was shown and agreed to. | |
| delivery_service | Yes | ||
| accept_turnaround | No | When an earlier answer said needs_confirmation: the turnaround the person accepted. | |
| confirm_rights_and_terms | Yes | true only if the account holder has the right to print this file and accepts the terms at https://3dnow.uk/terms. |