FSH Labs laser cutting

v1.1.0
com.fshlabs/fsh-labs Checked 2 days ago Published 6 days ago

Price and order laser-cut parts and engraved products from FSH Labs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_catalog Materials, limits, lead time and policies

What FSH Labs laser cuts, in which materials and thicknesses, the size limits, the order minimum, the lead time and the codes a quote can come back with. Start here.

quote_laser_file Price a DXF or SVG

Prices one cut file in one material at one quantity, with the same engine the website charges from. Answers with the price, the same job at other quantities (price_breaks), the lead time, the part sizes we read, and any issues with the file. Send compare_materials to price it in other materials in the same call, and ship_zip to add shipping and the total before tax. A file that can't be priced instantly still answers 200, with priceable false and the reasons. Nothing is stored against a person and nothing is charged. Also available as GET with the same fields as query parameters (file_url or f…

ParameterTypeDescription
material *stringA material slug from the catalog, e.g. birch-125
qty *integerHow many. For a file holding several parts, how many sets of the whole file.
compare_materialsOther material slugs to price the same file in, as a list or comma-separated, or "all" for every material. The answer lists each in other_materials.
fileobjectChatGPT only: a file the person attached to the chat. Other clients use file_url, file_text or file_base64.
file_base64stringThe file's bytes, base64, up to 4 MB. Send with file_name.
file_idstringA file sent in an earlier call (every quote answers with one). Kept 30 days.
file_namestringThe file's name with its extension, e.g. bracket.dxf. Needed with file_text and file_base64.
file_textstringThe file's own text (DXF and SVG are both plain text), up to 4 MB. Send with file_name.
file_urlstringA public https link to the DXF or SVG, up to 10 MB. We download it.
scalenumberResize the part: 1 is the file's own size, 0.5 is half.
ship_zipstringThe 5-digit US ZIP it would ship to. Given, the answer adds what shipping costs and the total before sales tax, so the person sees the whole price before an order is made.
unitsstringThe 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.

create_order Make a payment link for the person

Saves 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), se…

ParameterTypeDescription
fulfilment *stringship: UPS Ground in the US. pickup: free, at a meeting spot in metro Atlanta
contactobjectWho the order is for. Optional: Stripe collects the name, email and address when they pay.
fileobjectChatGPT only: a file the person attached to the chat. Other clients use file_url, file_text or file_base64.
file_base64stringThe file's bytes, base64, up to 4 MB. Send with file_name.
file_idstringA file sent in an earlier call (every quote answers with one). Kept 30 days.
file_namestringThe file's name with its extension, e.g. bracket.dxf. Needed with file_text and file_base64.
file_textstringThe file's own text (DXF and SVG are both plain text), up to 4 MB. Send with file_name.
file_urlstringA public https link to the DXF or SVG, up to 10 MB. We download it.
fontstringA font key from the product's fonts in list_products. Left out, the first is used.
itemsarraySeveral 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 .…
kindstringWhat 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.
materialstringA material slug from get_catalog. Needed for laser-file; optional for laser-template; not used for personalize.
namesarrayA different name on each piece, one per piece, for products with takes_names. `text` is then the first name.
notesstringAnything the shop should know. A person reads it before making the order.
productstringA product slug from list_products
qtyintegerHow many. For a file holding several parts, how many sets of the whole file.
scalenumberResize the part: 1 is the file's own size, 0.5 is half.
ship_zipstringThe 5-digit US ZIP it ships to. Needed with fulfilment ship, to price shipping.
templatestringA template slug from list_templates, e.g. mounting-plate
textThe text to put on it: up to 3 lines of 40 characters, as an array or one string with line breaks
unitsstringThe 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.
valuesobjectThe 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.
variantstringA variant slug (a colour or size) from list_products. Left out, the first is used; the answer says which.

get_order_status Where an order stands

Where the order stands: whether it is paid, waiting on a proof, in production, shipped (with tracking) or ready for pickup. Use the status_url from create_order as is. Once a proof is sent, `proof` holds its picture link, the shop's note and whether the person has decided; show it to them, but only they can approve it, from the link in their email. `events` is the order's history, so one call after a week says what happened in between, `cancellation` says whether it can still be cancelled, and `check_again_in_s` says when to look again.

