Acorn Harness
v1.0.0Configure, price and order custom XT30, XT30(2+2) and XT30 + JST GH wire harnesses.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_options List wire harness options
List every option for an Acorn Harness custom wire harness: connector types (XT30, XT30(2+2), XT30 + JST GH), wire length range, power gauges, end A and end B terminations (straight, right angle up/down, unterminated tinned leads on end B), wire colors, extras (twisted or crossed signal pair, JST GH end B), the rules for combining them, required_choices (with the question to ask the user for each), optional_choices and their defaults, pricing rules, lead time, shipping and returns. Call it when you need the allowed values; it takes no arguments and changes nothing.
quote_harness Quote wire harnesses
Price one or more custom wire harness designs exactly as acornharness.com checkout will. Returns, for each design, a picture (side view plus both ends' rear views, as the configurator draws it: show it to the user), a configurator_url that opens the design on the site, and defaults_applied. Every item needs connector, length_mm, power_gauge, end_a, end_b, quantity, or a complete design code / configurator URL in design. Items missing any of them are refused with the questions to ask: ask the user, don't guess, and ask about end A and end B separately. Colors, twisting, crossing and end_b_gh ha…
| Parameter | Type | Description |
|---|---|---|
items * | array | 1–40 wire harness designs. Volume discounts count every harness across all items. |
ship_to | string | Two-letter ISO country code the order ships to, e.g. "US", "CA", "GB", "DE", "JP", "AU". Omitted = US. Ships to the US and 55 more countries; list_options has every country. Shipping is priced for it,… |
create_order Create a wire harness order
ORDERING IS TEMPORARILY CLOSED: Acorn Harness is not taking new orders right now, and create_order will refuse. Tell the user before collecting an order. list_options and quote_harness still work for designing and pricing. Create an unpaid order for one or more wire harness designs and get a checkout_url on acornharness.com for the buyer. The buyer opens it to pay (card, Link or wallet, via Stripe) and enter the shipping address (in the ship_to country) and, in the US, the shipping speed (other countries have one service, International Tracked); nothing is charged or built until they pay there…
| Parameter | Type | Description |
|---|---|---|
items * | array | 1–40 wire harness designs. Volume discounts count every harness across all items. |
email | string | Buyer's email, only if they gave it: prefills checkout; the receipt, invoice and tracking go there. |
idempotency_key | string | Any unique string. Retrying with the same key and the same items returns the same order instead of a second one. |
reference | string | Buyer's PO number or note, echoed back on the order. |
ship_to | string | Two-letter ISO country code the order ships to, e.g. "US", "CA", "GB", "DE", "JP", "AU". Omitted = US. Ships to the US and 55 more countries; list_options has every country. Shipping is priced for it,… |
get_order_status Get wire harness order status
Check an order by the id create_order returned (starts with cs_). Returns status: awaiting_payment (checkout_url still valid), payment_processing (a bank payment settling), payment_failed or expired (create a new order), or paid (built and shipped within 5 business days; tracking is emailed to the buyer), plus the charged totals. Never returns addresses or contact details.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id from create_order, e.g. cs_live_a1B2… |