Make a payment link for the person
create_orderSaves the priced job as an unpaid order and answers with a pay link for the person. Prices hold for 30 days. They open the link, check the order and pay by card on Stripe; address, phone and sales tax are handled there. Nothing is made, and nobody is charged, until they pay. Takes the same file and options as the quote, so quote first and pass its file_id. With kind laser-template or personalize it orders a template part or a personalized product instead, from the same fields quote_template or quote_product took. For several things in one order (one pay link, one order minimum, one parcel), send items instead of one thing's own fields: price the set first with quote_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": {
"fulfilment": "<fulfilment>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | How many. For a file holding several parts, how many sets of the whole file. | |
| file | No | ChatGPT only: a file the person attached to the chat. Other clients use file_url, file_text or file_base64. | |
| font | No | A font key from the product's fonts in list_products. Left out, the first is used. | |
| kind | No | What is being ordered. laser-file (the default): a DXF or SVG, with the file fields and material. laser-template: template, values and material. personalize: product, variant, text and font. | laser-file |
| text | No | The text to put on it: up to 3 lines of 40 characters, as an array or one string with line breaks | |
| items | No | Several things as ONE order: one payment link, one order minimum, one parcel. Up to 20. Each item takes the same fields as an order of one thing (kind, material, qty, template, values, product, text ...), with its own quantity. A laser-file item names its file by file_id: quote the file first with quote_laser_file, which answers with the id. The same file_id may appear in several items, e.g. the same part in two materials. | |
| names | No | A different name on each piece, one per piece, for products with takes_names. `text` is then the first name. | |
| notes | No | Anything the shop should know. A person reads it before making the order. | |
| scale | No | Resize the part: 1 is the file's own size, 0.5 is half. | |
| units | No | The units a DXF is drawn in when the file doesn't say. Leave out to let us read the file; the answer says what was assumed. | |
| values | No | The template's parameters by key. Lengths are in inches; a toggle is 1 or 0; a choice is one of its option values. Any left out take the template's default. | |
| contact | No | Who the order is for. Optional: Stripe collects the name, email and address when they pay. | |
| file_id | No | A file sent in an earlier call (every quote answers with one). Kept 30 days. | |
| product | No | A product slug from list_products | |
| variant | No | A variant slug (a colour or size) from list_products. Left out, the first is used; the answer says which. | |
| file_url | No | A public https link to the DXF or SVG, up to 10 MB. We download it. | |
| material | No | A material slug from get_catalog. Needed for laser-file; optional for laser-template; not used for personalize. | |
| ship_zip | No | The 5-digit US ZIP it ships to. Needed with fulfilment ship, to price shipping. | |
| template | No | A template slug from list_templates, e.g. mounting-plate | |
| file_name | No | The file's name with its extension, e.g. bracket.dxf. Needed with file_text and file_base64. | |
| file_text | No | The file's own text (DXF and SVG are both plain text), up to 4 MB. Send with file_name. | |
| fulfilment | Yes | ship: UPS Ground in the US. pickup: free, at a meeting spot in metro Atlanta | |
| file_base64 | No | The file's bytes, base64, up to 4 MB. Send with file_name. |