ParameterTypeDescription
order_id *stringe.g. FSH-20261118-K7M2QX
status_token *stringThe last part of the status_url that create_order answered with

request_custom_quote Ask a person at the shop for a price

For anything the instant quote can't price: a file with open outlines or engraving artwork, a PDF or sketch, a material that isn't listed, engraving, marking or full-color UV printing, or a run of 500 or more. It reaches the shop's inbox and a person replies to the email given within 24 hours. Hand-quoted work has a $25 minimum. FSH Labs laser engraves and marks only items it supplies (the personalized products, plates and tags), and laser cuts only its own sheet stock. The one item a customer may send in to be engraved is a Bible. It does not engrave or laser mark phones, tablets, laptops, tu…

ParameterTypeDescription
details *stringWhat they need: the part, material, thickness, sizes, finish, engraving, and anything the instant quote couldn't handle
email *stringThe person's email. The shop replies to it; we send nothing to it automatically.
name *stringThe person's name
companystring
filesarrayUp to 5 files, each sent the same ways as a quote's file. Any of: stl, 3mf, obj, step, stp, svg, dxf, pdf, png, jpg, jpeg, webp, heic, heif, ai, eps, dwg, cdr
materialstringA material slug from the catalog, if they chose one
needed_bystringA date, if they have a deadline
phonestring
postring
qtyinteger

list_templates Parts that need no drawing

Parametric parts the shop cuts from dimensions alone, with no drawing. Each lists its parameters with defaults and limits. Use quote_template to price one, and create_order with kind laser-template to order it. For a person with no CAD file.

quote_template Price a part from a template

Prices a template part from its dimensions, in one material at one quantity. Values that don't make a part (a hole wider than the plate) are refused with the reason in plain words. Read the sizes back to the person: the part is cut to exactly these numbers.

ParameterTypeDescription
qty *integerHow many. For a file holding several parts, how many sets of the whole file.
template *stringA template slug from list_templates, e.g. mounting-plate
materialstringA material slug from get_catalog. Left out, the template's usual sheet is used; the answer says which.
ship_zipstringThe 5-digit US ZIP it would ship to. Given, the answer adds what shipping costs and the total before sales tax, so the person sees the whole price before an order is made.
valuesobjectThe 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.

list_products Personalized products

Products the shop supplies and marks with the person's text, each with its colours, price by quantity, fonts and text limits. Use quote_product to price one with their text, and create_order with kind personalize to order it. There is no order minimum on these.

quote_product Price a personalized product

Prices a product from list_products with the person's text on it, in one colour at one quantity. The price is by quantity tier and there is no order minimum. Read the text back to the person exactly as you sent it, spelling included: it is what gets engraved, after they approve a proof.

ParameterTypeDescription
product *stringA product slug from list_products
qty *integerHow many pieces. For a per_letter product, how many copies of the word.
text *The text to put on it: up to 3 lines of 40 characters, as an array or one string with line breaks
fontstringA font key from the product's fonts in list_products. Left out, the first is used.
namesarrayA different name on each piece, one per piece, for products with takes_names. `text` is then the first name.
notesstringAnything the shop should know. A person reads it before making the order.
ship_zipstringThe 5-digit US ZIP it would ship to. Given, the answer adds what shipping costs and the total before sales tax, so the person sees the whole price before an order is made.
variantstringA variant slug (a colour or size) from list_products. Left out, the first is used; the answer says which.

quote_order Price several things as one order

Prices a list of things as one order: each item at its own quantity, ONE order minimum for the lot, and ONE parcel to one ZIP. Send up to 20 items; each is a file you already quoted (by file_id), a template part or a personalized product, with its own material and quantity. The answer says what the whole order costs and what it saves against ordering each item alone. Nothing is stored. To change the order, change the list and call again; when the person is happy, send the same items to create_order.

ParameterTypeDescription
items *arraySeveral 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 .…
ship_zipstringThe 5-digit US ZIP it would ship to. Given, the answer adds what shipping costs and the total before sales tax, so the person sees the whole price before an order is made.

get_proof_image The proof, as a picture

The proof the shop sent for an order, as a PNG or JPEG to show the person: the proof itself, or the first page of a PDF proof. Use `proof.image_url` from get_order_status as is. This shows the proof; it can't approve it. The person approves, or asks for changes, from the proof link in the email we sent them.

ParameterTypeDescription
order_id *stringe.g. FSH-20261118-K7M2QX
round *The proof round: `proof.round` in get_order_status. Earlier rounds stay available
status_token *stringThe last part of the status_url that create_order answered with
fullSend 1 for the whole proof when it is a PDF. Left out, the answer is always a picture

quote_reorder Price a paid order again

For "order more of what I got last time". Prices a paid order's same file or design at a new quantity, at today's prices, with the quantity break for the new quantity. Answers with what the order was, the price, the same job at other quantities, and whether a proof is needed: none when the same art was already approved. Use the reorder_url from create_order as is, or the reorder link from the person's email. Works for an order of one item; nothing is stored and nothing is charged.

ParameterTypeDescription
order_id *stringThe paid order to repeat, e.g. FSH-20261118-K7M2QX
reorder_token *stringThe last part of the order's reorder link: the reorder_url create_order answered with, or the reorder link in the person's own email from us
qtyintegerHow many this time. Left out, the same quantity as the original order
ship_zipstringThe 5-digit US ZIP it would ship to. Given, the answer adds what shipping costs and the total before sales tax, so the person sees the whole price before an order is made.

create_reorder Make a payment link for the same thing again

Saves a repeat of a paid order at a new quantity as an unpaid order, and answers with a pay link for the person, exactly as create_order does: the prices hold for 30 days and nothing is made until they pay. The file or design is the original's, so nothing is sent again. When the person already approved a proof of the same art, the repeat is made without a new one. Price it first with quote_reorder.

ParameterTypeDescription
fulfilment *stringship: UPS Ground in the US. pickup: free, at a meeting spot in metro Atlanta
order_id *stringThe paid order to repeat, e.g. FSH-20261118-K7M2QX
reorder_token *stringThe last part of the order's reorder link: the reorder_url create_order answered with, or the reorder link in the person's own email from us
contactobjectWho the order is for. Optional: Stripe collects the name, email and address when they pay.
qtyintegerHow many this time. Left out, the same quantity as the original order
ship_zipstringThe 5-digit US ZIP it ships to. Needed with fulfilment ship, to price shipping.

request_order_change Ask the shop to cancel or change an order

Passes the person's request about a paid order to a person at the shop: cancel it, change it, or a question. It changes nothing by itself. The shop replies to the email the order was paid with, and confirms with them before cancelling or changing anything. The answer says what the terms allow right now: a full refund before the order is in production, a refund only if nothing is cut yet once it is, and the remake terms after it is made. Timing matters, so send it as soon as the person asks. POST to the order's status_url with /requests on the end. An unpaid order needs no cancelling: it is nev…

ParameterTypeDescription
kind *stringcancel: stop the order and refund it. change: a different quantity, file, text or address. question: anything else about the order
message *stringWhat the person wants, in their words where you can: what to change and to what. A person at the shop reads it
order_id *stringe.g. FSH-20261118-K7M2QX
status_token *stringThe last part of the status_url that create_order answered with

find_order Find an order whose status link was lost

For a person who has their order number but not the status link. Send the order number and one thing only its buyer knows: the email it was paid with, or the ZIP it shipped to. Answers the same body as get_order_status, plus the status_url to keep. It finds paid orders only, and reveals nothing else: no name, address, pay link or file. Every miss answers the same not-found, whatever was wrong, and each order takes five tries a day. Try the person's emails first: every one we sent about the order has its status link.

ParameterTypeDescription
order_id *stringThe order number from the person's receipt, e.g. FSH-20261118-K7M2QX
emailstringThe email the order was paid with
ship_zipstringThe 5-digit ZIP the order shipped to. A pickup order has none: use email